Worldmap - deleting all drawing objects

Does anyone know how to delete all icons and drawing objects on the Worldmap? Or


delete a whole layer?

I can see how to delete individual ones ( {"deleted":true}) but if I can avoid keeping a list of everything displayed on the map in order to delete them individually, that would be easier.

Yet again, I've managed to answer my own question! Write everything to a named layer and then send msg.payload={'command':{'clear':'layerName'}}.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.