Class: MapManager

nsVmap.nsMapManager.MapManager

Class nsVmap.nsMapManager.MapManager: initializes the layers tools

Methods

addBingLayerFromHTML(element)

vmap/mapmanager/mapmanager.js, line 621

Add a new bing layer

Name Type Description
element object

Html element witch contains the name, url attributes

addIGNLayerFromHTML(element)

vmap/mapmanager/mapmanager.js, line 668

Add a new ign layer

Name Type Description
element object

Html element witch contains the name, url attributes

addLayer(oLayer)

vmap/mapmanager/mapmanager.js, line 232

Add a new layer with url service

Name Type Description
oLayer object

Layer to add, contains: oLayer.layerType : layer type (tilewms, imagewms, osm, bing, wmts, imagevector) oLayer.url : the url of the layer oLayer.serviceName : service name oLayer.layerName : the layer name oLayer.layerTitle : the displayed layer name oLayer.queryable : true if the layer is queryable oLayer.key : use key oLayer.culture : language to use

addLayerFromFileFromHTML(element) experimental

vmap/mapmanager/mapmanager.js, line 715

Add a layer from a file

Name Type Description
element object

Html element witch contains url, file-container, name

addOSMLayerFromHTML(element)

vmap/mapmanager/mapmanager.js, line 584

Add a new osm layer

Name Type Description
element object

Html element witch contains the name, url attributes

addWMSLayerFromHTML(element)

vmap/mapmanager/mapmanager.js, line 538

Add a new wms layer (get the url from getCapabilities-url-field)

Name Type Description
element object

Html element witch contains the layerName, layerTitle, queryable attributes

ajaxGetLayersTree(sUrl){object.<LayersTree>}

vmap/mapmanager/mapmanager.js, line 899

Load the layers tree from the json file

Name Type Description
sUrl string

url to the file

ajaxGetMapCatalog(sUrl){object.<oMapCatalog>}

vmap/mapmanager/mapmanager.js, line 880

Load the catalog array from the json file

Name Type Description
sUrl string

url to the file

collapseElement(element) experimental

vmap/mapmanager/mapmanager.js, line 950

Collapse in/out the tool

Name Type Description
element object

html trigger element witch have a "data-target" attr with is the #id of the target

getLayersOrderTool(){nsVmap.nsMapManager.LayersOrder} experimental

vmap/mapmanager/mapmanager.js, line 1026

oLayersOrderTool_ getter

Returns:
LayersOrder tool

getLayersTree(){object} experimental

vmap/mapmanager/mapmanager.js, line 1056

LayersTree_ getter (also set the visibility of the layers with the new ones)

Returns:
Layers tree

getLayersTreeTool(){nsVmap.nsMapManager.LayersTree} experimental

vmap/mapmanager/mapmanager.js, line 1016

oLayersTree_ getter

Returns:
LayersTree tool

getMapCatalog(){array} experimental

vmap/mapmanager/mapmanager.js, line 1091

oMapCatalog_ getter

Returns:
map catalog

getMapLegendTool(){nsVmap.nsMapManager.MapLegend} experimental

vmap/mapmanager/mapmanager.js, line 1036

oMapLegendTool_ getter

Returns:
MapLegend tool

getMapModalTool(){nsVmap.nsMapManager.nsMapModal.MapModal} experimental

vmap/mapmanager/mapmanager.js, line 1046

oMapModalTool_ getter

Returns:
MapModal tool

getMapToLoadUrl(){string} experimental

vmap/mapmanager/mapmanager.js, line 1109

sMapToLoadUrl_ getter

Returns:
the url when calling loadMap

loadLayersTools(sUrl)

vmap/mapmanager/mapmanager.js, line 147

Load the layers tree from the json file

Name Type Description
sUrl string

url to the file

loadMap(element)

vmap/mapmanager/mapmanager.js, line 178

Load a new map

Name Type Description
element

Html element witch contains the url to the map.json file

Name Type Description
url object

link to the map.json file

loadMapFromFile(element) experimental

vmap/mapmanager/mapmanager.js, line 801

Load a new map from a file

Name Type Description
element object

Html element witch contains the file-container, url

loadMapTools(sCatalogUrl)

vmap/mapmanager/mapmanager.js, line 90

Load the json files and initialize oMapCatalog and oLayersTree

Name Type Description
sCatalogUrl string

Catalog json file url

parseProxyUrl(url){String}

vmap/mapmanager/mapmanager.js, line 974

Add the proxy to the wms/wmts... url

Name Type Description
url string

parseProxyUrls(aUrls){Array.<string>}

vmap/mapmanager/mapmanager.js, line 993

Add the proxy to the wms/wmts... urls

Name Type Description
aUrls array.<string>

reloadMap()

vmap/mapmanager/mapmanager.js, line 866

Reload the map

removeLayer(olLayer)

vmap/mapmanager/mapmanager.js, line 493

Remove a layer from the map and the layers tree

Name Type Description
olLayer ol.layer.Base

Layer to remove

removeSelectionFeatures()

vmap/mapmanager/mapmanager.js, line 935

Remove the selection features

removeSelectionLayers()

vmap/mapmanager/mapmanager.js, line 920

Remove the selection layers

setLayersTree(oTree) experimental

vmap/mapmanager/mapmanager.js, line 1082

LayersTree_ setter

Name Type Description
oTree object

Layers tree

setMapCatalog(aCatalog) experimental

vmap/mapmanager/mapmanager.js, line 1100

oMapCatalog_ setter

Name Type Description
aCatalog array

Map catalog array

setMapToLoadUrl(sMapToLoadUrl) experimental

vmap/mapmanager/mapmanager.js, line 1118

sMapToLoadUrl_ setter

Name Type Description
sMapToLoadUrl string

the url when calling loadMap

setUsedMap(){undefined}

vmap/mapmanager/mapmanager.js, line 205

Put the used map to used