[GIS] Display Leaflet Markers with UTM coordinates

leaflet

is it possible to display markers with UTM coordinates (zone 32) with leaflet and OSM? How can I do this? If I use UTM Coordinates like latlng, the position is totally wrong:

        L.marker([5698015.694, 312400.093]).addTo(map)
        .bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup();

Did I have to translate them first, or is it possible to display UTM coordinates directly with leaflet?

Best Answer

Leaflet does not do coordinate translation (except the implicit one between LatLon and Web mercator).

Check out https://github.com/kartena/Proj4Leaflet, this should enable you to work with UTM coordnates (WGS84 UTM Zone 32 is EPSG:32632, proj4js def here: http://spatialreference.org/ref/epsg/32632/proj4js/)