diff --git a/android/src/ti/map/PolygonProxy.java b/android/src/ti/map/PolygonProxy.java index cae9b9ba..485328a8 100644 --- a/android/src/ti/map/PolygonProxy.java +++ b/android/src/ti/map/PolygonProxy.java @@ -29,7 +29,7 @@ { MapModule.PROPERTY_FILL_COLOR, MapModule.PROPERTY_STROKE_COLOR, MapModule.PROPERTY_STROKE_WIDTH, - MapModule.PROPERTY_ZINDEX, MapModule.PROPERTY_POINTS, PolygonProxy.PROPERTY_HOLES, + MapModule.PROPERTY_ZINDEX, MapModule.PROPERTY_POINTS, TiC.PROPERTY_TOUCH_ENABLED }) @@ -232,12 +232,18 @@ public PolygonOptions getOptions() return options; } - @Kroll.method + @Kroll.setProperty public void setHoles(Object[] holesList) { TiMessenger.sendBlockingMainMessage(getMainHandler().obtainMessage(MSG_SET_HOLES), holesList); } + @Kroll.getProperty + public Object[] getHoles() + { + return (Object[])getProperty(PolygonProxy.PROPERTY_HOLES); + } + public void setPolygon(Polygon r) { polygon = r; @@ -253,10 +259,10 @@ public boolean getClickable() return clickable; } - public List> getHoles() + /*public List> getHoles() { return polygon.getHoles(); - } + }*/ @Override public void onPropertyChanged(String name, Object value)