1

I create a web map using Leaflet. I access my map through localhost. However now I want to share with other persons. But I have local data. If I open the HTML it only presents the base maps. How can I share my local data?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Apr 15, 2020 at 9:27
1
  • If you are running your map from your server and data is also on your server, then there is no difference where you run it from, your local computer or from anywhere else in internet. Commented Apr 15, 2020 at 9:47

1 Answer 1

2

In the most cases the HTML is just the root for your webmap. You have various dependencies like css-files, js-files or geodata.

All the data is usually stored in different folders, named like css, js, data, etc. If you want to share a webmap running on localhost, you will have to share the other folders and files, too.

E.g. a leaflet map exported with qgis2web looks like following:

enter image description here

answered Apr 15, 2020 at 9:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.