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'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...
So, I know that we have Marker.togglePopup() in Mapbox GL Api. But Can we close all popups programmatically ?...
I am very new to mapbox and leaflet. I am trying to extend the basic mapbox example here to let a user click on a small thumbnail satellite image that will take them to the satellite view. I have been through the examples of both mapbox and leaflet b...
I need to have different custom images for each points in the map using mapbox-gl-js, But I don't find a way to give custom icon for each feature in a feature collection  incidentMarkers = { "type": "FeatureCollection" "featur...
I'm currently using Mapbox in a React app. To create a custom marker you have to do something like this:  var el = document.createElement('div'); el.className = 'marker';  new mapboxgl.Marker(el) .setLngLat(marker.geometry.coordin...
Is it possible to utilize the built-in properties attribute of a GeoJSON data source to automatically style a Mapbox GL map without having to pre-specify a style?   I have a use case where I dynamically load in GeoJSON LineString data that needs to b...
Suppose i have point like 45.6987 and 34.34433 now that point is shown as circle i want to display that point like square or box....
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.