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)

brontide 2008-04-21 19:31

Re: My own full screen google maps
 
Quote:

Originally Posted by GeraldKo (Post 172727)
I love the tweak for Google Maps, but I have a conflict and I'm wondering how to get around it.

That was vexing me too, but I found a solution.

Code:

@-moz-document domain(maps.google.com)
// ,url-prefix("http://site/mashup")  // if you have a mash-up page that uses maps they go here
{
* { max-width: 10000 }
}

FYI, this is off the top of my head so if it's wrong just let me know and I'll upload the source from my personal laptop when I get home from work.

GeraldKo 2008-04-21 19:50

Re: My own full screen google maps
 
Quote:

Originally Posted by brontide (Post 172734)
That was vexing me too, but I found a solution.

Code:

@-moz-document domain(maps.google.com)
// ,url-prefix("http://site/mashup")  // if you have a mash-up page that uses maps they go here
{
* { max-width: 10000 }
}

FYI, this is off the top of my head so if it's wrong just let me know and I'll upload the source from my personal laptop when I get home from work.

Nope, that wasn't a fix (but thanks for trying so darn quickly!) I'll check back tonight or tomorrow morning. (I took what you typed literally, not substituting other characters for mashup or anything. In fact, I don't even know what you mean, but since I'm just concerned with the Google Maps, maybe I don't need to?)

brontide 2008-04-21 20:02

Re: My own full screen google maps
 
I'll post again tonight, but yes I did find a work around for the disappearing maps. The url-prefix are for sites that use google maps for mash-ups with their own data and should be safely ignored. The only thing that could be the fix is making it 10000px possibly.

But I'm currently using the full screen google maps css without a problem on my NIT.

briand 2008-04-21 21:00

Re: My own full screen google maps
 
Quote:

Originally Posted by GeraldKo
Is there a way to tell those other tweaks that I have in the userContent.css file to be inactive with respect to http://maps.google.com/* (and the other Google Maps websites)?

The first line in the userContent.css section for any given URL should specify the domain (or domains) that the section is interpreted for. Commands that follow it are within encapsulating braces { ... }

I had, for instance, a userContent.css file already for this forum, so at the end of the file, I pasted the lines in for the google maps tweak, creating one big(ger) file with both sets of tweaks included. There is one line, at the very top of the userContent.css file, that is also repeated at the very top of the example Google Maps tweak -- it is not necessary to also copy/repeat that line in the file.

rock 2008-04-21 21:42

Re: My own full screen google maps
 
Quote:

Originally Posted by sashabe (Post 172731)
2Rock: Thanks!) Now the only thing we need is to increase font size a bit without cropping entries.

Actually, I like using the Agenda view which does not crop the entries but only show the current and the following few days/items

GeraldKo 2008-04-21 22:06

Re: My own full screen google maps
 
Quote:

Originally Posted by briand (Post 172794)
The first line in the userContent.css section for any given URL should specify the domain (or domains) that the section is interpreted for. Commands that follow it are within encapsulating braces { ... }

I had, for instance, a userContent.css file already for this forum, so at the end of the file, I pasted the lines in for the google maps tweak, creating one big(ger) file with both sets of tweaks included. There is one line, at the very top of the userContent.css file, that is also repeated at the very top of the example Google Maps tweak -- it is not necessary to also copy/repeat that line in the file.

The problem is that the brontide tweaks that I like are not for just one site, but make changes I like universally (well, "universally" except for Google Maps). So I can't really specify a domain for those tweaks. What I want to do is specify which domains they do not apply to.

But I expect that I'll have that tonight after brontide kindly posts again.

(I had thought that if I could turn brontide's tweaks into a Greasemonkey script, it would be easy to toggle off when I went to Google Maps, or to anywhere else that they turn out to cause problems. But, unfortunately, making a Greasemonkey script is still a little over my head.)

sashabe 2008-04-21 22:26

Re: My own full screen google maps
 
Quote:

Originally Posted by YoDude (Post 172539)
Thanks... I know. Also some code increases load times very much. That is why I want to go with the minimum large map and leave the search to the tablets "Internet Search Bar"

Hey YoDude, here's a minimal version you have requested (only map type buttons included, no search, no zoom etc.):

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;
}

/*map navbuttons*/
.gmnoprint>div:first-child>div>img, .gmnoprint>div+div {display:none !important;}
#amtc_option_0, #amtc_option_1, #amtc_option_2, #amtc_option_3, #cbcontrol, #trafficcontrol {-moz-opacity:0.9; display:block !important}
#amtc_option_0:hover, #amtc_option_2:hover, #amtc_option_3:hover, #amtc_option_1:hover, #cbcontrol:hover, #trafficcontrol:hover {-moz-opacity:1;}
#map>div:first-child+div>* {display:none !important;}

/*search*/
.ipt, #showss, #srchex, #sl1, #sl2, #hidess, .vbtn {display:none !important}

}

To have just the naked map you need to replace this:
Code:

#amtc_option_0, #amtc_option_1, #amtc_option_2, #amtc_option_3, #cbcontrol, #trafficcontrol {-moz-opacity:0.9; display:block !important}
with this:
Code:

