TGRHavoc / live_map

A FiveM addon for live maps
https://docs.tgrhavoc.co.uk/livemap-resource/
62 stars 38 forks source link

Location on livemap is somewhat off #75

Closed DavleyNL closed 2 years ago

DavleyNL commented 2 years ago

Describe the bug The location of the players on the server seems somewhat off on the livemap. Further down I have added screenshots with my accurate locations in-game, with the location the livemap shows me at.

Screenshots In the following screenshots you can see what I mean. Left side is livemap, right side is game map. Locations for reference: Oil fields: image Vespucci Canals: image Corner of the airport: image On the G of Mount Gordo indicator: image

Possible Solution I assume this has something to do with the scaling/size/position of the livemap. If I am at the bottom left of the map, it shows me more top right on the livemap. If I am at the top right of the map, it shows me more bottom left on the livemap.

Additional context/Screenshots We run Livemap Version 4.1.8.

TGRHavoc commented 2 years ago

Hey, thanks for the detailed report! I'm going to pin this issue on Github so that others who are experiencing this issue know what's going on.

I'm aware of this issue, it came from porting the Interface over from Google Maps (when it became necessary to pay for maps) to Leaflet.js.

As this is a bug on the interface side of things, there's an open issue on the interface's repository which was to host a discussion about the issue and potential ways of fixing it.

I've not looked at fixing this issue because, at the time anyways, I managed to increase the accuracy a huge amount and probably got blinded by constantly looking at documentation.

I'll re-look into this at some point and see if I can finally squash this bug as I know accuracy is an important feature of LiveMap.

Going to close this issue as the discussion should take place https://github.com/TGRHavoc/live_map-interface/issues/34.