Comments (9)
This seems like overkill, making a minified version is probably more helpful, then having customizable script generator if we want to cut down on the size of it.
from leaflet-providers.
I still like this idea...
Screenshot of the POC I use locally:
Minified/generated versions still require me to download a file, put in in the right place and include it in my HTML.
We have a tidy 'repository' of tilelayer providers, with correct attributions and min/maxZoom. Why not make it available this way for this different use case?
from leaflet-providers.
oooh i see I had thought you wanted to have it build a file to download open up a pull request
from leaflet-providers.
;)
Need to think about a way to include all layers without explicitly putting them in the file (easy) and without overflowing the not-so-huge screens though...
from leaflet-providers.
Just pushed https://github.com/leaflet-extras/leaflet-providers/tree/preview-page , please take a look.
The disctinction between baselayers/overlays is lost if we do not explicitly define them, we could add some key to the list of providers which indicates that it is an overlay...
from leaflet-providers.
overlay is only really important if your putting it into a layer control so the distinction isn't necessarily meaningful here
from leaflet-providers.
Not only then:
For example: reviewing the weather layers doesn't make much sense without a baselayer, so it would be nice if some basemap as reference is present.
But not really important...
from leaflet-providers.
true it would be nice to be able to select a couple layers, I meant that the code that is given doesn't change if it's an overlay or a base (As far as I know)
from leaflet-providers.
true, but I would fix that if we can decide on a way to distinguish between the two.
We could just make a list in the preview.html code referring to overlay layers and insert those in the control as overlay layers. Thus we do not have to add unnessecary stuff in the provider definition...
from leaflet-providers.
Related Issues (20)
- please help me, how can the leaflet use the video player using the RTSP url HOT 1
- Splitting out the list of providers in a standalone JSON file HOT 12
- Updating NLS section of leaflet-providers.js HOT 7
- Dependabot alerts HOT 3
- Esri.OceanBasemap not displaying HOT 5
- JusticeMap tiles not working with E302 HOT 8
- OpenTopoMap not displaying HOT 2
- Some missing tile providers
- Preview not working HOT 1
- Esri.OceanBasemap not displaying HOT 2
- Minimap not displayed HOT 2
- India map is not correct HOT 3
- Stamen tiles => stadia
- Géoportail urls update
- Find alternative to mocha-chrome to run the tests in CI
- Missing osmand tiles
- preview in browser tabs HOT 1
- Esri.DeLorme returning 404 HOT 1
- Updating Esri World Light Gray Canvas HOT 2
- USGS basemaps seem to have max zoom of 16, not 20 as defined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet-providers.