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 ?...
Polymer 3 uses import to load external Javascript. For example  import {GoogleCharts} from 'google-charts';   However, it seems for this to work, the external library should use exports.  I am trying to use mapbox-gl.js library. This library,...
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 underlying React rendering principals that I don'...
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 is described below   Usage Instructions: - Click on W...
I'm using in a mapbox gl layer in the layout-block the field text-offset.    layout: { // Working   'text-field': '{point_count_abbreviated}',   'text-size': ['step', ['get', 'point_count'], 18, 10,...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.