MapExtension
electrongui
extension forMapExtension use leaflet to render map. leaflet-map-builder is used to build the leaflet map from the configuration object. leaflet-draw is used to draw ROI and markers over the map. The extension permit to import, export, create maps add different type of layers.
Installation
To install mapextension in an electrongui app, you can use the built-in
extension manager.
Just select Download npm module
in the Extensions > Install extension
menu.
Write mapextension
in the search field and press enter, then select the
mapextension
from the list. After the extension is installed it needs to be
loaded from the Extensions
menu.
Check the documentation for more details.
dev install
Install the extension in your electron app with
npm install --save mapextension
.
API
As every other GuiExtensions, MapExtension can be loaded using the electrongui extension manager gui.extensions.load('mapextension')
once it has been installed in the electron app folder.
You can the find MapExtension as gui.extensions.extensions.MapExtension
Properties
builder
An instance of L.MapBuilder.
map
An instance of L.Map.
maps
List with all the loaded maps.
activeConfiguration
The configuration of the map currently active.