diff options
Diffstat (limited to 'misc/openlayers/examples/donut.html')
-rw-r--r-- | misc/openlayers/examples/donut.html | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/misc/openlayers/examples/donut.html b/misc/openlayers/examples/donut.html new file mode 100644 index 0000000..4142b75 --- /dev/null +++ b/misc/openlayers/examples/donut.html @@ -0,0 +1,62 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> + <meta name="apple-mobile-web-app-capable" content="yes"> + <title>OpenLayers Polygon Hole Digitizing</title> + <link rel="stylesheet" href="../theme/default/style.css" type="text/css"> + <link rel="stylesheet" href="style.css" type="text/css"> + <style> + #controlToggle li { + list-style: none; + } + .olControlAttribution { + font-size: 9px; + bottom: 2px; + } + #output { + margin: 1em; + font-size: 0.9em; + } + </style> + </head> + <body> + <h1 id="title">Drawing Holes in Polygons</h1> + <div id="tags"> + draw polygon hole + </div> + <p id="shortdesc"> + The DrawFeature control can be used to digitize donut polygons. + </p> + + <div id="map" class="smallmap"></div> + <ul id="controlToggle"> + <li> + <input type="radio" name="type" value="none" id="noneToggle" + onclick="toggleControl(this);" checked="checked"> + <label for="noneToggle">navigate</label> + </li> + <li> + <input type="radio" name="type" value="polygon" id="polygonToggle" onclick="toggleControl(this);"> + <label for="polygonToggle">draw polygon</label> + </li> + </ul> + <div id="output"></div> + <div id="docs"> + <p> + To digitize holes in polygons, hold down the <code>Alt</code> + key and draw over an existing polygon. By default, the + <code>Shift</code> key triggers freehand drawing. Use a + combination of the <code>Shift</code> and <code>Alt</code> keys + to digitize holes in freehand mode. + </p> + <p> + See the <a href="donut.js" target="_blank"> + donut.js source</a> for details on how this is done. + </p> + </div> + <script src="../lib/OpenLayers.js"></script> + <script src="donut.js"></script> + </body> +</html> |