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'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...
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...
So, I know that we have Marker.togglePopup() in Mapbox GL Api. But Can we close all popups programmatically ?...
I'm trying to center a text label over a feature polygon in mapbox-gl-js.  Is this possible?  It looks like the only option related to the placement of a label is the "symbol-placement" layout property (https://www.mapbox.com/mapbox-gl-st...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.