Class: MyMap

lux.MyMap

A mymap layer manager.

Constructor

new MyMap(options)

Parameters:
Name Type Description
options luxx.MyMapOptions

The options.

Properties
Name Type Description
layerVisibility boolean

The layer visibility. Default is visible. Required.

fitToExtent boolean

Fit to the mymaps extent. Default value is true. Required.

mapId string | undefined

The map identifier.

mapIds Array.<string> | undefined

An array of map identifiers.

name string

The name of the mymaps layer. Required.

profileTarget string | undefined

The id of the element in which to put the profile (without #). Optional. It is recommended to set the display style to none at first. The display will then be set to block adequately.

onload function | undefined

The function called once the map is loaded. Optional.

onClick function | undefined

If set, the function is called when clicking on the object and the popup is not displayed.

showPopup boolean | undefined

If true, the popup is displayed on click. Default is True.

Source:

Methods

loadProfile(geom, target, opt_addCloseBtn)

It loads the profile into an HTML element.

Parameters:
Name Type Description
geom ol.geom.LineString

The line geometry.

target Element | string

The target in which to load the profile.

opt_addCloseBtn boolean | undefined

Whether to add a close button or not. Default is false.

Source:

setMap(map)

Set the map

Parameters:
Name Type Description
map lux.Map

The map in which to load the mymap features.

Source: