About 51 results
Open links in new tab
  1. Newest 'mapbox' Questions - Stack Overflow

    Jan 14, 2026 · 41 views Mapbox 3.16.0 js gl - returns two objects on click event with some missing properties in first one I am experiencing some very weird results and I cannot begin to understand …

  2. How do I add a simple image overlay in Mapbox Javascript?

    Jun 15, 2018 · How do I add a simple image overlay in Mapbox Javascript? Asked 7 years, 8 months ago Modified 7 years, 8 months ago Viewed 15k times

  3. getting error message while try to load mapbox - Stack Overflow

    Mar 16, 2021 · You can solve this problem by adding api.mapbox.com as a supported source in your project. The code below is my router file for handling routes that make use of Mapbox.

  4. Adding a Shapes files as a Layer on Mapbox Map - Stack Overflow

    Apr 7, 2018 · In order to load a SHP file and display it on a Leaflet / Mapbox.js map, you have several Leaflet plugins that can make the task easy. For example leaflet.shapefile (online demo where you …

  5. How to use standard OpenStreetMap tile servers with Mapbox GL JS?

    I'm trying to use Mapbox GL in combination with the plain public OSM tile servers. Following the example of how to add a raster tile source, my take on a minimal example looks like this: <!DOCT...

  6. Mapbox GL JS: Style is not done loading - Stack Overflow

    Jun 6, 2017 · I'm finding with mapbox-gl 1.1.1 that this doesn't work without modification: the styledata event is fired multiple times, so I get errors from trying to re-add a layer that already exists. I needed …

  7. javascript - Use a custom created Mapbox style (from Mapbox Studio ...

    I can't find any examples for how to use custom created Mapbox map-styles. On the Mapbox page I created a style for a map. How can I use this style with Leaflet? For example: var map = L.map('map',...

  8. javascript - mapbox gl : SVG in symbol layer - Stack Overflow

    Oct 1, 2025 · Your title says "mapbox gl : SVG in symbol layer" but your code shows a raster layer using an image source. SVGs are not supported when using an image source. You would need to rasterize …

  9. What are Leaflet and Mapbox, and what are their differences?

    Sep 4, 2012 · Mapbox is a service to design and publish maps, where the end-result is a bunch of generated map-tiles stored in the cloud (and some json files). Thus, for example, you may consume …

  10. How to use Mapbox style using JSON file - Stack Overflow

    Mar 22, 2023 · I am trying to add style to the map. I go through the Mapbox site and try to understand how to read JSON style and use it in the application. So this is the JSON file I got from the Mapbox …