Creates the main Map and define its parameters.
ID of the div that will contain the map
See MapParameters for the map parameters
Create new marker in the position x,y with custom svg image or style
var coordinates = [ event.lat, event.lng ];
var iconSvgOptions = { iconSize : [ 40, 40 ] };
var svgXml = <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="map-marker" class="svg-inline--fa fa-map-marker fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="${color}" d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"></path></svg>
;
var url = encodeURI("data:image/svg+xml," + svgXml).replace('#', '%23');
markerLayer = mapGaligeo.addMarker(coordinates, undefined, iconSvgOptions, svgXml);
layerLeaflet the marker object leaflet in the map
[x,y]
ex: {iconSize: [40, 40]}
Add a array of geojson features to the map. This function adds a new layer on the map.
layerId of the object in the map
ex: lines [{ "type": "Feature", "properties": { "party": "abc", "popupContent": "popupContent !!!!!!!" }, "geometry": { "type": "LineString", "coordinates": [[-105, 40], [-110, 45], [-115, 55]] } }, { "type": "Feature", "properties": { "party": "abc", "popupContent": "popupContent !!!!!!!" }, "geometry": { "type": "LineString", "coordinates": [[-100, 40], [-105, 45], [-110, 55]] } }]
a style of features
disable navigation like zoom & pan ... when it's enabled
enable navigation like zoom & pan ... when it's disabled
Set the basemap on the map. The list of basemap parameters is described on the main product https://doc.galigeo.com/G21_0/GGO/USER_GUIDE/en/#t=Basemaps_Configuration.htm&rhsearch=basemap&rhhlterm=basemap&rhsyns=%20|documentation.
name of the basemap
Generated using TypeDoc
Map is the root object of the API. To get started, you need to create a instance of Map then call map.load() to link it with the map viewer.