Hi,

There is this cool example using MVCObjects:
http://code.google.com/apis/maps/articles/mvcfun/step6.html

I want to add a ruler between the center and the radius markers which
on top of it , the distance will be written (now its written
underneath the map). So step (1) is adding the PolyLine, now i tried
using as the path option of it an MVCArray to hold the center and
radius points.
What i did was adding a global varible :
var MVCpath=new google.maps.MVCArray();

and adding the following code to "function DistanceWidget(map)" 's
end:
MVCpath.push(marker.getPosition());
    MVCpath.push(radiusWidget.get('sizer_position'));


    var line=new google.maps.Polyline({
        strokeColor: "#FFAA00",
        path: MVCpath
    })

    // Bind the line map to the RadiusWidget map
    line.bindTo('map', this);


not sure how to use it , MVCArray consists of MVCObjects, i want to
bind the center marker and the radius marker position (they are
google.maps.LatLng points) so that i want need to update them.

Is this possible? if not how can i make it work?

step (2) is writing on the PolyLine the distance... i dont have a clue
how to do it.

Thanks.

-- 
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 [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-js-api-v3?hl=en.

Reply via email to