#amtc_option_0, #amtc_option_1, #amtc_option_2, #amtc_option_3, #cbcontrol, #trafficcontrol {-moz-opacity:0.9; display:none !important}

YoDude 2008-04-21 23:11

Re: My own full screen google maps
 
You're the best dude!

One small favor and then I promise I'll learn how to edit my own. :)

Can the GSmallMapControl be added and be G_ANCHOR_TOP_LEFT

My problem is not having firefox installed and a WinXP machine... I can't easily see what changes were made (switch back and forth) with out manually loading the file in my Tablet each time.

sashabe 2008-04-22 00:01

Re: My own full screen google maps
 
Quote:

Originally Posted by YoDude (Post 172853)
You're the best dude!

One small favor and then I promise I'll learn how to edit my own. :)

Can the GSmallMapControl be added and be G_ANCHOR_TOP_LEFT

My problem is not having firefox installed and a WinXP machine... I can't easily see what changes were made (switch back and forth) with out manually loading the file in my Tablet each time.

If I get it right, sorry( no can do because it needs html code to be edited. This code does only styling; we are able to move elements, hide them et cetera, but cannot add new. Maybe you should try embedding method which is used in the first post of this thread - it allows adding various controls from Google API.

YoDude 2008-04-22 01:09

Re: My own full screen google maps
 
Quote:

Originally Posted by sashabe (Post 172867)
If I get it right, sorry( no can do because it needs html code to be edited. This code does only styling; we are able to move elements, hide them et cetera, but cannot add new. Maybe you should try embedding method which is used in the first post of this thread - it allows adding various controls from Google API.

Yup, that is what I had been doing (my posts on first or second page of thread)... However I was intrigued by your use of the css file. In fact it was your post that got me even attempting to add and edit the thing... Thanks again!

So as I'm understanding this more. The css file can only work with what is provided by the page to begin with.

grog 2008-04-22 17:04

Re: My own full screen google maps
 
Quote:

Originally Posted by rock (Post 172662)
Hi Grog,
If you are looking to get a full screen display of your google calendar, have you tried using the url for the private address to your calendar?

I see what you mean. Nice. That's exactly what I'd like, but I use several different calendars to hold different categories of entries (personal, job, contract work, etc), and this only shows the one calendar selected, not all.

TX

brontide 2008-04-22 17:50

Re: My own full screen google maps
 
Quote:

Originally Posted by GeraldKo (Post 172747)
Nope, that wasn't a fix (but thanks for trying so darn quickly!) I'll check back tonight or tomorrow morning. (I took what you typed literally, not substituting other characters for mashup or anything. In fact, I don't even know what you mean, but since I'm just concerned with the Google Maps, maybe I don't need to?)

Do you still have the MicroB option "Fit to width" enabled since that alone breaks maps.google.com.

GeraldKo 2008-04-22 18:02

Re: My own full screen google maps
 
Quote:

Originally Posted by brontide (Post 173192)
Do you still have the MicroB option "Fit to width" enabled since that alone breaks maps.google.com.

No, I discovered that, too. But I've needed to turn off Fit-to-width and remove the extra tweaks in order to see a Google map displayed.

brontide 2008-04-22 18:58

Re: My own full screen google maps
 
Quote:

Originally Posted by GeraldKo (Post 173199)
No, I discovered that, too. But I've needed to turn off Fit-to-width and remove the extra tweaks in order to see a Google map displayed.

I'll zip up my chrome directory ( since I have all the sites broken out ) and post it somewhere for you to dissect.

rock 2008-04-23 01:19

Re: My own full screen google maps
 
[QUOTE=sashabe;172837]Hey YoDude, here's a minimal version you have requested (only map type buttons included, no search, no zoom etc.):

Hi Sashabe,
I agree you are the best. Any idea which function (search, zoom, map types) add the most code / load time?

Actually, I would prefer to have the zoom but not the map types, with the default display being 'map'. Search would be nice but if it saves load time may not.

YoDude 2008-04-23 03:36

Re: My own full screen google maps
 
[QUOTE=rock;173414]
Quote:

Originally Posted by sashabe (Post 172837)
Hey YoDude, here's a minimal version you have requested (only map type buttons included, no search, no zoom etc.):

Hi Sashabe,
I agree you are the best. Any idea which function (search, zoom, map types) add the most code / load time?

Actually, I would prefer to have the zoom but not the map types, with the default display being 'map'. Search would be nice but if it saves load time may not.

My new understanding of the CSS function is that load times do not change. All the information is loaded every time, the CSS file chooses what, where, and how to display it.

However, my understanding is based on what does or doesn't work in just this experience and not from a complete knowledge of the subject. :)

brontide 2008-04-23 03:47

Re: My own full screen google maps
 
I've uploaded my userContent.css mega pack in a thread in os2008 forum if anyone is interested, this fullscreen map stuff is in there.

qole 2008-04-23 06:59

Re: My own full screen google maps
 
Quote:

Originally Posted by sashabe (Post 171510)
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. ... 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.

Wow. That fixes my biggest complaint about Google Maps. Thanks very much.

qole 2008-04-23 16:20

Re: My own full screen google maps
 
Quote:

Originally Posted by brontide (Post 173457)
I've uploaded my userContent.css mega pack in a thread in os2008 forum if anyone is interested, this fullscreen map stuff is in there.

Hi, could you provide a link to the "thread in os2008 forum" please? It isn't just a simple case of typing "userContent.css mega pack" into the search box.

dkwatts 2008-04-23 17:13

Re: My own full screen google maps
 
Quote:

Originally Posted by qole (Post 173669)
Hi, could you provide a link to the "thread in os2008 forum" please? It isn't just a simple case of typing "userContent.css mega pack" into the search box.

"Find all threads started by brontide". Voila!

brontide 2008-04-24 14:36

Re: My own full screen google maps
 
/ms is dumb. Remove the // it breaks the css parsing.

bd7 2008-07-27 09:28

Re: My own full screen google maps
 
sorry, posted in wrong place.

qole 2008-12-22 21:14

Re: My own full screen google maps
 
Can someone post a full-screen gmaps userContent.css that works with the current gmaps site? Brontide's one doesn't work anymore.

corelle23 2009-02-23 20:26

Re: My own full screen google maps
 
Ok I am new to this can anybody help me and explain it to me like i am a 3 year old child all i have is Xterm lol and im lost after that?

Jaygo333 2009-02-25 11:52

Re: My own full screen google maps
 
I am enthralled by this map idea and would like to begin with the editting of th js.

Would I be able to just copy and paste most of the edits for the js from here into the original and receive the desired effect?

Jaygo333 2009-02-26 03:44

Re: My own full screen google maps
 
Is this project still alive?

YoDude 2009-02-26 11:20

Re: My own full screen google maps
 
Quote:

Originally Posted by qole (Post 251831)
Can someone post a full-screen gmaps userContent.css that works with the current gmaps site? Brontide's one doesn't work anymore.


Perhaps a better way would be to modify the display of Google mobile pages >> Clicky <<

The page displays the map displays @
Code:

class="vcent" alt="map" width="128" height="108"
...

If a CSS could change that to say 90% of the screen width so that panning controls were visible, we would be dancin' :)

Google mobile pages (www.google.com/m) load much faster and are mostly ad free to begin with.

qole 2009-02-26 18:05

Re: My own full screen google maps
 
There's a mall called "King Of Prussia Plaza"? In a town called "King of Prussia"? Weird. Looks like it's not too far from "Swedeland" and "Bull Tavern". (OOoh, and Mogees Station, and Leopard, too!)

bluechalk 2009-02-26 18:20

Re: My own full screen google maps
 
When I want full-screen maps, I first search in Google Maps for the location, and then click "Print". It brings up a fairly good approximation to a full screen map. Its not particularly fast, but it works.

sjgadsby 2009-02-26 18:28

Re: My own full screen google maps
 
Quote:

Originally Posted by qole (Post 267342)
There's a mall called "King Of Prussia Plaza"? In a town called "King of Prussia"?

Yes, a large mall. Also, Trey Anastasio made a pointed reference to the town each time Phish played in Hershey.

CDR William 2009-02-27 20:09

Re: My own full screen google maps
 
Quote:

Originally Posted by sjgadsby (Post 267349)
Yes, a large mall. Also, Trey Anastasio made a pointed reference to the town each time Phish played in Hershey.

Actually, there are two malls, The Court and The Plaza, right next to each other in King of Prussia.

sjgadsby 2009-02-28 02:07

Re: My own full screen google maps
 
Quote:

Originally Posted by CDR William (Post 267646)
Actually, there are two malls, The Court and The Plaza, right next to each other in King of Prussia.

Perhaps it's due to the distance I live from them, but I've never heard anyone actually distinguish them that way. When someone says they're going to King of Prussia, and it's assumed they mean the (collective) mall, not the town, and no one seems to be concerned as to exactly which building will be visited.

Everyone omits the last word from "Park City Center" too, but then, we also have our own, special pronunciation of "Lancaster", and the Weis Markets folks will have you believe their name has more to do with owls than color, so perhaps we're not to be trusted on anything language related.

YoDude 2009-02-28 13:57

Re: My own full screen google maps
 
Quote:

Originally Posted by sjgadsby (Post 267751)
Perhaps it's due to the distance I live from them, but I've never heard anyone actually distinguish them that way. When someone says they're going to King of Prussia, and it's assumed they mean the (collective) mall, not the town, and no one seems to be concerned as to exactly which building will be visited.

Everyone omits the last word from "Park City Center" too, but then, we also have our own, special pronunciation of "Lancaster", and the Weis Markets folks will have you believe their name has more to do with owls than color, so perhaps we're not to be trusted on anything language related.

Yup... me too.

In fact it is an annoyance of mine when I hear directions given by KOP merchants. The buildings are a short walk away from each other but both are huge and include acres of parking. You could park at the "Mall", walk inside, and still be quite a hike away from the store you want.


-The Prince of Pughtown :)


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

vBulletin® Version 3.8.8