Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make preview usable locally #256

Merged
merged 1 commit into from
Jul 23, 2017
Merged

Make preview usable locally #256

merged 1 commit into from
Jul 23, 2017

Conversation

Wanztwurst
Copy link
Contributor

No explicit protocoll has been used for the leaflet files hosted on unpkg.com, resulting in use of the file:// handle when opened locally - hence the preview didn't work. With the explicit protocoll it works from ones hard drive as well, after cloning the repository for use in an own project for example.

@jieter
Copy link
Contributor

jieter commented Jul 22, 2017

You can use serve to setup a local server quickly:

npm install -g serve
serve .
open http://localhost:8000

or python SimpleHTTPServer
python -m SimpleHTTPServer 3000
open http://localhost:8000

@jieter jieter closed this Jul 22, 2017
@Wanztwurst
Copy link
Contributor Author

To view an example html page it would be good not to require a running webserver, not all people using leaflet are necessarily tech savy enough to do this extra step.

@jieter
Copy link
Contributor

jieter commented Jul 23, 2017

Hmm, maybe you are right. Any thoughts @brunob ?

@jieter jieter reopened this Jul 23, 2017
@brunob
Copy link
Member

brunob commented Jul 23, 2017

Agree with @Wanztwurst we should merge this one :)

@jieter jieter merged commit 26755c1 into leaflet-extras:master Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants