maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   My own full screen google maps (https://talk.maemo.org/showthread.php?t=18816)

rscasas 2008-04-07 10:16

My own full screen google maps
 
4 Attachment(s)
I have done my own google map page. http://gmaps.zxq.net/
Fixed for n800 full screen. And enable to drag an area (zoom box)
I have no programming idea, so I suppose anyone can improve it.

sleepkyng 2008-04-07 12:31

Re: My own full screen google maps
 
awesome

thanks for that!

gazcart 2008-04-07 16:39

Re: My own full screen google maps
 
Thats great, I do not want to put you off trying but have you checked out : -

www.flashearth.com

rscasas 2008-04-07 19:38

Re: My own full screen google maps
 
It's OK. but only satellite ?, no maps?
I'd like to add a search box in the code,like this url. But it doesn't work properly in the n800.

gazcart 2008-04-07 21:38

Re: My own full screen google maps
 
That would be great, or a searchbox as a desktop widget which the takes you to your page and the search result;)

flashearth does have microsoft VE (lables) for roads/street names.

rscasas 2008-04-10 10:29

Re: My own full screen google maps
 
1 Attachment(s)
Well, I have done another map (my country :D) with Local Search box ( search inside the map, then center and zoom).
http://gmaps.zxq.net/spain.html
It's very easy to change the code ;for another country. Only change Latitude-Longitude: map.setCenter(new GLatLng(40.50,-3.00), 6)
And you can use the web desktop applet to have direct access;).

microsoft VE (labels) for roads/street names, in Spain is no very god:(

linux_author 2008-04-10 11:47

Re: My own full screen google maps
 
map.setCenter(new GLatLng(27.86,-82.70), 11);

does it for me... i like to think global, but live local...

thanks for this idea...

(now if we could figure out how to grab all hybrid data for a specific zoom range for a specific area, we'd have a great off-line resource for our 16GB SDHC cards)

:-)

YoDude 2008-04-10 15:05

Re: My own full screen google maps
 
Quote:

Originally Posted by linux_author (Post 167878)
map.setCenter(new GLatLng(27.86,-82.70), 11);

does it for me... i like to think global, but live local...

thanks for this idea...

(now if we could figure out how to grab all hybrid data for a specific zoom range for a specific area, we'd have a great off-line resource for our 16GB SDHC cards)

:-)


You can also add:

Quote:

map.addOverlay(new GTrafficOverlay());
...in the appropriate place to have traffic info overlaid.

// ===== Setup The Maps =====

Quote:

// Display the main map, with some controls and set the initial location
var map = new GMap2(document.getElementById("map"));
map.addOverlay(new GTrafficOverlay());
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(40.04,-75.30), 10);
map.setMapType(G_NORMAL_MAP_TYPE);
map.addControl(new GZoomControl());
Ya can't get more local than that. :)

Also notice:

Quote:

map.setMapType(G_NORMAL_MAP_TYPE);

rock 2008-04-10 20:48

Re: My own full screen google maps
 
This is wonderful.
I prefer to use:
map.setMapType(G_MAP_TYPE);
However, since I'm not a programmer nor versed in html I don't know where to place the instructions for the traffic info. Where exactly do you place them?
Again, this is great and thank you very much!

cashless 2008-04-10 21:39

Re: My own full screen google maps
 
Quote:

Originally Posted by rock (Post 168100)
This is wonderful.
I prefer to use:
map.setMapType(G_MAP_TYPE);
However, since I'm not a programmer nor versed in html I don't know where to place the instructions for the traffic info. Where exactly do you place them?
Again, this is great and thank you very much!

Windows ('m assuming):

Save gzoom.js file to desktop > right click > edit

Mac:

Open with BBedit

Linux:

ask someone else. :D


All times are GMT. The time now is 05:40.

vBulletin® Version 3.8.8