Skip to content

Commit

Permalink
Update PluginPolygon.java
Browse files Browse the repository at this point in the history
Removed unnecessary code setting the visibility of the polygon hardcoded to true/false.
This is not needed, since the visibility is managed by the PolygonOptions.
  • Loading branch information
TdoubleG authored Apr 11, 2019
1 parent 38dcc23 commit c54b4c4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/android/plugin/google/maps/PluginPolygon.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,6 @@ public void setPoints(final JSONArray args, final CallbackContext callbackContex
public void run() {
// Update the polygon
polygon.setPoints(path);
if (path.size() > 0) {
polygon.setVisible(true);
} else {
polygon.setVisible(false);
}
callbackContext.success();
}
});
Expand Down

0 comments on commit c54b4c4

Please sign in to comment.