Wasn't it Jason who wrote:
>Hi,
>Now I want a road to be a Gpolyline, then when a person click on the
>road, I will pop up a infowindow to show some information, could I draw
>a polyline whose weight just fit the road weight, is there any API
>could let the polyline fit a road? Thanks!
You could measure the road and create a polyline of that width, but it
will only fit at the particular zoom level where you measured it.
If you want it to fit at all zoom levels, you need to watch for
"zoomend" events, calculate the appropriate width for that zoom level
and perform poly.setStrokeStyle({width:n})
--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---