Comments (9)
What is the advantage of making the switch here? The preview maps are not intended to be full featured map viewers, so we just needed a lightweight, low dependency basemap not gated via accounts / tokens. Meaning: an image rather than vector basemap is not necessarily a problem for preview maps.
Seems like switching to vector tiles introduces the requirement that we also include a style JSON (as per your example). Also - I've had issues using ESRI vector tilesets with Mapbox GL JS, because by default they use indexed rather than flat tilesets (meaning not all tiles are available at all zooms), which breaks the frontend because Mapbox GL JS does not support this approach.
from mbtileserver.
I was getting a CORS error on the default Arc tiles, so I looked into alternatives and remembered this style I had. I'm not sure if the tiles are indexed or flat, I will look into that. I just prefer the way vector tiles render alongside other vector data, but that's a minor issue.
Separately I do not think you can use Esri image tiles without your org having an Esri license. I was under the impression that the Esri OSM vector tiles had a more open license, but now after looking again I cannot seem to find anything that states that concretely. If I find something along those lines I will update this issue. It might make sense if the license cannot be figured out to move away from Esri tiles entirely to something with a more permissive license.
from mbtileserver.
I'm onboard with moving to freely available tiles with permissive licenses for use in our preview pages. It looks like the OSM hosted tilesets don't allow this use case (https://operations.osmfoundation.org/policies/tiles/) because it seems similar enough to distributing an app that uses tiles from openstreetmap.org
even if the preview pages are definitely not our focus here.
It looks like Stamen maps are the only ones I can find without some sort of a restriction on them. Please feel free to suggest other alternatives.
from mbtileserver.
from mbtileserver.
Also it does look like the esri vector basemap tiles are indexed, not sure how big of a deal that is in this scenario however. Still switching to Stamen raster tiles would be the simplest option.
from mbtileserver.
Carto Positron is pretty good: https://stamen.com/introducing-positron-dark-matter-new-basemap-styles-for-cartodb-d02172610baa/
{
"tiles": [
"https://cartodb-basemaps-a.global.ssl.fastly.net/light_all/{z}/{x}/{y}{ratio}.png",
"https://cartodb-basemaps-b.global.ssl.fastly.net/light_all/{z}/{x}/{y}{ratio}.png",
"https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}{ratio}.png",
"https://cartodb-basemaps-d.global.ssl.fastly.net/light_all/{z}/{x}/{y}{ratio}.png"
],
"tileSize": 256,
"attribution": "© <a href=\"http://www.openstreetmap.org/copyright\"> OpenStreetMap </a> contributors, © <a href=\"https://carto.com/about-carto/\"> CARTO </a>"
}
(There's also dark_all
).
from mbtileserver.
It looks like those are also restricted? Here is what I see from the linked Carto page.
How can I use CARTO basemaps?
Our basemaps can be used for free in applications and visualizations by [CARTO grantees](https://carto.com/grants/)...
For commercial purposes, you will need an Enterprise license to ensure you have the best basemaps available for your project.
Presumably nobody is (or should be) using the preview maps as they are for commercial purposes, but since it is bundled into an app that has an MIT license without non-commercial constraints, we'd probably at least want to note that. (similar issues technically apply for users that don't have an ESRI license with the basemaps we have now...)
from mbtileserver.
Stamen maps are now end-of-life. Options could be to use Stadia and require a token in the environment variables? Without a token commercial use is not allowed. Not sure of other options...
from mbtileserver.
Stadia authenticates requests by referrer (https://docs.stadiamaps.com/authentication/), which is convenient as there's no need to change the URL to add an API key. It also freely responds to localhost up to a rate limit.
from mbtileserver.
Related Issues (20)
- BUG: invalid tiles cause panic on sqlite connections
- BUG: Map preview fails when 'center' property is not present in metadata HOT 7
- caching options HOT 1
- Build Error with GCC11 HOT 5
- DOC: Add note that user needs to increase max open files limit if using several tilesets
- Deploy arm64 image to Docker Hub HOT 4
- Add multiple subdomain support HOT 1
- Missing tiles returned as 256x256 transparent tiles HOT 11
- Serve tiles from blob-storage HOT 1
- it is not support EPSG 4326 HOT 2
- Migrate from Docker Hub to Github Packages registery
- Include version in CLI
- mbtileserver vs Martin Comparison? HOT 2
- Consider adding a /metrics endpoint HOT 1
- Map preview does not work when using reverse proxy with HTTPS HOT 6
- Use of stadiamaps? HOT 9
- Docker 404 Error HOT 4
- Crash when issue with one tile HOT 4
- Enhancement: support TileJSON 3.0.0
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 mbtileserver.