map-gui v1.7.6-MNO
GUI Map
Expandium map user interface based on leaflet. For more informations, see https://confluence.expandium.com/display/EX/Carto+2017+-+Global+Architecture
Api
This library put an object Mapservice in window variable as Lodash or AngularJS do.
Use this global object to interact with the map.
MapService.initMap(id, params)
Use this method to initiate the map div. This method will just prepare the ground to use the map.
id (string)
The div id (without #) where the map will be put.
params (object)
- serverUri: URI to the server who return the map config with uri /map/get-config?context=context
- context: Map using context (Calltrace or KPI)
- mapApi: URI to the server who returns data using the mapHandler
MapService.initMapWithConfig(config, mapData)
After calling this method, you should have a functional map with map background, sidebar and points; but to call this method you'll have to build the config object: see https://confluence.expandium.com/display/EX/Map+Configuration.
MapService.redraw(resetZoom)
Enforce the map to redraw data with optionally reset the map zoom into existing map data.
Other methods
The map service expose other methods but are not created to be used outside the map project,