Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A client-side framework for rendering web maps with implementations on native platforms utilizing OpenGL.
4
votes
Accepted
Deleting previous mapboxgl.Popup() existing on mapbox map
I finally opted for another slightly better approach:
const popup = new mapboxgl.Popup()
.setLngLat(middleCoordinates)
.setHTML(`Distance: ${measure}`);
const popups = document.getEle …
1
vote
Deleting previous mapboxgl.Popup() existing on mapbox map
After some testing I found a solution. First I declare a variable that contains the popup and if isn't open, then it's added to the map. Otherwise it's removed.
const popup = new mapboxgl.Popup()
…
3
votes
2
answers
3k
views
Deleting previous mapboxgl.Popup() existing on mapbox map
Before adding new mapboxgl.Popup(), I have to delete the existing ones if there are any. My code is:
const popup = new mapboxgl.Popup()
.setLngLat(middleCoordinates)
.setHTML(`Distance …