|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2006
Posts: 805
|
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.5.2 - Download: 2,4MB (Source+Map+Icons) - Demo: EveryStuff, GTA:Tournament - HowTo: Add Shop/Extra 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! My scriptfiles/dmap_feed.json is not created!? If you properly added dmap to your gamemode, launching it, should result in the following text: Code:
<dmap> DMap 0.3 // (c) 2008 DracoBlue // http://www.dracoblue.net <dmap> Loading ... <dmap> .. done! - Draco Last edited by DracoBlue; 23/07/2010 at 09:01 PM. |
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2008
Posts: 403
|
wooooooooooooo first post and nice
|
|
|
|
|
|
#3 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2006
Posts: 805
|
Quote:
See the line where it sets items/%d/text and add whatever text you want to have there . Currently it adds only Health: %f, this is why you see just Health: 90 for example.- Draco |
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2007
Posts: 1,754
|
Three letters: WOW
|
|
|
|
|
|
#5 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2007
Posts: 457
|
nice, but whats the difference to delux live maps?
|
|
|
|
|
|
#6 | |
|
Global Moderator
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Posts: 182
|
Quote:
Btw nice work draco! |
|
|
|
|
|
|
#7 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2007
Posts: 457
|
Quote:
![]() nice work btw - in which cycles is the map refreshed? |
|
|
|
|
|
|
#8 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2006
Posts: 805
|
Actually this is all you need to run that script on any server of your choice completely independent from dracoblue.net
.Data is saved as json (thatswhy using djson), so it's faster (less bandwith) and of course different to xml like in the delux one. Actually I made dmap with the purpose to create a "display" for information: Players/Shops/Points, just be adding/removing items from the big items-array in the .json file. All updating as soon as the .json file updates! No changes to the .html-side/map-side needed! - Draco |
|
|
|
|
|
#9 | |||
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2006
Posts: 805
|
[edit]*cough* sorry for doublepost[/edit]
Quote:
.Btw. you are not using a flat map on google, so your calculation looks a bit confusing maybe inaccurate . Check that flat map projection called EuclideanProjection from: http://econym.googlepages.com/example_custommapflat.htm .Quote:
- Draco |
|||
|
|
|
|
|
#10 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2007
Posts: 457
|
yeah thanks - i noticed this afterwards but now it is working like this, so i wont change it just to have some more proper coords in the source
![]() and i can ensure you that the positions are accurate on my map |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FilterScript] [FS] nCars (DYNAMIC VEHICLES - DJSON VERSION) | Norn | Filter Scripts and Includes | 15 | 16/08/2010 10:21 PM |
| [FilterScript] [FS] ShopSystem - Fully menu-based Vehicle and Ammunation-style Weapons Shop | Darkimmortal | Filter Scripts and Includes | 51 | 17/06/2010 06:08 PM |
| Player Statistics on Website | Headshot1108 | Scripting Discussion | 10 | 22/05/2010 05:52 PM |
| Player Statistic on the website | CashisSimko | Scripting Discussion | 0 | 28/12/2009 10:20 PM |
| [HOW TO] Get Rotation based on Player Position? (To: SetObjectLookAtPlayer) | jwload | Scripting Discussion | 1 | 29/12/2008 12:37 PM |