Open dharmdeep opened 3 years ago
Just tried wrapping the polygon component in a v-for loop, and it works.
Simply make an object or array, store each polygon with its options in it, and then iterate over it.
<span v-for="singleTargetPolygon in targetPolygons"> <gmap-polygon :paths="singleTargetPolygon.paths" :options="singleTargetPolygon.options"></gmap-polygon> </span>
...then tried this, still works, and doesn't pollute the DOM with useless span tags.
<gmap-polygon v-for="singleTargetPolygon in targetPolygons" :paths="singleTargetPolygon.paths" :options="singleTargetPolygon.options"></gmap-polygon>
Hello, Can someone tell me how to set multiple strokeColor for all paths. Single strokeColor is working great but I am not finding relevant solution for set all different-2 colors for different-2 lat long paths.
Here is code
can I set array in options ? please suggest
So I need to set different-2 strokeColor for all 3 paths dynamically. And same things label for gmap- marker.
Thanks in advance