Unfolding: is possible to use markerFactory with a custom Marker which extend AbstractMarker?

edited June 2015 in Library Questions

Hi,

I'm currently learning to use Unfolding, but I'm struggling with a point: I need to load on a map a series of custom markers loaded e.g. from a geojson file. The problem is, the MarkerFactory class used to load custom markers seems to accept only line\point\polygon marker - trough methods setLineClass etc - while I had to extende AbstractMarker to make my own custom marker. Therefore, now I can't understand if and how is possible to load my marker with markerFactory.

Thanks kindly for any answer!

Answers

  • Isn't your implementation of AbstractMarker some point/line/polygon? So just set it via one of those methods, even if your own class doesn't extend SimplePointMarker, SimpleLinesMarker, etc.

    Or maybe I don't understand what you are trying to achieve. Do you want to create a marker for some MultiPolygon or such?

Sign In or Register to comment.