Reply
Thread Tools
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#11
Linux: your favorite of joe, vi, vim, emacs, pine, gedit, kate, or quite a few others. But I shall hate you with a great hating if you use any but the one true editor, which is naturally first in my list.
 
Posts: 76 | Thanked: 6 times | Joined on Apr 2007
#12
Could it be possible to activate the google street view somehow?, that would be great!!!.
 
Posts: 32 | Thanked: 1 time | Joined on Jan 2008
#13
Originally Posted by cashless View Post
Windows ('m assuming):

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

Mac:

Open with BBedit

Linux:

ask someone else.
I'm confused. why do I need the gzoom.js file? I currently installed/copied the html file, which I edited to include the coordinates for my location
 
Posts: 76 | Thanked: 6 times | Joined on Apr 2007
#14
The street panoramic view icon is missing, can you activate it?, so we can use this feature.
 
Posts: 86 | Thanked: 22 times | Joined on Jan 2008 @ Moscow
#15
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
 

The Following User Says Thank You to sashabe For This Useful Post:
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#16
Originally Posted by sashabe View Post
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
I Don't think that search box is right...

Here's one with a search box that works. Copy the quoted text to a note file. Save it as "whatever.HTM" instead of text. Put it on your tablet and go to town.

The code can be customized as described earlier in the thread...

<!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&amp;v=2&amp;key=ABQIAAAAzr2EBOXUKnm_ jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA"
type="text/javascript"></script>
<script src="http://www.google.com/uds/api?file=uds.js&amp;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>


On the N800 you must tap in the box with your stylus, summon the finger keyboard manually, type your search term, minimize the keyboard, then hit search with the stylus... A bit kludgey but it works work, and hey, what do want for nothin'?

Code shamelessly ganked from Google for non-profit use.

Edit: Cleaned it up and added dynamic map size

Last edited by YoDude; 2008-04-18 at 03:47.
 

The Following User Says Thank You to YoDude For This Useful Post:
Posts: 41 | Thanked: 2 times | Joined on May 2007
#17
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.
 
Posts: 86 | Thanked: 22 times | Joined on Jan 2008 @ Moscow
#18
I made a special version of Google Maps page for N810 from this user style. It requires that you put some code into userContent.css (or see below), but as it is genuine Maps page (maps.google.com), not embedded content, it's possible to use Street View feature, which is unaccessible from embedded maps. Here's the code:
Code:
@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;}
}
After pasting the code you just go to http://maps.google.com and see the result. Here's how it looks:






And yes, you can set Street View window to fullscreen mode)
UPD:
Code was updated (potential search field problems should be solved), added bigger buttons version, more adapted for fingers (download here). And it may be better to use the import method to apply this code: place gmaps.css in the same folder where userContent.css is, usually ~/.mozilla/microb/chrome/, and insert at the beginning of userContent.css "@import url('gmaps.css');" without quotes.

Last edited by sashabe; 2008-04-20 at 11:24.
 

The Following 5 Users Say Thank You to sashabe For This Useful Post:
YoDude's Avatar
Posts: 2,869 | Thanked: 1,784 times | Joined on Feb 2007 @ Po' Bo'. PA
#19
Originally Posted by whatever7 View Post
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.
Apparently not from Google at this time...

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).
 
Posts: 76 | Thanked: 6 times | Joined on Apr 2007
#20
Sashabe could you tell me what is the userContent.css file, and where is rhe mozilla folder you mentioned before. cause when i go to home/user there is no such folder.

Thanks
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:32.