Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增更多事件信息 #523

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
新增更多事件信息
  • Loading branch information
MonchiLin committed Jun 10, 2019
commit ddb37258eec8091b00bed36094c93b3981361e35
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ class AMapView(context: Context) : TextureMapView(context) {
val northeast = map.projection.visibleRegion.latLngBounds.northeast
data.putDouble("latitudeDelta", Math.abs(southwest.latitude - northeast.latitude))
data.putDouble("longitudeDelta", Math.abs(southwest.longitude - northeast.longitude))
data.putMap("farLeft", map.projection.visibleRegion.farLeft.toWritableMap())
data.putMap("farLeft", map.projection.visibleRegion.farRight.toWritableMap())
data.putMap("nearLeft", map.projection.visibleRegion.nearLeft.toWritableMap())
data.putMap("nearRight", map.projection.visibleRegion.nearRight.toWritableMap())
}
emit(id, event, data)
}
Expand Down