Hello, since it's pretty difficult to get GoogleMaps working with flat maps and with samp, I took some time and put djson together with google maps and a small php-config-file: dmap was born!
Links:
- @requires djson 1.3
- Demo
- Download (2,4MB, Source+Map+Icons)
Its published under MIT-License. Use it, love it, hack it, sell it!
The architecture of dmap is made that way, that you can display anything at that page.
Just add an items element with icon!, text!, name!, id! and pos/x and pos/y in your gamemode to dmap_feed.json and you'll have a marker on the website! If you need _any_ help extending dmap, post here!
How to get it running?
1. Add dmap_GameModeInit() in your GameModeInit and dmap_GameModeExit() in your GameModeExit.
2. Recompile the GameMode!
3. Create a folder at your website. Sign up for a Google-Api-Key for that website address.
4. Copy all files from htdocs to the new website folder you created.
5. Configure config.inc.php that way, that the api-key is yours, and the "data feed" config points directly to your scriptfiles folder.
6. Have fun!
- Draco