remoteEditHandler(map.getBounds());
}
+ if (OSM.params().edit_help) {
+ $('#editanchor')
+ .removeAttr('title')
+ .tooltip({
+ placement: 'bottom',
+ title: I18n.t('javascripts.edit_help')
+ })
+ .tooltip('show');
+
+ $('body').one('click', function() {
+ $('#editanchor').tooltip('hide');
+ });
+ }
+
initializeSearch(map);
initializeExport(map);
initializeBrowse(map, params);
});
}
- function geoError() {
- $('.start-mapping')
- .removeClass('loading')
- .addClass('error');
- }
-
$('.start-mapping').on('click', function(e) {
e.preventDefault();
// handle firefox's weird implementation
// https://bugzilla.mozilla.org/show_bug.cgi?id=675533
- window.setTimeout(geoError, 4000);
+ window.setTimeout(manualEdit, 4000);
- navigator.geolocation.getCurrentPosition(geoSuccess, geoError);
+ navigator.geolocation.getCurrentPosition(geoSuccess, manualEdit);
});
+ } else {
+ manualEdit();
+ }
+
+ function manualEdit() {
+ window.location = '/?edit_help=1'
}
});
reactivate: Reactivate
comment_and_resolve: Comment & Resolve
comment: Comment
+ edit_help: Move the map and zoom in on a location you want to edit, then click here.
redaction:
edit:
description: "Description"