0

I am trying to make a REST call which accepts bounding box lat-lng as body parameters. But unfortunately DB geoPoint restriction is:

•         Latitude : max/min +90 to -90
•         Longitude : max/min +180 to -180 

But Leaflet fetches beyond this limitation. Because of this REST call fails. Any suggestions?

  • Longitude outside the range of -180,180 is both valid and sometimes necessary. If you need to enforce this restriction, you'll need to clip, translate, and append to the other side of the globe to preserve topology. – Vince Sep 25 at 12:55
1

I missed it somehow, leaflet itself provides wrapLatLng which can be used as this.map.wrapLatLng(latLngPoint), this returns normalized form of latitude longitude how we need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.