Polygons directive does not use fill parameter
I was able to resolve the issue by adding 'fill' to this.scopePropNames of the uiGmapPolygons directive and afterwards Polygon directives respect the fill parameter.
this.scopePropNames = ['path', 'stroke','fill', 'clickable', 'draggable', 'editable', 'geodesic', 'icons', 'visible'];
You know you can highlight line numbers in github right? And you can also make a PR.
Sorry, I did not know that. I have never contributed to a git repo. I'll be sure to try that in the future.
On Fri, Dec 19, 2014, 7:26 PM nmccready [email protected] wrote:
You know you can highlight line numbers in git right? And you can also make a PR.
— Reply to this email directly or view it on GitHub https://github.com/angular-ui/angular-google-maps/issues/1034#issuecomment-67716360 .
Any luck on this? Have you tried it recently?
Closing until reply.
Yes, fill is working as expected. Thanks.
I am doing some dynamic binding of polygons, and "fill" doesn't work.
<ui-gmap-polygons models="map.zones"
path="'path'"
visible="true"
editable="'editable'"
stroke="'stroke'"
fill="'fill'"
events="map.zoneEvents"
>
</ui-gmap-polygons>
"stroke" seems to work, but not dynamically. I'm using 2.1.5 with angular 1.2.28. In the code below (ShapeOptionsBuilder.prototype.buildOpts), the variable "fill" = "fill", I noticed that it fails to create the "fill" key on the directives child scope (cachedEval below), but instead finds the "fill" key on the prototype. I'm not quite sure where to make the fix.
