mercredi 2 avril 2014

[Tool/Web/Other] SanMap - San Andreas in Google Maps

Download - Show Example - Source Code



What is SanMap?

SanMap is a tool to combine the Google Maps JS(v3) API and GTA: San Andreas. SanMap contains some simple tools to convert map images into tiles, some javascript code to let Google Maps use these tiles and some code to convert San Andreas coordinates to coordinates you can use within this system (SanMap.getLatLngFromPos(x,y)). Here is a simple example!







How to use it?

1) Render map tiles using binaries/SanMap.exe (e.g. 'SanMap -i INPUT-IMAGE -o OUTPUT-DIRECTORY -z 5', use 'SanMap --help' for more help)

2) Upload them and configure SanMap to use these tiles (See index.html)

3) Now you can use SanMap.map (as shown in index.html) with the Google API to add markers and all sorts of stuff.



Current release: v1.0



Plan(s) for future releases

- A method to convert gmaps LatLng points to SA coordinates.

- Improve the example code a bit.



Download - Show Example - Source Code




Aucun commentaire:

Enregistrer un commentaire