Nice! That looks great.
But wouldn't it violate the Terms of Service to calculate and fetch tiles
directly like that?
var lyrsH = new google.maps.ImageMapType({
getTileUrl: function(ll, z) {
var X = ll.x % (1 << z); // wrap
return "http://mt0.google.com/vt/v=apt.116&hl=en-US&x="
+ X + "&y=" + ll.y + "&z=" + z + "&s=G&lyrs=h";
},
tileSize: new google.maps.Size(256, 256),
isPng: false,
maxZoom: 20,
name: "lyrs=h",
alt: "Hybrid labels"
});
Don't worry, I'm sure nobody cares about a test page. :-) But I probably
couldn't use that in a production site, unless I misunderstand the TOS.
Thanks,
-Mike
On Tue, Dec 14, 2010 at 10:57 PM, pi5701 <[email protected]> wrote:
> try this
> http://www.mario-baldauf.org/test/roads_v3.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.