You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/manage/dashboard-maps/index.md
+31-21Lines changed: 31 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
description: Webmaps display the map overview of your project's spatial data directly in your web browser, on Mergin Maps dashboard.
3
+
outline: deep
3
4
---
4
5
5
6
# Webmaps
@@ -17,6 +18,7 @@ Webmaps are **not** available for <CommunityPlatformNameLink />.
17
18
18
19
## Webmaps content
19
20
21
+
### Project layers
20
22
On the webmaps, you will see your survey layers or raster layers that are [packaged](../project/#packaging-qgis-project) with the project. Other layers, such as online [background maps](../../gis/settingup_background_map/#background-maps) or PostgreSQL layers are not displayed. The extent of maps is defined by the [extent set in the QGIS project](../../gis/features/#project-extent).
21
23
22
24
All maps on the <DashboardShortLink /> use [<MainPlatformName /> vector tile service](../../gis/settingup_background_map/#online-services-1) as a background map.
@@ -29,26 +31,38 @@ Click on a feature on the map to display its properties.
## Sharing maps via URL <Badgetext="early access"type="warning"/>
33
-
::: tip Early access feature
34
-
Map sharing is in early access. If you would like to try it out, fill in [this form](https://wishlist.merginmaps.com/f/share-maps-via-url) to gain access to this feature.
34
+
### Adding background maps
35
+
By default, the online background maps from your project are not displayed on the webmaps. However, they can be added to your webmaps using a JavaScript file with the map definition to your project through <DashboardLink />.
35
36
36
-
Try out this <AppDomainNameLinkid="maps/grDTleg8yCdSracIxs-hmFIGdDs"desc="example link"/> to see how shared maps work.
37
+
:::warning Background maps licensing
38
+
Keep in mind that background maps services and data sources come with their own terms of use, especially if they are to be publicly shared. You should comply with any terms and conditions of the services of your choice.
37
39
:::
38
40
39
-
Webmaps can be shared via URL. [Admins or owners](../permissions/) can enable map sharing for a project, so that anyone with the link can display and explore your project in a web browser, without the need to log into <MainPlatformNameLink /> or making the project [public](../project-advanced/#make-your-project-public-private).
41
+
1. Create a file named `map-script.js` with the following structure:
42
+
43
+
```import TileLayer from 'https://esm.sh/ol@10.8.0/layer/Tile'
44
+
import { fromLonLat } from 'https://esm.sh/ol@10.8.0/proj'
45
+
import XYZ from 'https://esm.sh/ol@10.8.0/source/XYZ'
40
46
41
-
1. Navigate to your project on the <DashboardShortLink />.
42
-
2. In the **Map** tab, click on the **Share map** button to generate a shareable link
To disable the map sharing, click on the **Revoke sharing** button.
56
+
MerginMaps.getMap().addLayer(layer)
57
+
```
58
+
This is a JavaScript file that defines background maps or other customisations that should be added to your webmap.
46
59
47
-

60
+
2. Add the `map-script.js` to your project through <AppDomainNameLink />
48
61
49
-
::: tip Blog about shared maps
50
-
You can read about this functionality in our blog post <MainDomainNameLinkid="blog/a-final-surprise-for-the-year---shared-maps-via-url"desc="A final surprise for the year - shared maps via URL"/>.
51
-
:::
62
+
After syncing the project, the background map will be added to your webmap.
63
+
64
+
### Customisations
65
+
Other customisations can be done. The `map-script.js` file
52
66
53
67
## Webmaps extent
54
68
@@ -64,13 +78,9 @@ If this parameter is not defined, the map extent will be set as the *Advertised
64
78
65
79
If there are no extent settings in the QGIS project, <MainPlatformName /> will calculate the extent from layers in the project.
66
80
67
-
## Troubleshooting
68
-
69
-
### Map config does not exist
70
-
The **Map** tab of a project on the <DashboardShortLink /> may display this error message:
71
-
`Map config does not exist, please try update the project`
72
-
73
-

81
+
## Sharing maps via URL <Badgetext="early access"type="warning"/>
74
82
75
-
This usually happens when the map was not initiated. All you need to do is to create a new version of the project: synchronisation of the project will activate the map content.
83
+
Webmaps can be shared via URL or embedded on a website. You can find more details about this early access feature in [Sharing and Embedding Webmaps](../webmaps-sharing/).
76
84
85
+
## Troubleshooting
86
+
Troubleshooting tips for webmaps can be found [here](../webmaps-troubleshooting/).
description: Mergin Maps webmaps can be shared using a URL link. You can also embed them directly on your website with a simple HTML code for seamless integration.
3
+
---
4
+
5
+
# Sharing and Embedding Webmaps <Badgetext="early access"type="warning"/>
6
+
[[toc]]
7
+
8
+
::: warning Early access feature
9
+
Map sharing is in early access. If you would like to try it out, fill in [this form](https://wishlist.merginmaps.com/f/share-maps-via-url) to gain access to this feature.
10
+
:::
11
+
12
+
The spatial data of your project can be displayed and explored in the **Map** tab of the project on the <DashboardShortLink />. As an early access feature, they can also be [shared via URL](#sharing-maps-via-url).
13
+
14
+
15
+
:::tip Usage details
16
+
Webmaps are available for <MainPlatformNameLink /> cloud and <EnterprisePlatformNameLink /> users.
17
+
18
+
Webmaps are **not** available for <CommunityPlatformNameLink />.
19
+
:::
20
+
21
+
22
+
## Sharing maps via URL
23
+
24
+
Webmaps can be shared via URL. [Admins or owners](../permissions/) can enable map sharing for a project, so that anyone with the link can display and explore your project in a web browser, without the need to log into <MainPlatformNameLink /> or making the project [public](../project-advanced/#make-your-project-public-private).
25
+
26
+
1. Navigate to your project on the <DashboardShortLink />.
27
+
2. In the **Map** tab, click on the **Share map** button to generate a shareable link
28
+
3. Send the link to anyone to share your project
29
+
30
+
To disable the map sharing, click on the **Revoke sharing** button.
31
+
32
+

33
+
34
+
::: tip Blog about shared maps
35
+
You can read about this functionality in our blog post <MainDomainNameLinkid="blog/a-final-surprise-for-the-year---shared-maps-via-url"desc="A final surprise for the year - shared maps via URL"/>.
description: Troubleshooting tips for Mergin Maps dashboard maps.
3
+
---
4
+
5
+
# Troubleshooting webmaps
6
+
7
+
## Map config does not exist
8
+
The **Map** tab of a project on the <DashboardShortLink /> may display this error message:
9
+
`Map config does not exist, please try update the project`
10
+
11
+

12
+
13
+
This usually happens when the map was not initiated. All you need to do is to create a new version of the project: synchronisation of the project will activate the map content.
0 commit comments