-
Notifications
You must be signed in to change notification settings - Fork 12
leaf element (map)
stefano edited this page Jan 16, 2017
·
4 revisions
This is the map element
The element now supports multiple maps per page
Optional parameters and predefined values
| parameters | type | default values | description |
|---|---|---|---|
| lat | Input | 52.6 | |
| lon | Input | -1.1 | |
| x | Input | alias for lon | |
| y | Input | alias for lat | |
| zoom | Input | 12 | |
| minZoom | Input | 4 | |
| maxZoom | Input | 19 | |
| crs | Input | L.CRS.EPSG3857 | coordinate system |
| layerControl | Input | false | |
| maxBounds | Input | null | prevent panning outside those bounds |
| mapElement | ViewChild |
examples
minimal syntax
<leaf-element>
</leaf-element>set some more options
<leaf-element [lat]=40 [lon]=-72 [zoom]=10 [minZoom]=2 [maxZoom]=25>
</leaf-element>set layerController
<leaf-element [zoom]=11 [layerControl]=true>
</leaf-element>