map.attributionControl.setPrefix(permalinks);
- map.on("moveend layeradd layerremove", updateLocation);
+ map.on("moveend baselayerchange", updateLocation);
if (!params.object_zoom) {
if (params.bbox) {
remoteEditHandler();
}
- $(window).resize(function() {
- var centre = map.getCenter();
- var zoom = map.getZoom();
-
- handleResize();
-
- map.setCenter(centre, zoom);
- });
+ $(window).resize(handleResize);
$("#search_form").submit(function () {
var bounds = map.getBounds();