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....
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 console logging pretty much everything I...
The code presented here. Gives us a mapbox, which I also use in my code. Here is the actual code from the link:  <!DOCTYPE html> <html> <head> <meta charset='utf-8' /> <title>Display a map</title> <meta...
I'm using MapBox GL JS to create a map with a custom marker:  var marker = new mapboxgl.Marker(container)     .setLngLat([         datacenters[country][city].coordinates.lng,         datacenters[country][city].coordinates.lat     ])     .addTo(ma...
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 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 upon clicking the marker.  I want to see only...
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,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.