New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Suggestion: coordstoLatLng #3061

Closed
hrishiballal opened this Issue Nov 26, 2014 · 3 comments

Comments

Projects
None yet
4 participants
@hrishiballal

hrishiballal commented Nov 26, 2014

A example show how coordstoLatLng should be used would be great. I am utterly confused about how to use it. I want to convert Geojson to polygon object.

Currently the documentation lacks any code about it.

@mourner mourner added the later label Nov 26, 2014

@Starefossen

This comment has been minimized.

Contributor

Starefossen commented Dec 6, 2014

From the CHANGELOG:

Added GeoJSON coordsToLatLng option for dealing with GeoJSON that has non-WGS84 coords (thanks to @moonlite)

By default Leaflet assumes WGS84 coordinates when parsing GeoJSON. WGS84 is the standard coordinate system for this thing called the Global Positioning System. However, if your GeoJSON coordinates are of some other coordinate system you would need to convert them in order for them to be displayed correctly on the map. This is where the coordsToLatLng method comes in handy.

You can see how it is used in the Leaflet core.

@patrickarlt patrickarlt self-assigned this Dec 22, 2014

@patrickarlt patrickarlt added docs in progress and removed later labels Dec 22, 2014

@patrickarlt

This comment has been minimized.

Member

patrickarlt commented Dec 22, 2014

@mourner I'll add this to the work I'm doing for the 1.0 documentation. Since 1.0 will make working with custom projections and spatial references easier I think we need to document this so people can use L.GeoJSON with custom projections.

@patrickarlt patrickarlt referenced this issue Dec 22, 2014

Closed

1.0 Documentation checklist #3098

57 of 60 tasks complete
@mourner

This comment has been minimized.

Member

mourner commented Jun 5, 2015

Tracked in #3098

@mourner mourner closed this Jun 5, 2015

@mourner mourner removed the in progress label Jun 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment