Top "Mapbox-gl-js" questions

WebGL based Javascript library that renders Mapbox Vector Tiles in the browser.

Mapbox GL Js: adding and removing GeoJSON sources and layers

Im having a problems adding and removing layers in mapbox gl. I have this layer: map.addLayer({ "id": "route", "type": "…

mapbox-gl-js
Uncaught TypeError: fs.readFileSync is not a function

I am trying to get webpack and mapbox-gl work together within Meteor system. I have look everywhere about the error …

meteor reactjs webpack mapbox-gl-js
How do I get the bounding box of a mapboxgl.GeoJSONSource object?

I'm setting up a Mapbox GL JS map like this: mapboxgl.accessToken = 'pk.my_token'; var cityBoundaries = new mapboxgl.GeoJSONSource({ …

mapbox mapbox-gl-js
How to close all popups programmatically in mapbox gl?

So, I know that we have Marker.togglePopup() in Mapbox GL Api. But Can we close all popups programmatically ?

javascript mapbox-gl mapbox-gl-js
Mapbox GL JS: Export map to PNG or PDF?

I'm using Mapbox GL JS version 0.32. Is there a way to export the map to a high-res PNG or PDF? …

mapbox mapbox-gl-js
Mapbox GL JS and GeoJSON as an external file

I have code to set markers with Mapbox map $(function() { mapboxgl.accessToken = 'pk.###'; var map = new mapboxgl.Map({ container: …

mapbox mapbox-gl-js mapbox-gl mapbox-marker
How to fix canvas size in Mapbox GL?

I'm using Mapbox GL to show a map and crop a fixed size image from the center of it. It …

mapbox-gl mapbox-gl-js
Mapbox GL draw lines and bezier

There is some way to draw line inside Mapbox GL? For example, i need to draw some lines (straight or …

javascript mapbox-gl mapbox-gl-js
Get Current Center Position Mapbox GL JS

Looking for a way to get the current coordinates of the center of a map using Mapbox GL JS the …

mapbox-gl-js mapbox-gl
Mapbox GL JS: Style is not done loading

I have a map wher we can classically switch from one style to another, streets to satellite for example. I …

mapbox mapbox-gl-js mapbox-gl