1

I am looking for ways to add legend icons for vector features in OpenLayers. I am aware that GeoExt does this and have trawled through the code - but its not at all clear to me how it functions.

Can you provide pointers to examples and/or pseudo code?

closed as off-topic by PolyGeo May 10 '18 at 4:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

1

Look through these discussion forums. There are some demonstrations in there.

http://www.mail-archive.com/openlayers-users@lists.osgeo.org/msg01318.html

Example from that link: http://api.geoext.org/1.0/examples/vector-legend.html

The example has an attached JS file for you to look through too.

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