Skip to content

Commit

Permalink
Ensure region property is set after mapMove on android to match behav…
Browse files Browse the repository at this point in the history
…ior of ios.
  • Loading branch information
astjohn committed Dec 2, 2014
1 parent 374b327 commit 5259b85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file modified android/dist/map.jar
Binary file not shown.
Binary file modified android/dist/ti.map-android-2.3.0.zip
Binary file not shown.
6 changes: 6 additions & 0 deletions android/src/ti/map/TiUIMapView.java
Expand Up @@ -915,6 +915,12 @@ public void onCameraChange(CameraPosition position) {
(bounds.northeast.latitude - bounds.southwest.latitude));
d.put(TiC.PROPERTY_LONGITUDE_DELTA,
(bounds.northeast.longitude - bounds.southwest.longitude));

// In iOS, the region property is updated in the
// 'regionDidChangeAnimated' method.
// This allows a user to call getRegion and receive the current map
// bounds
proxy.setProperty(TiC.PROPERTY_REGION, d);
proxy.fireEvent(TiC.EVENT_REGION_CHANGED, d);
}

Expand Down

0 comments on commit 5259b85

Please sign in to comment.