Benson
|
2008-04-11
, 00:45
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#11
|
|
2008-04-11
, 00:53
|
Posts: 76 |
Thanked: 6 times |
Joined on Apr 2007
|
#12
|
|
2008-04-11
, 21:58
|
Posts: 32 |
Thanked: 1 time |
Joined on Jan 2008
|
#13
|
|
2008-04-17
, 15:18
|
Posts: 76 |
Thanked: 6 times |
Joined on Apr 2007
|
#14
|
|
2008-04-17
, 17:04
|
Posts: 86 |
Thanked: 22 times |
Joined on Jan 2008
@ Moscow
|
#15
|
The Following User Says Thank You to sashabe For This Useful Post: | ||
|
2008-04-17
, 23:36
|
|
Posts: 2,869 |
Thanked: 1,784 times |
Joined on Feb 2007
@ Po' Bo'. PA
|
#16
|
Great work! BTW, there is a site which uses the same idea: http://finiteloop.org/~btaylor/maps/. It has a search box built-in, but lacks some of rscasas' script features. And customization capabilities of course
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml" style="height:100%">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Search Map -YoDude: LocalSearch Control</title>
<style type="text/css">
@import url("http://www.google.com/uds/css/gsearch.css");
@import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css");
}
</style>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAzr2EBOXUKnm_ jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA"
type="text/javascript"></script>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0" type="text/javascript"></script>
<script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
// Create and Center a Map
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(40.04,-75.30), 10);
map.addControl(new GLargeMapControl());
// bind a search control to the map, suppress result list
map.addControl(new google.maps.LocalSearch(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(5,5)));
}
}
GSearch.setOnLoadCallback(initialize);
</script>
</head>
<body onload="initialize()" onunload="GUnload()" onresize="onResize()" style="height:100%;margin:0">
<div id="map_canvas" style="width:100%; height:100%;"></div>
</body>
</html>
The Following User Says Thank You to YoDude For This Useful Post: | ||
|
2008-04-18
, 10:46
|
Posts: 41 |
Thanked: 2 times |
Joined on May 2007
|
#17
|
|
2008-04-18
, 12:46
|
Posts: 86 |
Thanked: 22 times |
Joined on Jan 2008
@ Moscow
|
#18
|
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("maps.google.com") { .helplinks { visibility:hidden !important; overflow:hidden !important; width:0px !important; height:0px !important; } #map { position:fixed !important; left:-10px !important; top:0px !important; width:100% !important; height:100% !important; } input[type="text"] { -moz-opacity:0.4; position:fixed; top:5px; left:76px; width:230px !important; } input[type="text"]:focus { -moz-opacity:0.9; } .ipt{ padding-bottom: 2px; border-bottom: 0px !important; margin-top:-70px; } #showss, #q_sub, #srchex {display:none} #sl_t {-moz-opacity:0.8;} #map>div:first-child+div>* {display:none !important;} }
|
2008-04-18
, 13:07
|
|
Posts: 2,869 |
Thanked: 1,784 times |
Joined on Feb 2007
@ Po' Bo'. PA
|
#19
|
Very nice, can some one tell me how to do a Chinese version of google map?
For reasons I don't want to get into, the Chinese version is avaiable at ditu.google.cn, not maps.google.com.
The map controls, tooltips, and copyrights have been translated for a subset of languages. To get the map to display the translation for a certain language, you can add "hl=XX" to your <script> tag, where XX is the ISO639 two-letter code for that language. For example, German has the code 'de,' so you would use: <script src="http://maps.google.com/maps?file=api&v=2&hl=de&key=abcdefg"> to get zoom controls that say "Verkleinern" instead of "Zoom out".
We currently have translations for Basque (eu), Catalan (ca), Danish (da), Dutch (nl), Finnish (fi), French (fr), Galician (gl), German (de), Greek (el), Italian (it), Japanese (ja), Norwegian (no), Norwegian Nynorsk (nn), Russian (ru), Spanish (es), Swedish (sv), and Thai (th).
|
2008-04-18
, 13:35
|
Posts: 76 |
Thanked: 6 times |
Joined on Apr 2007
|
#20
|