Aaron
Aaron

Reputation: 1208

GML3 features Openlayers not plotting

Latest Version of Openlayers 3.

var metSource = new ol.source.Vector({
    url: "metobjectxml/2.xml",
    format: new ol.format.GML3({
        defaultDataProjection: 'EPSG:4326'
    })
});


var metLayer = new ol.layer.Vector({
    source: metSource
});


var mapView = new ol.View({
    center: ol.proj.transform([-114.3035, 54.5800], 'EPSG:4326', 'EPSG:900913'),
    zoom: 5,
    projection: 'EPSG:900913'
});

var map = new ol.Map({
    layers: [metLayer],
    target: 'map',
    view: mapView
});

```

Not plotting anything.

XML file: https://bpaste.net/show/56363886838f

Anyone know why?

Upvotes: 1

Views: 225

Answers (1)

bartvde
bartvde

Reputation: 2126

This is not supported by OpenLayers. Only GML simple features profile is supported. What you have seems sensor web related.

Upvotes: 1

Related Questions