Skip to content

feat(submaps): Plugins Submaps (MIN-226)

mateusz-winiarczyk requested to merge MIN-226-plugins-submaps into development

Implemented getModels and openMap methods for plugins.

Get Models

To get data about all available submaps, plugins can use the getModels method defined in window.minerva.map.data. This method returns array with data about all submaps.

Example of getModels usage:
window.minerva.map.data.getModels();

Open Map

To open map, plugins can use the openMap method defined in window.minerva.map. This method takes one argument: an object with an id property that indicates the map ID.

Example of openMap usage:
window.minerva.map.openMap({ id: 51 });

submaps-plugins

Edited by mateusz-winiarczyk

Merge request reports