All Questions

4
votes
4answers
3468 views

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 mentioned above but none works. Here is my webpack setup { "root": "src", "dev...
12
votes
3answers
5704 views

Drawing a circle with the radius in miles/meters with Mapbox GL JS

I'm in the process of converting a map from using mapbox.js to mapbox-gl.js, and am having trouble drawing a circle that uses miles or meters for its radius instead of pixels. This particular circle ...
2
votes
1answers
225 views

How to add a marker to a MapBox GL JS map?

I'm trying to add a marker to a MapBox-GL-JS map in a HTML / Javascript map. I've tried to build a little sample: here you are my code <html> <head> <meta charset="utf-8"> ...
2
votes
2answers
328 views

Mapbox: How to avoid JavaScript errors for tilesets that aren't available at the current zoom level?

I'm using Mapbox GL JS and loading tileset layers from my Mapbox account. Some of these tileset layers are only available for zoom levels 10 to 15. The default zoom level of my map is 5, and when I ...
2
votes
2answers
88 views

Using MapBox for Geolocation in html

I would like to display the address on dynamics CRM using MapBox API, i have used Google API and it works perfectly, but now i would like to display it using map box. I have looked at the forward geo...
1
votes
2answers
304 views

Mapbox GL - my basic, default marker won´t show up on the map

lately, I started fiddling with MapBox and right now, I am trying to add the marker to the map. Not as easy as it seems. I am trying to add basic, default marker with code copypasted straight out of "...
1
votes
0answers
357 views

Custom marker with dialog box

How do I achieve dialog like those shown above. So far this is what I can do right now map.addLayer({ "id": "markers", "type": "symbol", "source": "markers", "interactive": true, ...
38
votes
4answers
11239 views

Mapbox GL JS vs. Mapbox.js

From the Mapbox glossary, Mapbox.js Mapbox.js is a JavaScript library that allows you to add an your interactive map to your website. It is a plugin for Leaflet, and it is an open source library t...
9
votes
2answers
1383 views

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 u...
1
votes
1answers
464 views

MapBox event when all Tiles are loaded

I'm using Mapbox GL JS API to manipulate a Mapbox map. Right before I upload my result (which is a canvas.toDataURL) to the server through HTTP I need to resize my map (bigger resolution) and then use...

Previous Next