angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Add polygon

Open knapeto opened this issue 11 years ago • 2 comments

Hey all,

I have problem with add new polygon to ui-gmap-polygons.

When I add new object example:

$scope.dynamicWaypointsData = [];
$scope.dynamicWaypointsData.push({
                        id: 10,
                        path: $scope.dynamicWaypointsList[eq].path,
                        clickable: true,
                        draggable: true,
                        editable: true,
                        visible: true,
                        geodesic: true
                    });

I have error in console TypeError: object is not a function

HTML:

<ui-gmap-polygons
                models="dynamicWaypointsData" path="'path'" stroke="'stroke'" visible="'visible'" geodesic="'geodesic'" editable="'editable'" draggable="'draggable'">
        </ui-gmap-polygons>

knapeto avatar Jan 02 '15 15:01 knapeto

Its tough to see where your issue is with fragments of markup and js. A plunker or something similar probably would make it more clear where the error lies.

Looks like your directive is set up properly in the markup. The only thing about your polygon models that looks odd to me is the path property. No way to know what that is getting set to based on what you've shared.

aplus01 avatar Jan 07 '15 18:01 aplus01

@knapeto since we have not heard back from you; I am closing this issue.

nmccready avatar Mar 05 '15 22:03 nmccready