There are numerous online resources which provide JavaScript APIs to access their services. To be more clear, I will base my question on the example of MapBox, but this applies well to many other services in various domains.  When someone wants to us...
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...
I am working on leaflet for the very first time and facing the issue with drawing circles and editing (changing location of circle).  The problems I am facing are :-   Editing (moving) circle from one location to another changes its radius. Note: Pls...
I just created my personal map style with Mapbox Studio and i'm try to use it with Mapbox.js. (NOT Mapbox Gl js!!) As written in the docu     You can load and display styles from the API using Mapbox GL JS or the Mapbox Mobile SDKs or you can req...
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...
Currently, I have my control set so users can toggle each layer they want to view. But, I am unsure how to build a "all layers off" and a "all layers on" function into my UI. I have over 70+ layers and it can get messy, hence why the...
How can i get current zoom of map in react mapbox gl?   Package: https://github.com/alex3165/react-mapbox-gl/tree/0df46b1dcf194cdf140638f653221d8a82f0b195  I have tried on example from "How to start" to use getZoom method on Mapbut it's n...
i am trying to implement Mapbox api into my web application however i have reached a snag. My objective is to grab the longitudes and latitudes from my array and insert them into the coordinates. I have tried using a loop that loops through but it do...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.