Getting coodinates of a location by user tagging place in map

Ali Raisi

I'm using Mapbox GLJS with node.js for geolocating. But when a user adds a place Mapbox doesn't get that location right. So I'm looking for a feature of Mapbox, if it exists, that The user instead of typing the location in input, sees a map and tags that exact location in that minimap, and I get the coordinate of that location in the backend and do my stuff with that. Do you what I should do? Does Mapbox have that feature? It's like getting an Uber when you set the location of yourself and where you want to go. Thanks

riastrad

GL JS will include .lngLat info on pretty much any mouse events that fire. These example should give you a good idea of where to start:


⚠️ disclaimer: I currently work at Mapbox ⚠️

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related