I have two point i get it from database and i want to render a line From start point to end point   what I got is the Straight line in two points without consideration the routes and directions on the maps  So how can i handle it to take a look for r...
im trying to creater a marker with popup on click, so far so good, the problem is when im trying to set the content of the popup to be my custom tag,  for example  let popup = new mapboxgl.Popup()     .setHTML("<custom-tag></custom-tag&g...
i try to style my mapbox layer using case expression:  const max_expr = ['max', ['get', 'POLY_COLOUR_CODE_D'], ['get', 'POLY_COLOUR_CODE_BW'], ['get', 'POLY_COLOUR_CODE_A']];  'paint': {...
I am running a map of the location of a few facilities with their name and coordinate data. I want the geocoder to be able to search for the name of the facility.    Mapbox has a great example of this, but their example shows a use case where the dat...
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...
I'm using Mapbox GL JS, and I've found a private method that might be useful in solving a problem. It's _requestRenderFrame in map.js, and looks like this:  /**  * Request that the given callback be executed during the next render  * fram...
Following on from this question I asked yesterday...  I am adding MapBox Markers to an array like so:  var el = document.createElement('div' + index); el.className = 'marker'; deviceMarkers.push(new mapboxgl.Marker(el, { offset: [-50...
I'm trying to optimize a Mapbox view for long-distance hiking trails, like the Appalachian Trail or the Pacific Crest Trail. Here's an example, which I've oriented by hand, showing the Senda Pirenáica in Spain:    The area of interest, t...
I am rewriting a web application from Mapbox.js to Mapbox GL js. Using the standard 'mapbox://styles/mapbox/streets-v8' style, where can I find a list of all working marker icons?  Here is my code:  m.map.addSource("markers", {...
So, I know that we have Marker.togglePopup() in Mapbox GL Api. But Can we close all popups programmatically ?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.