0% found this document useful (0 votes)
21 views1 page

Leaflet Template

The document provides specifications for a map, including its dimensions (2048 pixels in height and 1642 pixels in width) and scale settings. It includes a quick calculator for determining latitude, longitude, and scale based on pixel input. Additionally, it outlines parameters for a Leaflet map embed, such as zoom levels, size, and unit of measurement.

Uploaded by

Daniel Fuller
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Leaflet Template

The document provides specifications for a map, including its dimensions (2048 pixels in height and 1642 pixels in width) and scale settings. It includes a quick calculator for determining latitude, longitude, and scale based on pixel input. Additionally, it outlines parameters for a Leaflet map embed, such as zoom levels, size, and unit of measurement.

Uploaded by

Daniel Fuller
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

---

map_height_y: 2048
map_width_x: 1642
scale_pixels: 268
scale_pixels_range: 25
mapCalc1: 0
---

> [!NOTE]- Quick Calculator


> Map Height in Pixels: `INPUT[number:map_height_y]`
> Map Width in Pixels: `INPUT[number:map_width_x]`
> lat: `VIEW[{map_height_y} / 2][math]`
> long: `VIEW[{map_width_x} / 2][math]`
> How Many Pixels In Scale: `INPUT[number:scale_pixels]`
> How Many Units in Scale: `INPUT[number:scale_pixels_range]`
> Scale: `VIEW[1/({scale_pixels}/{scale_pixels_range})][math:mapCalc1]`

```leaflet
id: MapCalcExample ### Must be unique with no spaces
image: [[Map - Regional map of Lampoteuo.png]] ### Link to the map image file
bounds: [[0,0], [2048, 1642]] ### Size of the map in px Height_y, Width_x. Ignore
0,0
height: 850px ### Size of the leaflet embed in px on your screen
width: 95% ### Size of the leaflet embed in your note
lat: 1024 ### To center the map, make this half of the map height.
long: 821 ### To center the map, make this half of the map width.
minZoom: -1.5 ### Controls how far away from the map you can zoom out. Hover over
the target icon to see the current level.
maxZoom: 1 ### Controls how far towards the map you can zoom in. Hover over the
target icon to see the current level.
defaultZoom: -1 ### Sets the default zoom level when the map loads. Hover over the
target icon to see the current level.
zoomDelta: 0.5 ### Adjust how much the zoom changes when you zoom in or out.
unit: mi ### The value displayed when measuring so you know what type of unit is
being measure.
scale: 0.09328358208955223 ### Real units/px (resolution) of your map
recenter: false
darkmode: false ### marker
```

You might also like