mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Update docs, fix strict mode
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
"title": "Help"
|
||||
},
|
||||
{
|
||||
"html": "<p>This editor is designed to work primarily online, and you're accessing\nit through a website right now.</p>\n<h2>Selecting Features</h2>\n<p>To select a map feature, like a road or point of interest, simply single-click\non it on the map. This will highlight the selected feature, show a panel of\ndetails, and also show a menu of things you can do with the feature.</p>\n<p>Multiple features can be selected by holding the 'Shift' key, clicking,\nand dragging on the map. This will select all features within the box\nthat's drawn, and you can do certain 'batch operations' on all features.</p>\n<h2>Saving Edits</h2>\n<p>When you create changes, like editing roads, buildings, and places, these are\nstored locally until you save them to the server. Don't worry if you make\na mistake - you can undo changes by clicking the undo button, and redo\nchanges by clicking the redo button.</p>\n<p>Click 'Save' to finish a group of edits - for instance, if you've completed\nan area of town and would like to start on a new area. You'll have a chance\nto review what you've done, and the editor supplies helpful suggestions\nand warnings if something doesn't seem right about the changes.</p>\n<p>Clicking 'Save' again, on the new dialog, will post the changes\nto <a href=\"http://www.openstreetmap.org/\">OpenStreetMap.org</a>, where they are visible\nto all other users and available for others to build and improve upon.</p>\n<p>If you can't finish your edits in one sitting, you can leave the editor\nwindow and come back (on the same browser and computer), and the\neditor application will offer to restore your work.</p>\n",
|
||||
"html": "<p>This editor is designed to work primarily online, and you're accessing\nit through a website right now.</p>\n<h3>Selecting Features</h3>\n<p>To select a map feature, like a road or point of interest, simply single-click\non it on the map. This will highlight the selected feature, show a panel of\ndetails, and also show a menu of things you can do with the feature.</p>\n<p>Multiple features can be selected by holding the 'Shift' key, clicking,\nand dragging on the map. This will select all features within the box\nthat's drawn, and you can do certain 'batch operations' on all features.</p>\n<h3>Saving Edits</h3>\n<p>When you create changes, like editing roads, buildings, and places, these are\nstored locally until you save them to the server. Don't worry if you make\na mistake - you can undo changes by clicking the undo button, and redo\nchanges by clicking the redo button.</p>\n<p>Click 'Save' to finish a group of edits - for instance, if you've completed\nan area of town and would like to start on a new area. You'll have a chance\nto review what you've done, and the editor supplies helpful suggestions\nand warnings if something doesn't seem right about the changes.</p>\n<p>Clicking 'Save' again, on the new dialog, will post the changes\nto <a href=\"http://www.openstreetmap.org/\">OpenStreetMap.org</a>, where they are visible\nto all other users and available for others to build and improve upon.</p>\n<p>If you can't finish your edits in one sitting, you can leave the editor\nwindow and come back (on the same browser and computer), and the\neditor application will offer to restore your work.</p>\n",
|
||||
"title": "Editing & Saving"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
This editor is designed to work primarily online, and you're accessing
|
||||
it through a website right now.
|
||||
|
||||
## Selecting Features
|
||||
### Selecting Features
|
||||
|
||||
To select a map feature, like a road or point of interest, simply single-click
|
||||
on it on the map. This will highlight the selected feature, show a panel of
|
||||
@@ -13,7 +13,7 @@ Multiple features can be selected by holding the 'Shift' key, clicking,
|
||||
and dragging on the map. This will select all features within the box
|
||||
that's drawn, and you can do certain 'batch operations' on all features.
|
||||
|
||||
## Saving Edits
|
||||
### Saving Edits
|
||||
|
||||
When you create changes, like editing roads, buildings, and places, these are
|
||||
stored locally until you save them to the server. Don't worry if you make
|
||||
|
||||
+9
-8
@@ -49,19 +49,20 @@ iD.ui.Help = function(context) {
|
||||
setVisible(!button.classed('active'));
|
||||
}
|
||||
|
||||
function blockClick() {
|
||||
pane.on('mousedown.help-inside', function() {
|
||||
return d3.event.stopPropagation();
|
||||
});
|
||||
selection.on('mousedown.help-inside', function() {
|
||||
return d3.event.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
function setVisible(show) {
|
||||
if (show !== shown) {
|
||||
button.classed('active', show);
|
||||
shown = show;
|
||||
if (show) {
|
||||
function blockClick() {
|
||||
pane.on('mousedown.help-inside', function() {
|
||||
return d3.event.stopPropagation();
|
||||
});
|
||||
selection.on('mousedown.help-inside', function() {
|
||||
return d3.event.stopPropagation();
|
||||
});
|
||||
}
|
||||
pane.style('display', 'block')
|
||||
.style('left', '-500px')
|
||||
.transition()
|
||||
|
||||
Reference in New Issue
Block a user