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

Explain how to load TileJSON from CDN #18

Open
rgov opened this issue Aug 9, 2019 · 0 comments
Open

Explain how to load TileJSON from CDN #18

rgov opened this issue Aug 9, 2019 · 0 comments

Comments

@rgov
Copy link

rgov commented Aug 9, 2019

I tried loading the dist.js file into my document and that caused a big headache because this file apparently includes an old version of Leaflet. I guess it's just meant for running the examples, and I should have used index.js instead.

It would be helpful to show in the README how to load the library from a CDN.

<!-- load Leaflet first -->
<script src="https://unpkg.com/proj4@2.5.0/dist/proj4.js"></script>
<script src="https://unpkg.com/proj4leaflet@1.0.2/src/proj4leaflet.js"></script>
<script src="https://unpkg.com/leaflet-tilejson@1.0.0-rc4/index.js"></script>
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

No branches or pull requests

1 participant