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

Polygons directive does not use fill parameter

Open aplus01 opened this issue 11 years ago • 6 comments

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'];

aplus01 avatar Dec 19 '14 21:12 aplus01

You know you can highlight line numbers in github right? And you can also make a PR.

nmccready avatar Dec 20 '14 00:12 nmccready

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 .

aplus01 avatar Dec 20 '14 01:12 aplus01

Any luck on this? Have you tried it recently?

nmccready avatar Mar 05 '15 22:03 nmccready

Closing until reply.

nmccready avatar Mar 05 '15 22:03 nmccready

Yes, fill is working as expected. Thanks.

aplus01 avatar Mar 06 '15 18:03 aplus01

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. debug

krewmarco avatar Aug 26 '15 21:08 krewmarco