Miscellaneous Settings
Covers additional customization of the map view this example has no markers, markers options can be omitted if you just need the map. You could set the attributionControl
false to remove Attribution
controls
can be placed in the following locations the scale
assumes the positions along with the zoom controls. Valid positions are topleft', 'topright', 'bottomleft' or 'bottomright'
the control position can only be set by setting zoomControl: false
Example
let options = {
zoom: 13,
maxZoom: 19,
minZoom: 1,
controls: {
zoomControl: true,
position: "bottomright",
scale: true,
},
center: [13, 80],
mapID: "map",
attributionControl: false,
};
Other existing libraries and Acreditation
- This library aims to provide most options and simpler config. Personally I am not a huge fan of
<slots />
which is the key motivation. - Official Leaflet.
- IvanSanchez/svelte-leaflet Has Sloted svelte components and closes 1-1 library.
- beyonk-adventures/async-script-loader used to load the styles and script.