Hi,
I am new in AngularJS, I am using http://angular-ui.github.io/, and in 
particular Drawing Mangager 
<http://angular-ui.github.io/angular-google-maps/#!/api/drawing-manager>.
Once you draw a rectangle, I want to get the coordinates (latitude and 
langitude) of shape.
How can I get this information?

I have something like that:

> $scope.eventHandler = {
>     overlaycomplete: function (dm, name, scope, objs) {
>         if (dm.drawingMode == google.maps.drawing.OverlayType.RECTANGLE){
>             console.log("You successfully placed a %s", dm.drawingMode);
>         }
>     },
>     polylinecomplete: function (dm, name, scope, objs) {
>         console.log("You finished drawing polyline to [%s]", 
> objs[0].getPath().getArray().join(","));
>     }
> };
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to