tileserver-gl | raster maps with GL styles | Map library
kandi X-RAY | tileserver-gl Summary
kandi X-RAY | tileserver-gl Summary
Vector and raster maps with GL styles. Server side rendering by Mapbox GL Native. Map tile server for Mapbox GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Lazy initialization
- the most cases
- used by ui
- Call this function and do all callbacks
- Parses an AJAX request .
- Asynchronously read a URL .
- Run shell command
- Read a binary string
- draw an edge
- Invokes a function .
tileserver-gl Key Features
tileserver-gl Examples and Code Snippets
Community Discussions
Trending Discussions on tileserver-gl
QUESTION
I need to run an OpenLayers instance offline. I am trying to load map image tiles which I have downloaded from here. I am running TilerServer-GL docker image as specified in the documentation. I have a simple index.html
file to display an OpenLayers map as specified in the OpenLayers QuickStart documentation. The only change I have made to the .html
they provide is to change the Tile Layer source as follows:
ANSWER
Answered 2021-Oct-11 at 21:30Turns out that the reason the CORB error was being thrown was because the server was responding with a 'text/html' MIME type and the browser was expecting an image. Since it didn't match, the CORB error was thrown.
The server was responding with the wrong type because the URL was wrong. I had:
QUESTION
Is there any way to make tileserver-gl working inside a desktop program so when the program start the tile server start with it
...ANSWER
Answered 2021-Aug-01 at 15:40Yes, you can set up NW.js to run a local webserver, and point to that for your app. Here is an example:
More examples for NW.js are at
QUESTION
I am planning the development of a map service, where I'd like to display a list of markers on top of a custom "base layer" consisting in vector tiles rendered with TileServer-GL. I understand that TileServer-GL render vector tiles based on an .mbtiles tileset and style with a .json style file made for instance with Maputnik. When comes the step of displaying that into an interactive map, for instance with Mapbox GL JS, I understand that you can specify the tiles served by TileServer-GL as a third party source (https://docs.mapbox.com/mapbox-gl-js/example/third-party/), but it seems that you then need to add layers one by one, and specifying the style of each layer. But I thought that's what the tile server already does! Have I misunderstood anything?
Thanks for your help
...ANSWER
Answered 2021-Feb-26 at 08:12I'm not exactly sure what you're asking, but basically you will:
- Construct a Mapbox GL style file (.json) which refers to all the layers you have created, where they are hosted, and how you want each of them displayed.
- Initialise a map object that loads that style file:
QUESTION
We're running a react web app on AWS. The web app is hosted by an S3 bucket, and the API sits on elastic beanstalk. We use Cloudfront to consolidate this behind a single domain.
So far so good. The site loads, it can talk to the API.
The issue is, all API requests that reach our elastic beanstalk instance still have /api in the query string. This is fine for our API since we can control that, but we are deploying an instance of tileserver-gl, which does not allow us to configure the root url to serve from.
It doesn't seem like I can configure Cloudfront to modify the query string to chop of the first part. E.g. so that mysite.com/api/v1/users
would map to fj935hf02.elasticbeanstalk.com/v1/users
.
How have others circumvented this issue?
...ANSWER
Answered 2021-Feb-25 at 05:33Yes, CloudFront can do modifications like that through Lamdba@edge. Specifically you could look at the Origin request
function which can modify what is passed to the origin.
AWS provides also examples of such functions. One of the examples shows how you can work work with query strings.
QUESTION
I am working on my own tile server. I have weird problems with displaying tiles in the correct order. Tiles were created using OSM data. When I use tileserver-gl-light as a tiles server everything seems to be ok, but when I try to serve tiles by my own server they do not appear in correct order after zooming. I use the same page to render the map so I think the problem is connected with the server. The tiles look like this (Zoom 1):
I appreciate any help. Best regards, Marek
...ANSWER
Answered 2020-Jan-11 at 20:31I don't know the reason why but there was a need for correction y axis value before fetching data from mbtiles database.
If your tiles url looks like: http://host:port/data/{z}/{x}/{y}
you need to recalculate y value before fetching tile data in pbf format from database:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tileserver-gl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page