I have created a stackoverflow snippet inside an answer, but get an error if I am using map.queryRenderedFeatures(). Outside the snippet in the index.html all works fine. Could it be a CORS problem ? I got no error message except an undefined return....
So, I know that we have Marker.togglePopup() in Mapbox GL Api. But Can we close all popups programmatically ?...
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 the point-count property, as my code...
I use Mapbox GL to display a map, which can be rotated and zoomed.  I need to add markers, but for speed I only want to add markers that are within the bounding box of the current view, and redraw if the view changes. (The bounding box is NOT axis-al...
Am trying to use fitBounds to make all my markers visible with a proper zoom level.   getBounds(){    return [[12.49637,41.90278],[12.319398,45.441906],[13.055054,47.809532],[16.373724,48.208244]] }  <Map    style="mapbox://styles/mapbox/stree...
I am modifying bellow script to see how can i move an Icon by following Array of Lat/lon  , but it always say error such , but I am providing as an Array  Can any one please help me to understand what i am doing wrong ?  I am revering this example  h...
I'm trying to get a specific existing layer, in order to apply some of its paint/layout properties on layer I'm creating.  Currently, I achieve it using:  let remoteLayer: mapboxgl.Layer = this.map.getStyle()...
I uploaded an svg and can view it in the mapbox studio map and can display the tileset with stock icons using mapbox gl. However, when I try to use my icon the points do not draw. The background still draws and in the case of the code below the point...
I have a map that's using mapboxgl-js to hide or show map markers based on some criteria.   Hiding the markers is working as expected, but when I want the markers to show again they flash for some milliseconds then disappear again while the map h...
I have tried to develop a webmapping interface which will enable me to select the the base map style which will also add the call center employee population to the map. It will be in the form of graduate symbols, where larger the circle means more no...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.