Class: MyMap

module:mymap.MyMap

A mymap layer manager.

Constructor

new MyMap(options)

Parameters:
Name Type Description
options

Options.

Name Type Description
fitToExtent boolean (defaults to true)

Fit to the mymaps extent.

mapId string | undefined

The map identifier.

mapIds Array.<string> | undefined

An array of map identifiers.

name string | undefined

The name of the mymaps layer.

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.

layerVisibility boolean | undefined

The layer visibility. Default is visible.

showPopup boolean | undefined

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

onClick function | undefined

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

Source:

Methods

loadProfile(geom, target, opt_addCloseBtn)

It loads the profile into an HTML element.

Parameters:
Name Type Description
geom LineString

The line geometry.

target Element | string

The target in which to load the profile.

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 module:index.Map

The map in which to load the mymap features.

Source: