Mapbox GL using external maps

I want to use Mapbox GL in my Android application. This service is going to be released soon and I have a tricky question about using the renderer. I like the renderer itself, but I really want to...

How to generate vector tiles and how to display it in leaflet

My data consists of many elements and attibutes, so I can't send entire json to client-side because it's too slow reading and displaying data. At this point I need to make tiles from data. I have...

Vector Tiles from mapbox-vector-tile-java results in features rendered in mapbox-gl at abnormally high latitudes

We are trying to incorporate vector tile endpoints into a back-end framework using mapbox-vector-tile-java to encode geographic features into Vector Tiles. We have it all mostly working except...

What do minzoom and maxzoom do in Mapbox-GL-JS exactly?

What exactly do the minzoom and maxzoom properties on vector tile sources, and vector-based layers do in Mapbox-GL-JS styles? The documentation is a bit short.

How do I convert geojson into mbtiles automatically?

I would like to convert geojson into mbtiles either in the client or server side to be loaded in leaflet. I have data that will be inserted into postgesql everyday and I want to turn that into...

How to get the feature geojson from the result of queryRenderedFeatures on a layer whose source is a vector tile in mapbox gl js?

I have a layer called "Searched LayerX" having a vector tile source. I am having a simple requirement of highlighting a feature inside this "Searched LayerX" at runtime. I was thinking of using...

react-map-gl without API key using osm tiles

Is it possible? This tells me it is, but dont know why it defines and API key. but I cannot get it to work with react-map-gl StaticMap class. The property I can see from that class is just...

mapbox-gl-leaflet in react-leaflet with TypeScript?

I am trying to get this implementation described at https://stackoverflow.com/questions/42765309/render-mapbox-vector-tiles-inside-react-leaflet working, except I'm using TypeScript. So my file...

TomTom tile layer not included in leaflet map

Currently working on an app (map) where I would like to use the Tom Tom tile layers on top of Leaflet. Due to Leaflet's documentation I would like to stick to Leaflet, rather than Tom Tom. I was...

mapbox-gl-js: Vector tiles - most efficient way to Change/Add feature property at client-side?

A mapbox-vector-tile layer is being served from GeoServer (around 500K features points and multiline strings). I am using mapbox-gl-js to plot the layer at client side and I use expressions to...

How to display custom vector tiles on Google Maps

The goal is to display large amount of data on Google Maps. By large amount I mean around 10 millions of segments stored in PostgreSQL database. The segments represent some characteristics of...

How to retrieve Vector Tiles from Mapbox with d3.js and convert to geojson?

I am trying to replicate the example from Mike Bostock: https://observablehq.com/@d3/mapbox-vector-tiles Since the language of Observable is not native Javascript, I am unable to get the example...

How can I add Mapbox vector tile layer from Geoserver to Mapbox?

I have published a shapefile as a vector tile on GeoServer according to this. Now, how can I add this layer to Mapbox? I would be very pleased if you can help me.

Load ESRI Vector Tiles in mapbox-gl

I am using mapbox-gl v 1.8.0. I am trying to load ESRI Vector Tiles using the ArcGIS Online service. Here is my code snippet mapboxgl.accessToken = '<your access token here>'; var map = new...

How to display a huge GeoJSON file to the MapBox?

I'm new in MapBox GL Js and I want to call a big GeoJSON file over https and display it to the map. I think that calling vector Tile is the best way to do that, I found some tutorials that show...

Leaflet map not updating background tile correctly until resize or pan is made

I am using mapbox-gl-leaflet to render vector layers in leaflet. I have a set of background tiles where they can be added via layers control. Initially when opening the map for the first time and...

Get Bounding Box used By queryRenderedFeatures

I have an application that serves vector tiles. The features in the tiles are clickable. When a user clicks the map, I pass mapbox-gl's queryRenderedFeatures a 5 x 5px bounding box around the...

Rendering vector-tiles using Mapbox using react-mapbox-gl

I have a geoJSON file that I convert into vector.tiles using [this npm package][1]. I use const tileIndex = geojsonvt(geoJSON). The geoJSON file has the following format and it gets converted...

Send multiple response using Express.JS for vector tiles

I am creating vector tiles using PostgreSQL, Node.JS, and OpenLayers.Currently, I am able to create multilayer vector tiles using data stored in PostgreSQL but I think the process which I am...

How to use geometry of vector tile layer in mapbox to make intersections with Turf.js?

I am using Mapbox-gl in React. I am trying to make an intersection between a polygon selected and a complete layer map.on('click', 'buildings', function(e) { map.getCanvas().style.cursor =...

Jetty server 9.4.30 stops responding after a specific number of requests

I'm developing an embedded jetty server with REST compatibility with JAX-RS library. But weirdly server stops responding after 1800 to 2000 requests without any error code or throwing an...

Change map style of mabox-gl-cordova-offline map in Cordova app

I have created an app with Cordova, that has an offline map with vector tiles. I used mapbox-gl-cordova-offline for offline maps. At the moment, the mbtiles files for the offline map is integrated...

GMap.NET with own vector map tile server

I'm looking for a way to use vector map tiles with Gmap.net so they can be styled and stored offline easily. There's a great project, VectorTileRenderer...

How to add custom Authorization Header for tile requests in Leaflet

I am using the Leaflet.VectorGrid plugin to load pbf vector tiles on a leaflet map. The API that I retrieve the vector tiles requires an authorization header to be passed. In Mapbox GL js this can...

Mapbox GL - highlight features and queryRenderedFeatures() while allowing basemap style change

I need to be able to highlight features in a bounding box using Mapbox GL as shown in this example. My map also needs to have the ability to change the style layer, e.g. changing the base style...

Mapbox GL JS: Stacking order of features in layer – what determines it? Can you change it?

I have a vector tile layer with about ~120 features ranging in size from over a million acres down to less than 20. I am having issues with mouseover whereby the large features are occluding the...

How to use the PostGIS aggregate function ST_AsMVT with Django ORM

Problem I would like to create a Mapbox vector tile (MVT) in Django, using the ORM. In SQL (PostgreSQL, PostGIS) the SQL query looks like this for the tile with zoom=8, x=137, y=83: SELECT...

what is the best solution to store a tile cache ? in a file system or a database table?

I have already implemented a tile server using xyz tile system and geotools for rendering tile image,now i have to cache my tile image which is a png image 256*256(always) of size ,i am not using...

Leaflet and Ordance Survey Open Data: mapping on a web page

I am using the UK Ordnance Survey sample code to investigate using OS maps on a webpage with Leaflet. Using the APIKey version works as expected and the maps render (based on the sample code...

Load local .mbtiles with maplibre-gl-js

Im want to load a local .mbtiles (with vector tiles) with maplibre-gl-js (in a cordova app if it's important to know). As far as I understand, I should use the addProtocol method. That works fine...