Advertisement
bah99

tinyows.html

Nov 28th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.84 KB | Software | 0 0
  1. <html>
  2. <head>
  3.   <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  4.   <link rel="stylesheet" href="./OpenLayers-2.13.1/theme/default/style.css" type="text/css" />
  5.   <link rel="stylesheet" href="./OpenLayers-2.13.1/examples/style.css" type="text/css" />
  6.   <script src="./OpenLayers-2.13.1/lib/OpenLayers.js"></script>
  7.   <style>
  8.       #map {
  9.           width: 800px;
  10.           height: 500px;
  11.           float: left;
  12.           border: 1px solid #ccc;
  13.       }
  14.       #message {
  15.           position: relative;
  16.           left: 5px;
  17.       }
  18.       #docs {
  19.           float: left;
  20.       }
  21.       .customEditingToolbar {
  22.           float: right;
  23.           right: 0px;
  24.           height: 30px;
  25.           width: 200px;
  26.       }
  27.       .customEditingToolbar div {
  28.           float: right;
  29.           margin: 5px;
  30.           width: 24px;
  31.           height: 24px;
  32.       }
  33.       .olControlNavigationItemActive {
  34.           background-image: url("./OpenLayers-2.13.1/theme/default/img/editing_tool_bar.png");
  35.           background-repeat: no-repeat;
  36.           background-position: -103px -23px;
  37.       }
  38.       .olControlNavigationItemInactive {
  39.           background-image: url("./OpenLayers-2.13.1/theme/default/img/editing_tool_bar.png");
  40.           background-repeat: no-repeat;
  41.           background-position: -103px -0px;
  42.       }
  43.       .olControlDrawFeaturePolygonItemInactive {
  44.           background-image: url("./OpenLayers-2.13.1/theme/default/img/editing_tool_bar.png");
  45.           background-repeat: no-repeat;
  46.           background-position: -26px 0px;
  47.       }
  48.       .olControlDrawFeaturePolygonItemActive {
  49.           background-image: url("./OpenLayers-2.13.1/theme/default/img/editing_tool_bar.png");
  50.           background-repeat: no-repeat;
  51.           background-position: -26px -23px ;
  52.       }
  53.       .olControlModifyFeatureItemActive {
  54.           background-image: url(./OpenLayers-2.13.1/theme/default/img/move_feature_on.png);
  55.           background-repeat: no-repeat;
  56.           background-position: 0px 1px;
  57.       }
  58.       .olControlModifyFeatureItemInactive {
  59.           background-image: url(./OpenLayers-2.13.1/theme/default/img/move_feature_off.png);
  60.           background-repeat: no-repeat;
  61.           background-position: 0px 1px;
  62.       }
  63.       .olControlDeleteFeatureItemActive {
  64.           background-image: url(./OpenLayers-2.13.1/theme/default/img/remove_point_on.png);
  65.           background-repeat: no-repeat;
  66.           background-position: 0px 1px;
  67.       }
  68.       .olControlDeleteFeatureItemInactive {
  69.           background-image: url(./OpenLayers-2.13.1/theme/default/img/remove_point_off.png);
  70.           background-repeat: no-repeat;
  71.           background-position: 0px 1px;
  72.       }
  73.   </style>
  74.   <script src="tinyows.js"></script>
  75.   </head>
  76.   <body onload="init()">
  77.       <h1 id="title">WFS Transaction Example, (TinyOWS and OpenLayers)</h1>
  78.       <div id="tags"></div>
  79.       <p id="shortdesc">
  80.           Shows the use of the WFS Transactions (WFS-T).
  81.           Parks of Osnabruck (Frida).
  82.       <br />
  83.           Base layers is OpenStreetMap from Omniscale WMS Server.
  84.       </p>
  85.       <div id="map"></div>
  86.  
  87.       <div id="message"></div>
  88.       <div id="docs">
  89.           <p>
  90.               The WFS protocol allows for creation of new features and
  91.               reading, updating, or deleting of existing features.
  92.           </p>
  93.           <p>
  94.               Use the tools to create, modify, and delete (in order from left
  95.               to right) features. Use the save tool (picture of a disk) to
  96.               save your changes. Use the navigation tool (hand) to stop
  97.               editing and use the mouse for map navigation.
  98.           </p>
  99.           <p>
  100.               See the <a href="tinyows.js" target="_blank">
  101.               wfs-protocol-transactions.js source</a> to see how this is done.
  102.           </p>
  103.       </div>
  104.   </body>
  105. </html>
Tags: tinyows
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement