diff options
Diffstat (limited to 'chimere/static/main_map.js')
| -rw-r--r-- | chimere/static/main_map.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js index fb736f5..792021c 100644 --- a/chimere/static/main_map.js +++ b/chimere/static/main_map.js @@ -136,6 +136,7 @@ function showPop(feature) { currentPopup = feature.popup; /* hide on click on the cloud */ currentPopup.groupDiv.onclick = hidePopUp; + permalink.updateLink(); } /* check checked categories */ @@ -362,6 +363,13 @@ function putMarker(layer, mark) { marker.events.register('mouseover', feature, markerOver); marker.events.register('mouseout', feature, markerOut); layer.addMarker(marker); + /* show the item when designed in the permalink */ + if (p_current_feature == feature.pk){ + showPop(feature); + clicked = true; + updateDetail(feature.pk); + p_current_feature = null; + } return feature; } @@ -452,6 +460,9 @@ function createParams(center, zoom, layers) { /* only piece of code added */ params.checked_categories = checked_categories; params.display_submited = display_submited; + if(currentFeature){ + params.current_feature = currentFeature.pk; + } } return params; } |
