• Hello. Is it possible to link to a specific area on the map when clicking on a link. How the URL itself looks in this case and what it can be attached to on the map.
    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter doi7ing

    (@doi7ing)

    For example, the link looks like this
    \\www.server.ru\map\10.690943,-140.590943
    when clicking on a link, the map will zoom in and show the terrain in coordinates 10.690943, -140.590943
    or so
    \\www.server.ru\map\id=Russia
    when clicking on the link, the map will zoom in and show the country Russia
    Provided that \\www.server.ru\map is a page with a map placed on it.
    Thank you in advance.

    • This reply was modified 7 years, 1 month ago by doi7ing.
    Plugin Author martynasma

    (@martynasma)

    You can do so by implementing a custom JavaScript that reads the URL of the page and calls maps’ API functions:

    zoomToLongLat to zoom to specific coordinates.

    clickMapObject to simulate click on a map object.

    You would just need to get actual map object using getObjectById. E.g.:

    `
    map.clickMapObject(map.getObjectById(“RU”));
    `

    I hope this helps.

    Thread Starter doi7ing

    (@doi7ing)

    ok! Thanks=)

    Plugin Author martynasma

    (@martynasma)

    You’re welcome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘link to a specific area on the map’ is closed to new replies.