MapSVG exposes a global mapsvg object in window:
mapsvgMapSVG global object containes all environment variables and instances of created maps.
Get map by index (in the order of creation):
const map_1 = mapsvg.get(0)
const map_2 = mapsvg.get(1)
const map_3 = mapsvg.get(3)Get map by ID:
const map = mapsvg.getById(254)Get all of the created maps:
const maps = mapsvg.instancesCheck if the map is viewed on a mobile device (but not on a tablet):
mapsvg.utils.env.isPhoneCreate instances of markers, geoPoints, etc.:
const map = new mapsvg.map(...)
const marker = new mapsvg.marker(...)
const point = new mapsvg.geoPoint(...)