Skip to content

Commit

Permalink
fix(android): fix PolygonProxy holes property
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Jan 25, 2019
1 parent 13fb347 commit 098e95d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions android/src/ti/map/PolygonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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

})
Expand Down Expand Up @@ -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;
Expand All @@ -253,10 +259,10 @@ public boolean getClickable()
return clickable;
}

public List<? extends List<LatLng>> getHoles()
/*public List<? extends List<LatLng>> getHoles()
{
return polygon.getHoles();
}
}*/

@Override
public void onPropertyChanged(String name, Object value)
Expand Down

0 comments on commit 098e95d

Please sign in to comment.