resizeMap();
}
- function josmEditHandler(event) {
+ function remoteEditHandler(event) {
var extent = getMapExtent();
var loaded = false;
$("linkloader").src = "http://127.0.0.1:8111/load_and_zoom?left=" + extent.left + "&top=" + extent.top + "&right=" + extent.right + "&bottom=" + extent.bottom;
setTimeout(function () {
- if (!loaded) alert("<%= t('site.index.josm_failed') %>");
+ if (!loaded) alert("<%= t('site.index.remote_failed') %>");
}, 1000);
event.stop();
}
function installEditHandler() {
- $("josmanchor").observe("click", josmEditHandler);
+ $("remoteanchor").observe("click", remoteEditHandler);
- <% if preferred_editor == "josm" %>
- $("editanchor").observe("click", josmEditHandler);
+ <% if preferred_editor == "remote" %>
+ $("editanchor").observe("click", remoteEditHandler);
<% if params[:action] == "edit" %>
- josmEditHandler();
+ remoteEditHandler();
<% end %>
<% end %>
}
potlatch2:
name: "Potlatch 2"
description: "Potlatch 2 (in-browser editor)"
- josm:
- name: "JOSM"
- description: "JOSM (via remote-control plugin)"
+ remote:
+ name: "Remote Control"
+ description: "Remote Control (JOSM or Merkaartor)"
browse:
changeset:
title: "Changeset"
license_url: "http://creativecommons.org/licenses/by-sa/2.0/"
project_name: "OpenStreetMap project"
project_url: "http://openstreetmap.org"
- josm_failed: "Editing failed - make sure JOSM is loaded and the remote control plugin is enabled"
+ remote_failed: "Editing failed - make sure JOSM or Merkaartor is loaded and the remote control option is enabled"
edit:
not_public: "You have not set your edits to be public."
not_public_description: "You can no longer edit the map unless you do so. You can set your edits as public from your {{user_page}}."
module Editors
- ALL_EDITORS = [ "potlatch", "potlatch2", "josm" ]
+ ALL_EDITORS = [ "potlatch", "potlatch2", "remote" ]
end