Format GeoJSON coordinates with OpenLayers by easily swapping between DD, DMS, DDM natively?

Your result is in the view projection units. For degrees use

new GeoJSON().writeFeatures(
  [new Feature(fromExtent(extentCopy))],
  {dataProjection: 'EPSG:4326', featureProjection: map.getView().getProjection()}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top