effrenus / yandex-map-react

70 stars 22 forks source link

Lon/lat stuff #13

Open kachkaev opened 8 years ago

kachkaev commented 8 years ago

From my previous experience with web maps, longitude normally precedes latitude, which makes geographical coordinates similar to x/y on a Cartesian plane. It's good that the <Map /> component has coordorder prop, but this still leaves a couple of issues.

If Yandex maps API uses lat/lon instead of lot/lan by default, I assume it is for a good reason. However, the React component could probably have a different default behaviour here, just to be more consistent with other mapping / data vis tools and formats (e.g. Mapbox GL JS and GeoJSON).