1.18. How to embed a Web Map on your website

All Web Maps created on nextgis.com can be easily embedded into your website.

Note

This functionality is available only to nextgis.com Mini and Premium users.

For this:

  • Open Web Map

  • Click on the “Share” tab on the left sidebar

  • Customize your desired map width and height

  • Copy the code

  • Paste this code on your site

../../_images/embed_webmap_en.png

Pic. 1.63. Options for embedding a Web Map on a site

../../_images/webmap_on_site_en.png

Pic. 1.64. Embedded Web Map example

There are also additional options:

  • Link to the main map - to go from the site to the map page in Web GIS

  • Generate events - for integration and programmatic interaction with the iframe

  • Preview - to preview the embedded Web Map before publishing it

To embed a Web Map with all the panels available remove /tiny part from the Web GIS link in iframe code. This will allow users, for instance, to enable and disable particular layers.

If you are a developer check out the code.nextgis.com library suite and the NGW API.