question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using lat/long in defineBounds()

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
p-lrcommented, Apr 11, 2016

@arso8 good catch!

0reactions
moagriuscommented, Apr 13, 2016

2.1.4 is now available on jcenter, and contains this patch.

Thanks for posting!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found