On Mar 25, 1:34 pm, ChrisGL <[email protected]> wrote:
>
> Point GMarker looks fine, but polyline frawing not in Russia... Help
> please, what I do wrong?
Please post a link, not code. However...
> map.setCenter(new GLatLng(56.979992, 40.998676), 10);
> var latlng = new GLatLng(56.979992, 40.998676);
> map.addOverlay(new GMarker(latlng, markerOptions));
That's apparently correct: latitude 56.97, longitude 40.99.
So how about the points for the line?
> new GLatLng(40 + 59.0843 / 60, 56 + 57.5954 / 60),
GPS units usually give their results in the standard x,y order
(longitude first), whereas the GLatLng object uses latitude first to
reflect its name.
If you have lots of these points, then it may be easier to keep the
numbers the same and change the object:
function lnglat(x,y) { return new GLatLng(y,x); }
and use
var polyline = new GPolyline([
lnglat(40 + 59.0843 / 60, 56 + 57.5954 / 60),
lnglat(40 + 59.1190 / 60, 56 + 57.6074 / 60),
...
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.