mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-06 14:40:12 +00:00
19 lines
556 B
JavaScript
19 lines
556 B
JavaScript
export function initialize(application) {
|
|
const leafletService = application.lookup('service:leaflet');
|
|
if (leafletService) {
|
|
leafletService.load({
|
|
onReady: function (L) {
|
|
// This will prevent the awkward scroll bug produced by Chrome browsers
|
|
// https://github.com/Leaflet/Leaflet/issues/4125#issuecomment-356289643
|
|
L.Control.include({
|
|
_refocusOnMap: L.Util.falseFn,
|
|
});
|
|
},
|
|
});
|
|
}
|
|
}
|
|
|
|
export default {
|
|
initialize,
|
|
};
|