X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/890153b2a6412a60f352f88fc3d8c80be14451fc..ef37ad8aaac510d34ccf7f14589c2584fc2b63ac:/app/assets/javascripts/index/notes.js.erb diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 7336c49ec..e540826ec 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -63,7 +63,7 @@ $(document).ready(function () { }); if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') { - map.layersControl.addOverlay(noteLayer, I18n.t("browse.start_rjs.notes_layer_name")); +// map.layersControl.addOverlay(noteLayer, I18n.t("browse.start_rjs.notes_layer_name")); if (params.layers) setMapLayers(params.layers); if (params.notes) map.addLayer(noteLayer); @@ -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() )); @@ -115,7 +115,7 @@ $(document).ready(function () { var size = bounds.getSize(); if (size <= OSM.MAX_NOTE_REQUEST_AREA) { - var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBOX(); + var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBoxString(); if (noteLoader) noteLoader.abort(); @@ -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); } } });