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
[x,y]
ex: {iconSize: [40, 40]}
layerLeaflet the marker object leaflet in the map
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);
Add a array of geojson features to the map. This function adds a new layer on 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
layerId of the object in the map
Remove a layer on the map. This method works on marker/geojson layers created with the API, as well with standard Galigeo layers created from the map itself.
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
Set the extent of the map
The extent to set
Update the current map without having to reload it. When this method is used to update the map data, the layers are updated without having to reload the map.
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.