Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coordinates to Lat Long in Leaflet

I'm here because I'm trying to create a GTA V map with Leafletjs API. In deed, I've got my tiles that are ready. But the aim is to put markers on the map by using GTA V in-game coordinates. To achieve it, I need to convert the coordinates to LatLong but after many researches, I can't find a solution.

Example : enter image description here Thanks in advance.

like image 966
Templeton Peck Avatar asked Aug 05 '15 20:08

Templeton Peck


Video Answer


1 Answers

Your coordinates are coming from different map projections. The Leaflet ones are most probably standard WGS 84 (SRID 4326). GTA V coordinates are obviously based on a different projection.

Coordinates can be transformed from one projection to anothers. But you need to know, which projection your coordinates are coming from, to do the math. Here is an online converter provided with some common projections, and i tried your coordinates, but had no luck in coming close with these projections.

like image 118
Hinrich Avatar answered Sep 20 '22 05:09

Hinrich