Are click events not supported for circles in worldmap? I get them for markers but not circles, polygons or lines.
I'm not clear what dictates whether a popup appears either... It seems that if I handle the click event for a marker, I don't get its popup. Does that sound right?
I do get a popup for my circle even though I don't get a click event for it.
Sounds about right (I've not checked in detail) - the tihinking was that drawn things get in the way of being able to click on the map itself - (unless they are on the Drawing layer so can be edited).
Thanks. Sometimes for me, markers are too big and get in the way themselves! So a small, clickable circle is what I find looks best. I've raised a pull request. My code might be naive, but it works for me (or seems to)!
in other thoughts - you can use fa-icons for marker icons - eg 'fa-circle-o' which is fairly small - or can be set to 'fa-circle-o fa-small' if you really want tiny
Thanks, I'll take a look at that one. I still think it would be useful to be able to click polygons, though, and would be even better to be able to select multiple by dragging a box around them -- but that's a different discussion, I think.
By the way, I thought I saw another reply to this thread suggesting a better place for the code I suggested, so that it would provide the functionality for all polygons. Something about "right click"?? It doesn't seem to be here anymore...