...
Option | Type | Default | Description |
---|---|---|---|
| String | REST API address, for production use https://api.ambita.com | |
| CRS Object | L.ambita.CRS[‘EPSG:25833’] | Map CRS used to show the base and other layers on the map in a different coordinate system than WGS84 |
| Number | 10 | Initial map zoom level, a number between 1 and 17 |
| Number[] | [60, 10] | Initial center of the map, an array of two coordinates in WGS84 coordinate system [latitude, longitude] |
| Boolean | true | Enable keyboard controlled movement of the map |
| Boolean | true | Enable inertia when panning the map using mouse |
| Boolean | false | Show attribution control on the map |
| Object | undefined | Options to customize the attribution control, see below for options |
| Number | 3 | Minimum zoom level of the map |
| Number | 17 | Maximum zoom level of the map |
| String | undefined | Authorization token from the Ambita authentication API (must set |
| String | undefined | GeoData token (fetched automatically on map initialization if not specified) |
| Number | 3 | Number of times |
| String | ‘selection-cadastre’ | Default SVG path class name for geometries added to the map |
| Boolean | true | Enable the detailed height legend control |
| Number | 10 | The default buffer for |
| Boolean | false | Show the default Leaflet zoom control |
| Boolean | true | Show the property layer on the map |
| Boolean | undefined | Show the default Leaflet fullscreen control |
| Boolean | true | Show the layer control button |
| String | ‘topleft’ | Position of the layer control button |
| String | L.ambita.Statics.SVG_BUTTONS.layers | HTML for the layer control button |
| Boolean | false | Show the scale control at the bottom left corner of the map |
| Boolean | true | Show the Powered by Ambita control at the bottom right corner of the map |
| Boolean | true | Enable the editing of geometries functionality on the map |
| String | ‘selection-lineguide’ | Class name of the selection tools line guide |
| Class | middleMarkerCustom | Custom class of the selection tools middle markers |
| Object | { show: false } | Options to customize the selection tools, see below for options |
| Object | undefined | Options to customize the POC layer, see below for options |
| Object | undefined | Options to customize the POB layer, see below for options |
| String | undefined | Municipality code of the Norway municipality to fetch and draw a border of |
| Boolean | true | Show the zoom control buttons |
| Boolean | false | Animate the display of zoom, layer, selection tools controls |
| String | ‘/authentication/v2/token’ | Path to authorization token resource |
| String | ‘/authentication/v2/geodatatoken’ | Path to GeoData token resource |
| String | ‘arcgis/rest/services/’ | Path to ArcGIS REST services |
| String | ‘Geocache_UTM33_EUREF89/’ | Path to UTM Cache service |
| String | ‘Geomap_UTM33_EUREF89/’ | Path to UTM Dynamic service |
| String | ‘/MapServer/’ | Path to map server |
| String | ‘Geocache’ | Name of UTM Cache service |
| String | ‘Geomap’ | Name of UTM Dynamic service |
| String | ‘Basis’ | Name of the base map layer |
| String | ‘Bilder’ | Name of the map orto layer |
| String | ‘Eiendom2’‘Eiendom3’ | Name of the map property layer |
| String | UTM Cache server address | |
| String | UTM Dynamic server address | |
| Boolean | false | Enable static map (no interactivity) |
| Boolean | false | Disable panning of the map |
| Number | 200 | Maximum height of the feature popup |
| Number | 300 | Maximum width of the feature popup |
| Number | 100 | Minimum width of the feature popup |
| Point | L.point(0, 0) | Offset of the feature popup |
| Number | 60 | GeoData token expiration time in minutes |
| Object[] | undefined | Array of customizable Ambita controls, see below for options |
| Object | undefined | Options to customize the fullscreen control, see below for options |
| Object | undefined | Options to customize the scale control, see below for options |
...