Classes
Members
-
module:cercaliagl/Map.DefaultMapControls{Array.<string>}
-
Type Definitions
-
CenterOptions{Object}
-
Properties:
Name Type Description animationboolean Animation.
durationnumber Duration if animation is enabled. Default
2000.changeZoomboolean Change zoom
zoomnumber zoom to change
-
ClusteringOptions{Object}
-
Properties:
Name Type Argument Description layerIdstring <optional>
Layer id. Default
LayersId.MARKERS_LAYER_ID.onClickfunction <optional>
Click over callback function.
onMouseOverfunction <optional>
Mouse over callback function.
onMouseOutfunction <optional>
Mouse out callback function.
maxZoomnumber <optional>
Max zoom for clustering. Default
16.radiusnumber <optional>
Radius in pixels to cluster. Default
40. -
DrawOptions{Object}
-
Properties:
Name Type Argument Description onDrawEndfunction <optional>
Callback function when feature has been drawn. It receive geometry drawn
-
HeatmapLayerOptions{Object}
-
Properties:
Name Type Argument Description layerIdstring <optional>
Layer id. Default
LayersId.MARKERS_LAYER_ID.styleHeatZonesmodule:cercaliagl/layer/Marker~StyleHeatLayer <optional>
Style layer zone. Read MapboxGL documentation https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#heatmap.
styleHeatPointsmodule:cercaliagl/layer/Marker~StyleHeatLayer <optional>
Point layer zone. Use layer
type: circlestyles. https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#circle -
MapOptions{Object}
-
cercaliagl.control.MapControls.SCALELINEcercaliagl.control.MapControls.CLEANcercaliagl.control.MapControls.GAS_STATIONScercaliagl.control.MapControls.LAYER_SWITCHERcercaliagl.control.MapControls.METEOcercaliagl.control.MapControls.NAVBARcercaliagl.control.MapControls.MOBILEBARcercaliagl.control.MapControls.TRAFFICcercaliagl.control.MapControls.ZOOMcercaliagl.control.MapControls.LOGISTICS_RESTRICTIONScercaliagl.control.MapControls.LAYER_REGIONScercaliagl.control.MapControls.ISOCHRONEScercaliagl.control.MapControls.LOGOcercaliagl.control.MapControls.BUILDINGS3Dcercaliagl.control.MapControls.DRAWcercaliagl.control.MapControls.ZBE
If you want a map without controls put value `[]`.- Pixel where clicked with mouse right click.
- Map coordinate.
- Pixel where clicked with mouse right click.
- Map coordinate.
Default: `null`. cercalia.ContextMenu.Option.ADDRESScercalia.ContextMenu.Option.ROUTINGcercalia.ContextMenu.Option.DISTANCE
If you want a map without rightClick menu options put value [].
Default `[cercalia.ContextMenuOptions.Location, cercalia.ContextMenuOptions.Routing]`.
Properties:
Name Type Argument Description targetstring HTML element ID map container. Mandatory field.
boundsmodule:cercaliagl/Bounds~Bounds <optional>
Initial map bounding box. Default:
null.centermodule:cercaliagl/LonLat~LonLat <optional>
Center map coordinates. Default values
x=-2.530985346701069,y=40.14298996438731controlsArray.<string> <optional>
Map controls to include. Values:
srcArrowstring <optional>
Arrow to be used when feature has showDirections = true
disableKeyboardControlsboolean <optional>
Disable controls to move/rotate/pan map with the keyboard = true
drawStylesArray.<module:cercaliagl/MapStyler~StyleLayerJSON> <optional>
Draw styles. Default
[].adaptDrawStylesToFeatureStyleboolean <optional>
Adapt draw styles to feature style. Default
false.mapLayersArray.<string> <optional>
Default map base layers.
cercalia.MapTypes.CERCALIA,cercalia.MapTypes.OSM, `cercalia.MapTypes.SATELLITE``.customBaseLayersArray.<module:cercaliagl/layer/XYZ~XYZ> | Array.<module:cercaliagl/layer/WMS~WMS> <optional>
Custom base layers
zoomnumber <optional>
Initial zoom level
[0 - 19]. Default value6minZoomnumber <optional>
Minimum zoom. Default value
2maxZoomnumber <optional>
Maximum zoom. Default value
19tollInfoTypemodule:cercaliagl/service/Routing~TollInfoType <optional>
Format of the toll information displayed when calculating a route. Default value
basic.tollCurrencystring <optional>
Currency of the toll information displayed when calculating a route. Default value
undefined.routingNetstring <optional>
Custom routing net. Default value
undefined.cooperativeGesturesboolean <optional>
Setting cooperativeGesturs to true, scroll to zoom requires command key, and two fingers to pan the map on mobile version.
restrictedBoundsmodule:cercaliagl/Bounds~Bounds <optional>
Bounding box limits for map navigation. Default
null.rotationnumber <optional>
Map bearing in degrees. Default value
0defaultClickfunction <optional>
Assign function to click on map. Function parameters: (1->pixel, 2->
cercalia.LonLat).defaultBaseLayerstring <optional>
Default base layer. Default
cercalia.langstring <optional>
Language, you must put useBrowserLanguage to false. Default
en.useBrowserLanguageboolean <optional>
Enable/Disable the usage by default of the browser language. Default
true.geolocationEnabledboolean <optional>
Enable automatically geolocation. Your position will be drawn to map.
rightClickMenuboolean <optional>
Enable/Disable menu on mouse right click. Default
true.rightClickFunctionfunction <optional>
Assign function to mouse right click. For apply this option it's necessary to disable contextmenu on map initialization with option (
rightClickMenu:false).
The function parameters are: (1->pixel, 2->cercalia.LonLat).rightClickMenuOptionsArray.<string> <optional>
Map rightClick menu options to include. Values:
multipleFeaturesInPixelboolean <optional>
Return multiple features in same pixel, for mouse events. Default
true.pitchnumber <optional>
Map pitch. Default value
0onRotationEndfunction <optional>
Function is called when the rotation of the map changes (called at the event's end).
onMoveEndfunction <optional>
Function is called when map is moved (called at the event's end).
onZoomEndfunction <optional>
Function is called when the zoom of the map changes (called at the event's end).
onPitchEndfunction <optional>
Function is called when the pitch of the map changes (called at the event's end).
antialiasboolean <optional>
Antialias for GL render. Default
false.themeColorstring <optional>
Theme color
routing3dboolean <optional>
Draw 3D polyline for calculated route feature. Default
false.freehandOnDrawPolygonMobileboolean <optional>
Draw polygon button on mobile will active freehand mode. Default
false.interactiveboolean <optional>
Disable the map interactions. Default
false.scaleUnitsmodule:maplibre-gl~Unit <optional>
Units used on the scale and on the measurements results. Default
metric. Values: 'imperial', 'metric' or 'nautical'.