javascript - OpenPopup Marker Bug? -
hi when try open popup of marker right after creating it, won't work.
var marker = l.marker([x, y],{icon:greenicon}).bindpopup(markerstring); marker.openpopup(); console.log(marker.getpopup().isopen());
log -> false have add marker map first ?
as have huge array of markers, create featuregroup first, add markers , add featuregroup map. how can access marker in featuregroup open popup afterwards?
do have add marker map first ?
yes, yes, yes. otherwise, how marker know map related to?
how can access marker in featuregroup open popup afterwards?
simply keep variable each of markers (could in array), or iterate markers in feature group determine appropriate marker based on criteria (if have some). totally application developer.
Comments
Post a Comment