tileserver-gl | raster maps with GL styles | Map library

 by   maptiler JavaScript Version: 4.11.0 License: Non-SPDX

kandi X-RAY | tileserver-gl Summary

kandi X-RAY | tileserver-gl Summary

tileserver-gl is a JavaScript library typically used in Geo, Map, WebGL applications. tileserver-gl has no bugs, it has no vulnerabilities and it has medium support. However tileserver-gl has a Non-SPDX License. You can install using 'npm i tileserver-gl-light-custom' or download it from GitHub, npm.

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

            kandi-support Support

              tileserver-gl has a medium active ecosystem.
              It has 1791 star(s) with 578 fork(s). There are 72 watchers for this library.
              There were 10 major release(s) in the last 6 months.
              There are 182 open issues and 348 have been closed. On average issues are closed in 90 days. There are 28 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tileserver-gl is 4.11.0

            kandi-Quality Quality

              tileserver-gl has 0 bugs and 0 code smells.

            kandi-Security Security

              tileserver-gl has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              tileserver-gl code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              tileserver-gl has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              tileserver-gl releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.
              tileserver-gl saves you 101 person hours of effort in developing the same functionality from scratch.
              It has 258 lines of code, 0 functions and 18 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed tileserver-gl and discovered the below as its top functions. This is intended to give you an instant insight into tileserver-gl implemented functionality, and help decide if they suit your requirements.
            • 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 .
            Get all kandi verified functions for this library.

            tileserver-gl Key Features

            No Key Features are available at this moment for tileserver-gl.

            tileserver-gl Examples and Code Snippets

            No Code Snippets are available at this moment for tileserver-gl.

            Community Discussions

            QUESTION

            How to serve TileServer-GL map tiles to Openlayers without throwing CORB error
            Asked 2021-Oct-11 at 21:30

            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:30

            Turns 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:

            Source https://stackoverflow.com/questions/68898601

            QUESTION

            Implement tileserver-gl in NW.js desktop program?
            Asked 2021-Aug-01 at 15:40

            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:40

            Yes, 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

            Source https://stackoverflow.com/questions/68610951

            QUESTION

            How to display custom styled vector tiles with Mapbox GL JS?
            Asked 2021-Feb-26 at 08:12

            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:12

            I'm not exactly sure what you're asking, but basically you will:

            1. 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.
            2. Initialise a map object that loads that style file:

            Source https://stackoverflow.com/questions/66377663

            QUESTION

            Can Cloudfront + ELB change the query string of my request?
            Asked 2021-Feb-25 at 05:33

            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:33

            Yes, 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.

            Source https://stackoverflow.com/questions/66362730

            QUESTION

            Mapbox - invalid tile order
            Asked 2020-Jan-12 at 07:54

            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:31

            I 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:

            Source https://stackoverflow.com/questions/59697788

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tileserver-gl

            Make sure you have Node.js version 10 installed (running node -v it should output something like v10.17.0). Install tileserver-gl with server-side raster rendering of vector tiles with npm. Now download vector tiles from OpenMapTiles. Start tileserver-gl with the downloaded vector tiles. Alternatively, you can use the tileserver-gl-light package instead, which is pure javascript (does not have any native dependencies) and can run anywhere, but does not contain rasterization on the server side made with MapBox GL Native.

            Support

            You can read full documentation of this project at https://tileserver.readthedocs.io/.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i tileserver-gl

          • CLONE
          • HTTPS

            https://github.com/maptiler/tileserver-gl.git

          • CLI

            gh repo clone maptiler/tileserver-gl

          • sshUrl

            git@github.com:maptiler/tileserver-gl.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link