Use new Leaflet setPopupContent method
This commit is contained in:
parent
168a9fc327
commit
13fee47ed0
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ $(document).ready(function () {
|
|||
if (marker)
|
||||
{
|
||||
marker.setIcon(noteIcons[feature.properties.status]);
|
||||
marker._popup.setContent(createPopupContent(
|
||||
marker.setPopupContent(createPopupContent(
|
||||
marker, feature.properties,
|
||||
$(marker._popup._content).find("textarea").val()
|
||||
));
|
||||
|
@ -231,7 +231,7 @@ $(document).ready(function () {
|
|||
var popupContent = createPopupContent(marker, feature.properties);
|
||||
|
||||
marker.setIcon(noteIcons[feature.properties.status]);
|
||||
marker._popup.setContent(popupContent);
|
||||
marker.setPopupContent(popupContent);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue