mapbox-gl Questions

2

Solved

Has anyone used either Mapbox or OpenMapTiles vector tiles to find routes from one place to another? It seems to me like those tiles are made for display and don't contain intersection informatio...
Trojan asked 12/9, 2018 at 16:36

1

There's an example of how to make a point draggable (which has a layer) and there's an example of how to setup a marker with a custom image, but how would I make that custom image draggable on the ...
Sexton asked 25/9, 2016 at 23:25

0

I have found that we can render marker either with PointAnnotation or SymbolLayer. I couldn't find any documentation related to drag functionality for this. Is there any workaround for this?
Backhouse asked 7/12, 2018 at 11:11

1

I have seen few examples of animated line on mapbox but I haven't found any that creates a linear line between two points. I am able to create markers on the map and also to draw a line between the...
Barsac asked 23/10, 2018 at 6:17

2

Solved

I have been using Mapbox for my app to generate route and turn-by-turn navigation and it's working well. However I would like to avoid to go through some coordinates of the route but I can't figure...
Ijssel asked 2/6, 2018 at 18:27

1

Solved

Given two linestrings that occupy the same space, is it possible to define a style such that the lines are offset from each other and are rendered side-by-side? A colleague says he can half rememb...
Succubus asked 17/9, 2018 at 5:45

0

When visualizing clusters with Mapbox's GL JS, how can I show clusters as circles which size/colours are proportional to the average of clustered points' property 'Rev', instead of proportional to ...
Rento asked 20/8, 2018 at 19:29

1

Solved

I'm reading a GeoJSON file and importing the polygons (and other stuff) into mapbox-gl draw using draw.set(geoJSON). How do I color individual polygons by an attribute in the properties of a featur...
Koester asked 12/7, 2018 at 10:23

1

I am working on trying to create a basic, grid-based, but performant weather-arrow visualization system. EDIT 2: Up-to-date version here: ( Mapbox Tracker ) of the system using the workflow which ...
Tollefson asked 8/7, 2016 at 1:13

0

I want to create user generated maps and paths and export them to video. On this page, https://uber.github.io/kepler.gl/#/demo/ukcommute, I see that they export to a photo. Is it possible to creat...
Feudal asked 19/6, 2018 at 12:21

2

It is possible to change if a map is interactive or not after creating a map? In the mapbox-gl-js documentation it is only possible to flag the map as interactive or non interactive when creating ...
Arrhythmia asked 4/8, 2016 at 12:57

4

Is there a way to use Mapbox GL (asking about both JS and native) in an offline setting? With MBTiles, you could use either the MBTiles file or extract the raster images. I'm wondering if there's a...
Transpacific asked 4/2, 2015 at 20:32

2

Solved

I have a marker in the map. I want to change its state when it is clicked and change it back when other place on the map is clicked. The problem is that map.on("click", console.log) is also fired ...
Refresher asked 25/7, 2017 at 8:43

1

Working on mapboxgl with ionic3, angular4 and cordova. I have build .apk and .ipa files. I installed .apk file in my android device it works as expected (ie mapbox tiles, my icons (I have added s...
Ash asked 16/8, 2017 at 10:29

1

Solved

I am redrawing layers on style.load event and removing the layers map.on('style.load', function() { loadByBounds(tempBounds) }); function loadByBounds(b) { if (map.getLayer("cluster-count")...
Nehru asked 13/8, 2017 at 18:59

1

I want to show the marker as well as the number of points available in a particular latitude and longitude. I expect something Similar as above. But i have added another 2 layers to show differ...
Elisavetpol asked 10/7, 2017 at 4:4

1

Solved

I am trying to change the text color in the mapbox cluster map (https://www.mapbox.com/mapbox-gl-js/example/cluster/), but I can't figure out how. Here is the relevant code piece: map.addLayer({ ...
Em asked 26/6, 2017 at 22:42

2

There is some way to draw line inside Mapbox GL? For example, i need to draw some lines (straight or curve) that connect my markers. With Mapbox i can use Arc.js but i don't know if there already e...
Blond asked 29/6, 2016 at 18:52

1

Solved

I'm trying to selectively remove a source in mapbox gl js, I'm using map.removeSource('<SOURCE_ID>') but nothing happens. The layers still remain on the map. I've created an example in Codepe...
Guy asked 27/2, 2017 at 5:24

1

The examples for highlighting polygons in mapbox gl use a second layer and a filter function. Is it not possible to change the color of a single feature/polygon in mapbox gl js, drawn from geojson ...
Rocca asked 16/2, 2017 at 19:3

0

I'm working on a React/MapboxGL app and I'm having some issue with my marker leaving the bounds of designated map area whenever i move the map around. I feel there may be some other larger underlyi...
Ocker asked 20/1, 2017 at 18:50

1

I've got an error I'm trying to catch with MapboxGL that doesn't handle when a version of IE switches the webGL render modes from hardware to software. I've been pouring over documentation and cons...
Cosset asked 17/1, 2017 at 18:17

1

Solved

I would like to know if there is a way to query features that are not being displayed on a map. Both queryRenderedFeatures and querySourceFeatures only work when the features are being displayed ...
Cernuous asked 16/1, 2017 at 23:32

2

This question is for someone who understands the internals of MapBox GL JS. I'm using MapBox GL JS to render a geographic map of up to 40,000 polygons, each of which is colored based on the "owner...
Blackheart asked 3/11, 2016 at 15:12

1

Solved

I can't find the way to hide all opened marker popups or even check marker popup state.
Weingarten asked 28/11, 2016 at 17:15

© 2022 - 2024 — McMap. All rights reserved.