Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A WebGL JavaScript interactive maps library that can render Mapbox Vector Tiles.
2
votes
Accepted
MapBox GL JS popups for the 0.18.0 version?
Mapbox don't currently publish docs for older GL JS versions (ticketed here https://github.com/mapbox/mapbox-gl-js/issues/2398)
But you can build and view docs for older versions locally with:
git …
2
votes
How to enlarge the marker on mouseover in mapbox gl js
At the moment there are two ways to do this.
Add a unique id property to each of your Features. Create a new hover layer with larger circle-radius and a filter initially to select none of the id's. …
1
vote
Not all tiles loading in view (web) with Mapbox?
You might be running into https://github.com/mapbox/mapbox-gl-js/issues/4587.
Try downgrading to Mapbox GL JS 0.34.0 until a fix for that issue is released.
2
votes
query features from a bounding box bigger than viewport mapbox gl js
As per the Mapbox GL JS API docs, queryRenderedFeatures and querySourcesFeatures only guarantee to query features within the current viewport.
If you need to query outside this you could:
Load the …
0
votes
Mapbox Feature icon-rotate as symbol
Although "feature-state" data expressions are not supported with layout properties, meaning you can't use feature states to set a per feature rotation, can can still use regular driven styling with ic …
0
votes
mapboxgl applying map.setFeatureState to a group of vector-tiles filtered features
querySourceFeatures only returns features loaded in the current map view, so when you zoom out, you'll have new features and not know about their IDs. You could watch for the moveend and sourcedata ev …
1
vote
Using a variable for map.setcenter in mapbox gl js
Your getURLParameter function is returning a String like "-84.83762741088867,43.179770125276974", but map.setCenter needs a LngLatLike ie. something like this.
var v1 = new mapboxgl.LngLat(-122.42067 …
1
vote
mapbox studio large shapefile dataset
You would upload it as a Mapbox Datasets if you want to be able to edit that data within your Mapbox account, if you don't need to edit it or your happy to edit it externally to Mapbox, go straight to …
2
votes
Accepted
MapBox get div element of Marker
You're saving the mapboxgl.Marker object so you can latter access this via the getElement method, eg:
deviceMarker.getElement()
See https://www.mapbox.com/mapbox-gl-js/api/#marker#getelement
1
vote
how to pass coordinates to a variable from a geojson source in mapbox gl
You can use map.querySourceFeatures, to query the source features within the current viewport.
As noted in the documentation:
Because features come from tiled vector data or GeoJSON data that is
…
2
votes
Location is not accurate when replicating an existing feature and zooming in
When you first called queryRenderedFeatures you're getting the coordinates generalised to the zoom level your map was initially at, which as you can see is a bit off the source data coordinates.
You' …
2
votes
Accepted
Adding an ArcGIS map service to Mapbox GL JS
In your addLayer function, the tiles option must be the URL to the raster tiles. https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28 is the URL to the HTML page describing the ERS …
16
votes
Accepted
Removing events map.on("click"...) from mapbox gl?
First split out the click function so it can be referenced on it's own:
function onClick(e) {...}
Then register your on click with:
map.on('click', 'clusters', onClick);
Then just before you rem …
1
vote
Mapbox GL geocoder autocomplete
https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-outside-the-map/
<div id='geocoder' class='geocoder'></div>
var geocoder = new MapboxGeocoder({
accessToken: mapboxgl.accessToken
} …
1
vote
Accepted
How to load geojson features outside view with Mapbox GL?
You can fetch the GeoJSON first and then pass the GeoJSON object instead of URL as the geojson source's data.