if (marker)
{
marker.setIcon(noteIcons[feature.properties.status]);
- marker._popup.setContent(createPopupContent(
+ marker.setPopupContent(createPopupContent(
marker, feature.properties,
$(marker._popup._content).find("textarea").val()
));
var popupContent = createPopupContent(marker, feature.properties);
marker.setIcon(noteIcons[feature.properties.status]);
- marker._popup.setContent(popupContent);
+ marker.setPopupContent(popupContent);
}
}
});