Closed thim81 closed 7 years ago
Additional:
It's linked to the
<shape name="polyline" id="route" path="{{ map.route}}" geodesic="true" stroke-color="#00C477" stroke-opacity="1.0" stroke-weight="5"></shape>
Because if I leave this out, then the error is not present anymore
Please create a plunker example so that we can actually see the error
Closing for inactivity
Hi @allenhwkim
This error happens when the initial path is clean like vm.path = [];
Look: https://plnkr.co/edit/jywN60PdsLegZNTbDTSd?p=preview
This plnkr is based on: https://ngmap.github.io/#/!polyline-complex.html
Thank you, your job is very good!
please use ng-if
to avoid errors
<shape ng-if="vm.path.length"name="polyline" id="foo"
path="{{vm.path}}"
stroke-color="#FF0000"
stroke-opacity="1.0"
stroke-weight="3">
</shape>
I am getting that error even after using ng-if
.
<shape ng-if="selected.runner && path.length >0"
name="polyline"
path="{{path}}"
geodesic="true"
stroke-color="#5B2C6F"
stroke-opacity="1.0"
stroke-weight="2">
</shape>
Current behavior The map works as expected and shows all markers and polylines but the following error is shown:
Expected/desired behavior
No error warnings
Extra info
Version: "ngmap": "^1.18.4",
Implementation example: