0

I'm fresh with OpenLayers/GeoJSON...

Anyway, vector layer with features (lines, polygons, points...) and it pulls those data from GeoJSON ("type":"FeatureCollection") file.

Is there a way to see 'feature source' etc. when I click on line, can I find where is the code behind it that 'draws' that line?

My goal is to be able to tell "ok, I have clicked this and it is controlled by this peace of code... or nearby".

1

Currently there is no way to get a reference to a source from a feature. You can implement a piece of code that checks if a given source contains a feature.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.