-function minZoomAlert() {
- alert(I18n.t("javascripts.site." + name + "_zoom_alert")); return false;
+function getUrl(map) {
+ var center = map.getCenter(),
+ zoom = map.getZoom(),
+ toZoom = zoomPrecision(zoom);
+
+ return (window.location.hostname.match(/^www\.openstreetmap\.org/i) ?
+ 'http://openstreetmap.org/?' : 'http://' + window.location.hostname + '/?') +
+ querystring.stringify({
+ lat: toZoom(center.lat),
+ lon: toZoom(center.lng),
+ zoom: zoom,
+ layers: map.getLayersCode()
+ });