<a id="ngcom-embed-webmap"></a>

# 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](http://nextgis.com/nextgis-com/plans) users.

To embed a Web Map:

* Open Web Map
* Click on the “Share” panel on the left sidebar
* If you wish to, customize map width and height and [other parameters](https://docs.nextgis.com/docs_ngcom/source/embed_webmap.html#ngcom-embed-webmap-settings).
* Copy the code
* Paste this code to your site

![image](docs_ngcom/source/_static/embed_webmap_en_2.png)![image](docs_ngcom/source/_static/webmap_on_site_en.png)

You can preview the embedded map before publishing it by pressing **Preview** button.

<a id="ngcom-embed-webmap-settings"></a>

## Embeded map settings

**Map size** - width and height in pixels.

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

**Generate events** - for integration and programmatic interaction with the iframe.

You can also embed a Web Map with additional tools and panels. This will allow users, for instance, to enable and disable particular layers.

**Tools** available for embeded map:

- feature identification;
- measuring area and distance;
- cursor location and extent coordinates;
- scale line;
- initial extent;
- marking user location;
- zoom;
- scale info.

You can also choose which **panels** will be available on the map:

- description;
- layers;
- search.

If several panels are added, you can use the **Active panel** menu to select one of them to be displayed by default or have the map open with the panels minimized.

All settings are included in the code.

![image](docs_ngcom/source/_static/embed_extended_en.png)

If you are a developer check out the [code.nextgis.com](https://code.nextgis.com/) library suite
and the [NGW API](https://docs.nextgis.com/docs_ngweb_dev/doc/toc.html).

<a id="ngcom-embed-webmap-feature"></a>

## How to share a link to a particular Web Map feature

Using specially generated GET queries you can share a link to a particular feature of a layer. The link will open with the geographical context that you can select in the Web Map settings.

All you need to do is create links in the information systems. By clicking on them users will be directed to the map with the selected feature and context.

Such links can be automatically generated by your system integrated with NextGIS Web.

Here’s an example:

[https://demo.nextgis.com/resource/6118/display?panel=layers&hl_lid=6108&hl_attr=OSM_ID&hl_val=230629285&zoom=17](https://demo.nextgis.com/resource/6118/display?panel=layers&hl_lid=6108&hl_attr=OSM_ID&hl_val=230629285&zoom=17)

* [https://demo.nextgis.com/resource/7023/display?panel=layers](https://demo.nextgis.com/resource/7023/display?panel=layers) - the “pure” Web Map link;
* hl_lid – layer ID;
* hl_attr – attribute (name of attribute field of feature ID);
* hl_val – value of feature ID;
* zoom - value in numbers with 1 as a minimum.

![image](docs_ngcom/source/_static/webmap_feature_lik_en.png)

You can make the link manually ([more on how to do it](https://docs.nextgis.com/docs_ngweb/source/webmaps_client.html#ngw-webmaps-client-feature-link)).
