Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrowe committed Nov 7, 2016
1 parent 715939e commit ef5e3b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ public void setZIndex(AirMapPolygon view, float zIndex) {
@Override
@Nullable
public Map getExportedCustomDirectEventTypeConstants() {
Map map = MapBuilder.of(
return MapBuilder.of(
"onPress", MapBuilder.of("registrationName", "onPress")
);
return map;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ public void setZIndex(AirMapPolyline view, float zIndex) {
@Override
@Nullable
public Map getExportedCustomDirectEventTypeConstants() {
Map map = MapBuilder.of(
return MapBuilder.of(
"onPress", MapBuilder.of("registrationName", "onPress")
);
return map;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ public boolean onMarkerClick(Marker marker) {
map.setOnPolygonClickListener(new GoogleMap.OnPolygonClickListener() {
@Override
public void onPolygonClick(Polygon polygon) {
WritableMap event;
event = makeClickEventData(polygon.getPoints().get(0));
WritableMap event = makeClickEventData(polygon.getPoints().get(0));
event.putString("action", "polygon-press");
manager.pushEvent(polygonMap.get(polygon), "onPress", event);
}
Expand All @@ -182,8 +181,7 @@ public void onPolygonClick(Polygon polygon) {
map.setOnPolylineClickListener(new GoogleMap.OnPolylineClickListener() {
@Override
public void onPolylineClick(Polyline polyline) {
WritableMap event;
event = makeClickEventData(polyline.getPoints().get(0));
WritableMap event = makeClickEventData(polyline.getPoints().get(0));
event.putString("action", "polyline-press");
manager.pushEvent(polylineMap.get(polyline), "onPress", event);
}
Expand Down

0 comments on commit ef5e3b7

Please sign in to comment.