MapChart.MiniMap

Syntax

MiniMap : PP.Ui.MiniMap;

Description

The MiniMap property determines a minimap.

Comments

The minimap is displayed at the top left corner.

The minimap display is managed by a button created at the map's bottom right corner.

To create a minimap, use the MapChart.MiniMapEnabled property.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component).

// Change minimap scale
map.setMiniMapScale(0.15);
// Enable minimap displaying
map.setMiniMapEnabled(true);
// Display minimap object in the console
console.log(map.getMiniMap());
// -> PP.Ui.MiniMap {_Events: Object, _typeName: "PP.Ui.MiniMap", ScaleChanged: PP.Delegate, ViewAreaChanged: PP.Delegate, _IsRTL: false…}

After executing the example the minimap display is enabled. The minimap object is displayed in the console.

See also:

MapChart