On Aug 3, 7:59 am, Rossko <ros...@culzean.clara.co.uk> wrote:
> > Can somebody explain it?
>
> The map is in Mercator projection, the "middle" of a line is not a
> simple average of the coordinates in degrees. You need to do something
> a bit cleverer with spherical geometry.

also there seems to be something slightly wrong with the coordinates
in IE, where depending on the zoom level the end point is either 1
pixel above, 1 pixel below, or on the line.  Other browsers seem OK.
I guess thats something to do with VML compared to SVG or Canvas.  The
V3 API breaks long polylines are into segments, with the end points
fairly close to the tile boundary, so in theory there could be a half
pixel shift away from the true line position at each end point of a
line segment.

http://www.william-map.com/20100803/1/midpoint.htm

...

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to