Using lat/long in defineBounds()
See original GitHub issueI have some problem with using lat/long coords.
What latitude should i pass as top and bottom of defineBounds(left, top, right, bottom)
method?
if (top < bottom) e.g.tileView.defineBounds(30.3225, 59.9777, 30.3438, 59.9896);
then translateY(double y)
returns wrong value (markers on wrong places);
But if I swap top and bottom (top > bottom),
e.g. tileView.defineBounds(30.3225, 59.9896, 30.3438, 59.9777);
then translateY(double y)
works correct, but contains(double x, double y)
method returns wrong value.
How can I solve this problem?
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (7 by maintainers)
Top Results From Across the Web
Finding the lat/lng points within given bounds - Stack Overflow
First create bounding box containing rotated rectangle and send the coordinates of bounding box to php/MySQL, Then use pointInPolygon() to ...
Read more >L.LatLngBounds - WRLD3D
LatLngBounds. Represents a rectangular geographical area on a map. Usage example. var southWest = L.latLng(40.712, -74.227), northEast = L.latLng(40.774, ...
Read more >LatLngBounds | Google Play services
An immutable class representing a latitude/longitude aligned rectangle. ... able to create a minimum bound based on a set of LatLng points.
Read more >Calculating bounding box of given set of coordinates from ...
GeoJSON layer group and to use the getBounds() method. This returns an L.LatLngBounds object from which you can read the corners coordinates, or ......
Read more >Geometry definitions - Pyresample - Read the Docs
Geographic coordinates and boundaries¶ ... All geometry definition objects provide access to longitude and latitude coordinates. The get_lonlats() method can be ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@arso8 good catch!
2.1.4 is now available on jcenter, and contains this patch.
Thanks for posting!