Giter Site home page Giter Site logo

tubalmartin / spherical-geometry Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 33.0 136 KB

This library provides classes and functions for the computation of geometric data on the surface of the Earth. Code ported from the Google Maps Javascript API v3

Home Page: http://tubalmartin.github.com/spherical-geometry-php/

PHP 89.07% JavaScript 10.93%

spherical-geometry's People

Contributors

tubalmartin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

spherical-geometry's Issues

"Contains" function in a wide world bounds doesn't work.

Hi. Thank you very much for the library. I'm using it in combination with leaflet js.
I have this LatLngBounds created with coordinates:
swLat => -85.051128779807
neLat => 85.051128779807
swLng => 180
neLng => -180
That is almost a world wide zone. 'Contains' function is giving me false to any coordinates I test on.

Thank you!

Issue in LatLngBounds.contains functoin

There is an issue in LatLngBounds->contains function that return false in some cases. For example please check below scenario:

northEastLat : 70.32067931869103
northEastLng: -79.77928250000002
southWestLat: -59.97412182425466
southWestLng: 74.90821749999998
lat: 39.911607
lng: -100.853613

It seems this issue occurs in LngBounds->contains function.

I checked this scenario in Google Maps v3 api and it will returns true.

var bounds = map.getBounds();
var contain = bounds.contains( new google.maps.LatLng( 39.911607, -100.853613 ) );
console.log( contain );  // returns true.
  • update

sorry this issue was not related to this library and this issue occurred because I used part of it's code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.