I'm try to get feature of a vector layer, but I'll have 3 or more Vector layer. When I click the map, I didn't get the feature. My vector layer definition;

var vectorAltAlan = new ol.layer.Vector({
        source: new ol.source.GeoJSON({
            projection: 'EPSG:2322',
            url: 'data/geojson/guneykaya_alt_alan.geojson'
        style: function (feature, resolution) {

So how can I detect the layer and getting featue by click ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.