Google map with custom picture (localmap for ex.) ?

General discussion and socializing.

Google map with custom picture (localmap for ex.) ?

Postby Teme » Sat May 29, 2010 2:08 pm

Is there way to put picture (localmap or regional map, any pic) in google map maker? I havent found any ways, little like havenmap.tk was (or just like it). Maplib.net is one, but i dont like it because markers suck and stuff.
Plaah ~Image
User avatar
Teme
 
Posts: 97
Joined: Mon Apr 19, 2010 5:21 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby DatOneGuy » Sat May 29, 2010 7:12 pm

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .Hi. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
User avatar
DatOneGuy
 
Posts: 5553
Joined: Sun Apr 18, 2010 7:50 am
Location: I'm in Miami, trick.

Re: Google map with custom picture (localmap for ex.) ?

Postby L0ckAndL0ad » Sat May 29, 2010 8:08 pm

Imagecutter might be the best (and the simpliest) solution.

You open your map image in it, and it cuts it into lots of smaller images (tiles). The program will output html file and folder with those tiles and you can go publish it in web.

f.e.: you have some map.jpg
Launch the program(GImageCutter.bat), open your map.jpg in it. The program will automatically set max zoom level, so you'll need just to push "Create" button.
Then, you'll get "map.html" file and "map-tiles" folder. Open map.html with notepad and find following
Code: Select all
 <script src="http://maps.google.com/maps?file=api&v=2.x&key=PUTAPIKEYHERE"

Then go here to get your own google maps api key(you'll need to type there your site adress where you'll be using this key(and map, of course).
And then replace "PUTAPIKEYHERE" with your own google map api key. Save&close the map.html after replacement.
Now you can upload map.html and map-tiles folder to your web server and start using html://www.yoursite.com/map.html link with your villagers(or whoever you want).

If you'll need to update your map you'll need to do the whole thing again. And, yes, your map will be big, and there'll be about ~1350 separate tile-files, so i suggest you to make some zip archive with map-tiles folder in it, upload and then unzip it on server side (i'm doing it with cPanel hosting managment page), it's the quick way to upload lots of small images.
Eventually, you'll come up with something like this.

This is the way how i'm doing our local map for all of our villagers and trusted neighbours/friends.

But i came up with some problem - i dunno how to add/manage some dynamic markers there. I sent PM to the creator of havenmap.tk, but he still didn't answered me back. I think we need some custom php script to make it work, but i dunno php and google maps api much enough to create one.

That's all from what i know.
Deculture!
Image
Zero | Fairy | Frontier | Area 88
User avatar
L0ckAndL0ad
 
Posts: 95
Joined: Thu Apr 29, 2010 11:06 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby Teme » Sun May 30, 2010 4:41 pm

L0ckAndL0ad wrote:-snip of the best reply i ever seen-

Have you seen this? http://econym.org.uk/gmap/ ,maybe theres something that could help you with markers.
Plaah ~Image
User avatar
Teme
 
Posts: 97
Joined: Mon Apr 19, 2010 5:21 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby L0ckAndL0ad » Sun May 30, 2010 5:10 pm

Teme wrote:Have you seen this? http://econym.org.uk/gmap/ ,maybe theres something that could help you with markers.

Yes, I've seen it already.
First of all, I'm confused with "KML files and GeoRSS files" mentioned there.
Second. As I understand, there's a need to write brand new script on my own anyway. I don't want to do it myself right now. I'd prefer some copy-paste scripting XD
Maybe, someday I will write it (if I won't find anything to copy-paste). And I hope it won't be too late and I'll be still playing the game.
Deculture!
Image
Zero | Fairy | Frontier | Area 88
User avatar
L0ckAndL0ad
 
Posts: 95
Joined: Thu Apr 29, 2010 11:06 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby Teme » Sun May 30, 2010 6:46 pm

Plaah ~Image
User avatar
Teme
 
Posts: 97
Joined: Mon Apr 19, 2010 5:21 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby L0ckAndL0ad » Sun May 30, 2010 8:05 pm


Look at the examples. Every marker is hardcoded into the page. I mean, coordinates. In our case, we need to place markers with mouse, not by writing their coordinates in map.html. That's why I mentioned custom php scripting. And what will happen to coordinates after we change the image size? In case of GImageCutter there's no geo coordinates (static) you can rely on, only pixel coordinates, as far as i understand. So.. we've come to custom sql-db storage and scripting again.
Deculture!
Image
Zero | Fairy | Frontier | Area 88
User avatar
L0ckAndL0ad
 
Posts: 95
Joined: Thu Apr 29, 2010 11:06 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby Teme » Sun May 30, 2010 8:14 pm

L0ckAndL0ad wrote:

Look at the examples. Every marker is hardcoded into the page. I mean, coordinates. In our case, we need to place markers with mouse, not by writing their coordinates in map.html. That's why I mentioned custom php scripting. And what will happen to coordinates after we change the image size? In case of GImageCutter there's no geo coordinates (static) you can rely on, only pixel coordinates, as far as i understand. So.. we've come to custom sql-db storage and scripting again.


Aaah, post when you have results ^^


edit: http://www.oracle.com/technology/pub/ar ... emaps.html hmm? ;D
Plaah ~Image
User avatar
Teme
 
Posts: 97
Joined: Mon Apr 19, 2010 5:21 pm

Re: Google map with custom picture (localmap for ex.) ?

Postby DatOneGuy » Mon May 31, 2010 4:26 am

Out of curiosity would either of you happen to have a decent quality map of the whole world? I had an old batc of the files from havenmap.tk but the quality is pretty... less than pleasant.

I know PHP and found a PHP/MySQL version that works with XML. If I get it working I'll let you guys know. Trying it out via my localmap until I can get a decent version of tihs.

My current map is 6900x16196 pixels though and it's just about 2~3 SGs spanned, tile count is 5461 (Even when selecting Low Quality), should I lower it or leave it as is? Not much experience with the CASA programs so I get hung up there.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .Hi. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
User avatar
DatOneGuy
 
Posts: 5553
Joined: Sun Apr 18, 2010 7:50 am
Location: I'm in Miami, trick.

Re: Google map with custom picture (localmap for ex.) ?

Postby L0ckAndL0ad » Mon May 31, 2010 6:55 am

DatOneGuy wrote:Out of curiosity would either of you happen to have a decent quality map of the whole world?

Nope, sorry.

DatOneGuy wrote:I know PHP and found a PHP/MySQL version that works with XML. If I get it working I'll let you guys know. Trying it out via my localmap until I can get a decent version of tihs.

That would be really, REALLY sweet of you.

DatOneGuy wrote:My current map is 6900x16196 pixels though and it's just about 2~3 SGs spanned, tile count is 5461 (Even when selecting Low Quality), should I lower it or leave it as is? Not much experience with the CASA programs so I get hung up there.

My current map is about 6000x7000 px right now (and we don't use any of custom mapping clients), and I'm doing it like this: i have original (1:1 to ingame) map composed from many localmaps, so each local map = 500x500 px. I save this original map with photoshop options - "Quality: 8, Progressive, Scans: 5". It's about 10mb file. I use it for GImageCutter. Also, i'm making smaller version of this map, saving it with 60% quality and 50% scale. It works as offline map for some of our villagers. And everyone's happy (until map will grow more and more and i will separate it by ~10k x 10k px pieces each.
Deculture!
Image
Zero | Fairy | Frontier | Area 88
User avatar
L0ckAndL0ad
 
Posts: 95
Joined: Thu Apr 29, 2010 11:06 pm

Next

Return to The Inn of Brodgar

Who is online

Users browsing this forum: Claude [Bot] and 5 guests