Coder Social home page Coder Social logo

Incorrect cluster location about supercluster HOT 4 CLOSED

mapbox avatar mapbox commented on May 17, 2024
Incorrect cluster location

from supercluster.

Comments (4)

tonai avatar tonai commented on May 17, 2024 1

Latitude and longitude were inverted

from supercluster.

tonai avatar tonai commented on May 17, 2024 1

I inverted lat ang lng in the list of point.
I wrote [lat, lng] (like in Gmap) instead of [lng, lat].
The codepen has been corrected.

from supercluster.

francoro avatar francoro commented on May 17, 2024

iIs okay in that order? [westLng, southLat, eastLng, northLat] = SWLng, SWLat,NELng,NELat ?
The second is what returns me google maps from get bounds. I have that doubt

from supercluster.

oldo avatar oldo commented on May 17, 2024

Brilliant! I had exactly the same issue - even with trying to show clusters in Sydney and finding them off the coast of South Africa 😊
Same cause - lat and lng were inverted on the marker components

from supercluster.

Related Issues (20)

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.