UNPKG

@stangres/react-leaflet

Version:
27 lines (20 loc) 679 B
"use strict"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import { Control } from 'leaflet'; import { withLeaflet } from './context'; import MapControl from './MapControl'; var ScaleControl = /*#__PURE__*/ function (_MapControl) { _inheritsLoose(ScaleControl, _MapControl); function ScaleControl() { return _MapControl.apply(this, arguments) || this; } var _proto = ScaleControl.prototype; _proto.createLeafletElement = function createLeafletElement(props) { return new Control.Scale(props); }; return ScaleControl; }(MapControl); export { ScaleControl as ExtendableScaleControl }; export default withLeaflet(ScaleControl);