Use this: map.prototype.ruleTheWorld(rulersName, planet, galaxy)
 
Then just write the function ruleTheWorld(n,p,g) ...kidding
 
Seriously though. If you have written the offsetPoly or need help please 
get back to me. 
I have figured a polyline adjusts about 2 pixels per zoom level [from 
recollection] for a 2pixel wide line. See the attaced PNG. With zoom 
compared from levels 16 to 20.
 
I think a simple shift 2pixels per zoom level with direction offset decided 
by the angle of the line-segment would work.
 
I am amazed there is not a built-in polyLine offset attribute in the API, 
that may mean that such a function will have issues. ) 
 
You can offset from polyLine with icons such a arrows and SVG but a solid 
line as an icon does not look right.  Doing so produces a series of 
line-segments, each segment anchored to a point at an offset radius from 
the original PolyLine. Looks something like porcupine quills offset from 
the polyLine porcupine body. And impossible to stop overlaps on the 
corners as your line segment is either anchored to the front or the back of 
any point on the polyLine. so if you have it ahead at the start it will be 
ahead at the end by the length of your icon or vice versa.
 
I even tried 2 pixel dot icons offset from the central line, still had a 
bumpy appearance.
 
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api/-/sbLTO_HaZgMJ.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

<<attachment: mixedzoomlevels.png>>

Reply via email to