Separate test example from modify example

This commit is contained in:
Tim Schaub
2014-03-20 12:18:17 -06:00
parent 185a655cdd
commit 1b4aa63673
4 changed files with 313 additions and 246 deletions

View File

@@ -26,10 +26,6 @@
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
<select id="layer-select">
<option selected>Test data</option>
<option>RealData (topology)</option>
</select>
</div>
</div>
@@ -37,9 +33,9 @@
<div class="span12">
<h4 id="title">Modify features example</h4>
<p id="shortdesc">Example of using the Modify interaction.</p>
<p id="shortdesc">Editing features with the modify interaction.</p>
<div id="docs">
<p>Select a feature on the <b>Test&nbsp;Data</b> layer and drag the circle that appears when the cursor gets close to the selected geometry. On the <b>Real&nbsp;data&nbsp;(topology)</b> layer, editing adjacent countries that are selected preserves the topology.</p>
<p>This example demonstrates how the modify and select interactions can be used together. Zoom in to an area of interest and select a feature for editing. Then drag points around to modify the feature. You can preserve topology by selecting multiple features before editing (<code>Shift</code>+click to select multiple features).</p>
<p>See the <a href="modify-features.js" target="_blank">modify-features.js source</a> to see how this is done.</p>
</div>
<div id="tags">modify, edit, vector</div>