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
mapId string

The map identifier. 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.

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: