Hi, by the way my next problem.....
for each poll there is a new marker.....I want only to one marker
moving (for using an aircraft icon later).....
I tried
var points = [
new GLatLng(51.964711, 7.628496),
new GLatLng(52.523405, 13.4114),
];
var polyline = new GPolyline(points, '#ff0000', 1, 1.0);
var dist = polyline.Distance();
map.addOverlay(polyline);
Here the part for each poll again:
$("#data").html(data);
var test = polyline.GetPointAtDistance(data); // Returns the GLatLng
var marker = new GMarker(test);
map.addOverlay(marker);
I have trief using map.removeOverlay(); , inside the polling part,
but then the polyline also disappears ?
On 26 Jun., 02:01, homer_simpson <[email protected]> wrote:
> Hi,
>
> thanks....it works ;-) Juhu !!!
> (And learned somthing...)Thx
>
> On 26 Jun., 01:42, Rossko <[email protected]> wrote:
>
>
>
>
>
>
>
> > > So....my little Problem....I use the Google Maps extension epoly.js
> > ...
> > > var test = polyline.GetPointAtDistance(data);
> > > Problem: I need 2 Parameters for the Following GLatLng()
>
> > Why?? GetPointAtDistance() returns a ready-to-use GLatLng
> > objecthttp://econym.org.uk/gmap/epoly.htm
--
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.