Class: OSMXML

OSMXML

Feature format for reading and writing data in the OSMXML format.

new ol.format.OSMXML() experimental

Extends

Methods

readFeatures(source){Array.<ol.Feature>} experimental

Read all features from an OSM source.

Name Type Description
source ArrayBuffer | Document | Node | Object | string

Source.

Returns:
Features.

readProjection(source){ol.proj.Projection} experimental

Read the projection from an OSM source.

Name Type Description
source ArrayBuffer | Document | Node | Object | string

Source.

Returns:
Projection.