Topic: How to get the bounds of the horizon?
Just like the title
Thank-you!
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → How to get the bounds of the horizon?
Just like the title
Thank-you!
You ask about coordinates of the bounds, right?!
1. Get the coordinates of the center point of the map (OnlineMaps.GetPosition).
2. Convert it to tile position using zoom = map.zoom - horizon.zoomOffset.
3. left = tileX - countX / 2.
top = tileY - countY / 2.
etc.
4. Convert tile position of the corners to geographic coordinates.
Infinity Code Forum → Online Maps Help → How to get the bounds of the horizon?
Powered by PunBB, supported by Informer Technologies, Inc.