The method addItem(int location, Item item) doesn't work well, I mean the MarkerItem is never added to the layer, I believe is because it doesn't call populate() to recreate the items in the MarkerRenderer. I manage to get it working creating a sub-class and override the method like this:
The method addItem(int location, Item item) doesn't work well, I mean the MarkerItem is never added to the layer, I believe is because it doesn't call populate() to recreate the items in the MarkerRenderer. I manage to get it working creating a sub-class and override the method like this:
With this I get the desired result.