Always Show Transit Lines

173 views
Skip to first unread message

Kasper

unread,
Nov 7, 2011, 3:07:35 AM11/7/11
to google-map...@googlegroups.com
Is it possible to always show the railroad elements when using the google maps api?
Now they only show at zoom level 11.

I currently have this as my options for the transit lines, but I couldn't find an option to make them always visible:

{featureType: "transit.line",stylers: [{ visibility: "on" },{ lightness: -65 },{ saturation: 100 },{ gamma: 1.8 },{ hue: "#FF7B00" }

So, is there an option to do this?

Kasper

unread,
Nov 29, 2011, 6:01:48 PM11/29/11
to google-map...@googlegroups.com
Anyone?!?

Chris Broadfoot (Google Employee)

unread,
Nov 29, 2011, 9:18:37 PM11/29/11
to Google Maps JavaScript API v3
Hi Kasper,
Unfortunately there's no facility to force display of a feature that's
otherwise hidden at a particular zoom level.
Chris

Marcelo

unread,
Nov 29, 2011, 9:26:58 PM11/29/11
to Google Maps JavaScript API v3
On Nov 29, 7:18 pm, "Chris Broadfoot (Google Employee)"

That drove me nuts when planning my trip to Alaska. You need to zoom
in a lot in order to see roads in Northern BC and the Yukon, including
the Alaska Highway, which I would have thought that it was a main
road. :-)


--
Marcelo - http://maps.forum.nu
--

Kasper

unread,
Nov 30, 2011, 4:43:12 AM11/30/11
to google-map...@googlegroups.com
Ah damnit... Not even with 3rd party plugins or something?
Wouldnt it be possible to somehow do a reverse zoom, with lets say, jQuery?
So that the zoom level is 11, but I see it as zoom level 9 (basically just downscaling of the google maps images)
Would that be possible?

Kasper

unread,
Nov 30, 2011, 4:43:30 AM11/30/11
to google-map...@googlegroups.com
And you never found a solution?

Rossko

unread,
Nov 30, 2011, 5:12:15 AM11/30/11
to Google Maps JavaScript API v3
Aren't you the chap with the train tracking thingy? You already have
your rail network polyline data, how about creating your own overlay
that is only visible at certain zoom

Kasper

unread,
Nov 30, 2011, 6:06:29 AM11/30/11
to Google Maps JavaScript API v3
Haha, yeah, That's me alright.
Well, I haven't made polylines of all the transit lines in The
Netherlands, as this is just a concept version.
It would then be possible to do what you said indeed.
Wouldnt it be possible to somehow use the transit lines as an overlay?
Because it is possible to style them seperately...

Marcelo

unread,
Nov 30, 2011, 9:04:44 AM11/30/11
to Google Maps JavaScript API v3
On Nov 30, 2:43 am, Kasper <kaspervandel...@gmail.com> wrote:

> And you never found a solution?

I assume that question is for me? :-)
I wasn't building an application where I ran into this issue. I was
just using maps.google.com to plan my trip, but either way, there is
nothing you can do if the road is not included in the basic tiles. You
can remove or hide features, but you cannot add things that are not
there.
As Rossko said, I could have created my own overlay from the TIGER
database, but it seemed overkill just for planning a trip. :-)

I have reported this to maps.google.com though. I think it's an error
in the tile creation, for example here:
http://maps.google.com/maps?ll=58.543895,-123.780212&spn=0.948857,2.90863&t=m&z=9&vpsrc=6
Zoom out one level and part of Highway 97, (the Alaska Highway),
disappears.

Kasper

unread,
Nov 30, 2011, 2:22:31 PM11/30/11
to google-map...@googlegroups.com
Yep, that question was for you, assuming you indeed used the API in this case.
Thanks for the tip about the TIGER database, though I checked, and they don't have the transit lines of The Netherlands... Damn.

Marcelo

unread,
Nov 30, 2011, 3:06:05 PM11/30/11
to Google Maps JavaScript API v3

Actually, TIGER is US only so I couldn't have used that in my case,
but the Canadian equivalent, if there is one, but no country in the
world has as much data made public as the US has.

Reply all
Reply to author
Forward
0 new messages