This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
forked from Geonovum/pdokkaart
-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
392 lines (387 loc) · 25.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0" />
<meta name="keywords" content="pdok,kaart,wizard" />
<meta name="description" content="" />
<title>PDOK Kaartwizard</title>
<link rel="stylesheet" href="css/rijkshuisstijl/screen.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/rijkshuisstijl/print.css" type="text/css" media="print" />
<link rel="stylesheet" href="css/rijkshuisstijl/toevoeging.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/rijkshuisstijl/iconids.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="api/js/OpenLayers.js"></script>
<script type="text/javascript" src="api/js/proj4js-compressed.js"></script>
<script type="text/javascript" src="api/js/pdok-api.js"></script>
<script type="text/javascript" src="api/js/geozetlib.js"></script>
<script type="text/javascript" src="js/wizard.js"></script>
<link rel="icon" href="img/favicon.ico" type="image/x-icon"/>
<link rel="apple-touch-icon" sizes="57x57" href="img/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="img/manifest.json">
<link rel="mask-icon" href="img/safari-pinned-tab.svg" color="#f58520">
<meta name="apple-mobile-web-app-title" content="PDOK Kaartwizard">
<meta name="application-name" content="PDOK Kaartwizard">
<meta name="msapplication-TileColor" content="#f58520">
<meta name="msapplication-TileImage" content="img/mstile-144x144.png">
<meta name="theme-color" content="#f58520">
<!--
NOT including this one, as they are included anyway when there is not a 'markersdef' or 'layersdef'
query-parameter found. Including this one will (again) override the styles objects
<script type="text/javascript" src="api/js/pdok-markers.js"></script>
<script type="text/javascript" src="api/js/pdok-layers.js"></script>-->
<script type="text/javascript">
if (document.all && !document.querySelector) { // IE7 or lower
alert('U gebruikt Internet Explorer 7.\nDeze browser ondersteunt niet alle functionaliteit van de PDOK Wizard.\nWij raden U aan een nieuwere versie van Internet Explorer of een andere browser zoals Google Chrome, Mozilla FireFox of Apple Safari te gebruiken.');
}
Pdok.addcss("../api/styles/default/style.css");
Pdok.addcss("../api/styles/api.css");
Pdok.ApiUrl = '../api';
OpenLayers.ImgPath = '../api/img/';
var config = {
"zoom": 3,
"loc": "170000, 470000",
"baselayers": [{"id": "BRT", "visible": true},
{"id": "LUFO", "visible": false}
],
"showlayerswitcher": true,
"showzoom": true,
"navigation": true,
"showscaleline": true,
"showmouseposition": true
};
var api;
Pdok.ready(function() {
api = new Pdok.Api(config);
$('input:radio[name=mapsize]')[2].checked = true;
// popups and selectionControl of Api interfears with modifyFeatureControl
// we disable them while we find out how to handle this
// TODO handle this ...
//api.disablePopups();
//api.selectControl.deactivate();
// for convenience reasons to reuse the OpenLayers Map object from the API, set it to a global object
mapPDOKKaart = api.getMapObject();
markers = api.featuresLayer;
createOnClickEvents();
createSearchLogic();
createStyleSelector();
createEditAttributes();
createPdokLayers();
createLocationToolLogic();
createMarkersLogic();
$('#step3 input:text').val('');
autoPopulateInputs();
// show geocoder/search in the wizard
api.activateGeocoder({div:'wizardsearch'});
// not sure if we want this here
api.map.events.register("moveend", api, createApiLinksAndCode);
setGuiToApiState(api);
});
</script>
<script>
var _prum = [['id', '5a1432ac9c55531b6f8dda08'],
['mark', 'firstbyte', (new Date()).getTime()]];
(function() {
var s = document.getElementsByTagName('script')[0]
, p = document.createElement('script');
p.async = 'async';
p.src = '//rum-static.pingdom.net/prum.min.js';
s.parentNode.insertBefore(p, s);
})();
</script>
</head>
<body>
<div class="container equalize page orange default">
<div class="header">
<span></span>
<div class="branding">
<img alt="PDOK" src="img/pdok-logo-2018.png" />
<h1 class="invisible">PDOK Kaart Wizard</h1>
</div>
<div class="nav_bar">
<ul class="nav_main">
<li class="sel">
<a class="active" href="./">Home</a>
</li>
<li>
<a href="./help.html">Help</a>
</li>
</ul>
</div>
</div>
<div class="content_wrapper1">
<div class="content_wrapper2">
<div id="content">
<div id="map" class="olMap big"></div>
<div id="wizardsearch" class="stepwrapper active"></div>
<!-- Step 1 - Your map -->
<div id="step1" class="stepwrapper active">
<h2>
<a id="goto1" >Stap 1: De kaart</a>
<span class="help">
<a href="help.html#help1" target="help">Help</a>
</span>
</h2>
<form action="#">
<div class="row">
<p>Pas een bestaande configuratie aan:</p>
URL van geconfigureerde kaart:<br />
<input type="text" id="pdokkaartUrl" class="autopopulate default" title="bijv: https://kaart.pdok.nl/api/api.html?mloc=150000,450000&mt=mt3&loc=150000,450000&zoom=10&tekst=Locatie:</BR>150000,450000" size="30" /><br />
<button id="getpdokkaarturl" class="filterbutton">Haal op</button>
<p>Selecteer een kaartgrootte:</p>
<div class="row">
<input type="radio" name="mapsize" id="mapsize1" value="small" />
<label for="mapsize1"> Klein (300x250 pixels)</label>
</div>
<div class="row">
<input type="radio" name="mapsize" id="mapsize2" value="medium" checked="checked" />
<label for="mapsize2"> Middel (400x350 pixels)</label>
</div>
<div class="row">
<input type="radio" name="mapsize" id="mapsize3" value="large" checked="checked" />
<label for="mapsize3"> Groot (550x440 pixels)</label>
</div>
<p>Selecteer de gewenste functies:</p>
<div class="row">
<input type="checkbox" name="maplayerswitcher" id="maplayerswitcher" checked="checked" />
<label for="maplayerswitcher"> Toon knop kaartlagen</label>
</div>
<div class="row">
<input type="checkbox" name="mapzoom" id="mapzoom" checked="checked" />
<label for="mapzoom"> Toon zoom knoppen [ + - ]</label>
</div>
<div class="row">
<input type="checkbox" name="mapnavigation" id="mapnavigation" checked="checked" />
<label for="mapnavigation"> Kaart kan worden verschoven (navigatie)</label>
</div>
<div class="row">
<input type="checkbox" name="mapscaleline" id="mapscaleline" checked="checked" />
<label for="mapscaleline"> Toon schaalbalk</label>
</div>
<div class="row">
<input type="checkbox" name="mapmouseposition" id="mapmouseposition" checked="checked" />
<label for="mapmouseposition"> Toon coördinaten</label>
</div>
<div class="row">
<input type="checkbox" name="mapsearch" id="mapsearch" />
<label for="mapsearch"> Toon zoekfunctie in de kaart</label>
</div>
</div>
</form>
</div>
<!-- Step 2 - Add markers -->
<div id="step2" class="stepwrapper">
<h2>
<a id="goto2">Stap 2: Markers</a>
<span class="help">
<a href="help.html#help2" target="help">Help</a>
</span>
</h2>
<form action="#" name="editmarkers" id="editmarkers">
<div>
<!-- add markers via map -->
<div class="row">
<label>
<input type="radio" name="editmarkers" id="addfeatures" value="addfeatures"/>
Voeg een marker toe
</label>
</div>
<div id="addviamap">
<div id="addviamap2" class="row">Selecteer een symbool uit de lijst en klik op de kaart</div>
<div id="edit2" class="row">
<!-- used for the style selector -->
</div>
<div id="edit2a" class="row">
<!-- used for editing of description and title -->
</div>
</div>
<!-- edit markers via map -->
<div id="edit3" class="row">
<label>
<input type="radio" name="editmarkers" id="editfeatures" value="editfeatures"/>
Wijzig een marker
</label>
</div>
<div class="row" id="editviamap">Selecteer een marker op de kaart en wijzig de tekst, verplaats of verwijder de marker</div>
<!-- add markers via url or text string -->
<div id="edit4" class="row">
<label>
<input type="radio" name="editmarkers" id="externalfeatures" value="externalfeatures"/>
Markers uit url, bestand of tekst
</label>
<br />
</div>
<div id="addviaurltxt">
<p><strong>Via URL</strong> Kies datatype, en geef de URL waar het bestand met markerdefinities zich bevindt klik dan "Haal op ":</p>
<label><input type="radio" checked="checked" name="urltype" value="kml"/>KML</label>
<label><input type="radio" name="urltype" value="txt"/>TXT</label>
<input type="text" id="urltext" class="autopopulate default" title="Voer een volledige url in (startend met http:// of https://)"/>
<button id="getfeaturesfromurl" class="filterbutton">Haal op</button>
<br />
<p><strong>Via Copy/Paste</strong> Kies datatype, kopieer de markers als tekst in het onderstaande tekstveld en kies voor "Opslaan":</p>
<label><input type="radio" name="txttype" value="kml"/>KML</label>
<label><input type="radio" checked="checked" name="txttype" value="txt"/>TXT</label>
<!--
<textarea id="copypaste" class="autopopulate default" rows="10" cols="10" title="TXT voorbeeld:
# LET OP: eerst Y dan X (latlon!!)
point title description
517000,17960 naam en omschrijving"></textarea>
-->
<textarea id="copypaste" class="autopopulate default" rows="10" cols="10" title=""></textarea>
<button id="getfeaturesfromtxt" class="filterbutton">Opslaan</button>
</div>
</div>
</form>
</div>
<!-- Step 4 optie -->
<div id="step3" class="stepwrapper">
<h2>
<a href="#" id="goto3">Optie: Extra kaartlaag toevoegen</a>
<span class="help">
<a href="help.html#help3" target="help">Help</a>
</span>
</h2>
<form action="#">
<h3>Voeg een standaard kaartlaag toe</h3><div id="divpdoklayerselector"> </div>
<button id="addpdoklayerbutton" class="filterbutton" >Voeg toe aan kaart</button><h3>Voeg een WMS kaartlaag toe</h3>
URL van de WMS:<br />
<input type="text" id="wmsUrl" class="autopopulate default" title="bijv: https://geodata.nationaalgeoregister.nl/bevolkingskernen2008/wms" size="30" /><br />
Lagen van de WMS:<br />
<input type="text" id="wmsLayer" class="autopopulate default" title="bijv: provgrens_generalisatie_2008" size="30"/><br/>
Featureinfo-formaat van deze WMS (optioneel)<br />
<select id="wmsInfoFormat">
<option value="none" selected="selected">Geen feature info</option>
<option value="text/html">html (text/html)</option>
<option value="text/plain">text (text/plain)</option>
</select>
<button id="addwmslayerbutton" class="filterbutton" >Voeg toe aan kaart</button>
<h3>Voeg een WMTS kaartlaag toe</h3>
URL van de WMTS:<br />
<input type="text" id="WmtsUrl" class="autopopulate default" title="bijv: https://geodata.nationaalgeoregister.nl/wmts/" size="30" /><br />
Laagnaam van de WMTS:<br />
<input type="text" id="WmtsLayer" class="autopopulate default" title="bijv: natura2000" size="30" /><br/>
Matrixset van de WMTS:<br />
<input type="text" id="WmtsMatrix" class="autopopulate default" title="bijv: EPSG:28992" size="30" /><br/>
<button id="addwmtslayerbutton" class="filterbutton" >Voeg toe aan kaart</button>
<button id="deletelayers" class="filterbutton" ><span>Verwijder alle lagen</span></button>
</form>
</div>
<!-- Step 5 optie -->
<div id="step4" class="stepwrapper">
<h2>
<a href="#" id="goto4">Optie: Kaartprikker functionaliteit toevoegen</a>
<span class="help">
<a href="help.html#help4" target="help">Help</a>
</span>
</h2>
<form id="locationtoolform" action="#">
<div class="row">
<p>Selecteer een tekenobject en vul de veldnaam in waar de waarde ingezet moet worden</p>
</div>
<div class="row">
<label><input type="radio" name="locationtoolstyle" id="none" value="mt0" checked="checked" />
geen
</label>
<br />
<label><input type="radio" name="locationtoolstyle" id="pointxy" value="mt0"/>
punt (xy)
</label>
<label><input type="radio" name="locationtoolstyle" id="point" value="mt0"/>
punt (wkt)
</label>
<label><input type="radio" name="locationtoolstyle" id="line" value="lt0"/>
lijn (wkt)
</label>
<label><input type="radio" name="locationtoolstyle" id="polygon" value="pt0"/>
vlak (wkt)
</label>
</div>
<div id="locationtoolfield" class="row">
<label id="wktfield" >Veldnaam (wkt): <input type="text" value="wkt" /></label>
<label id="xfield" >X-coordinaat: <input type="text" value="x" /></label><br/>
<label id="yfield" >Y-coordinaat: <input type="text" value="y" /></label><br/>
<label id="urlfield" >Url veldnaam: <input type="text" value="url" /></label><br/>
</div>
<div id="locationtoolzooms" >
<div class="row">
Geef aan vanaf en tot welk niveau de kaartprikker gebruikt mag worden
</div>
<div class="row">
<label>
Kaartprikker mogelijk vanaf zoom niveau:
<select id="zmin"><option value="0">0</option><option value="1">1</option><option value="2" selected="selected">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option></select>
</label>
</div>
<div class="row">
<label>
Kaartprikker mogelijk tot en met zoom niveau:
<select id="zmax"><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14" selected="selected">14</option></select>
</label>
</div>
</div>
</form>
</div>
<!-- Step 6 - Save and download code -->
<div id="step5" class="stepwrapper">
<h2>
<a id="goto5" >Stap 3: Genereer
code</a>
<span class="help">
<a href="help.html#help5" target="help">Help</a>
</span>
</h2>
<form action="#" name="savecode" id="savecode">
<div class="row_right">
<div id="generated_url">
<p><strong>Als URL</strong></p>
<textarea id="generated_url_to_long_message" rows="4" cols="10"></textarea>
<div id="kml_url_service">
<a href="#" id="kmlservicelink" target="_blank">KML opslagservice</a> (Sla KML op en vervang door KML-url)
</div>
<a href="#" id="apilink1" target="_blank">Link</a> losse kaart:
<input type="text" value="" id="apilink2" />
<a href="#" id="apilink3"><img src="img/email.png" alt="Verstuur link per email" title="Verstuur link per email" /></a>
<br/>Embed HTML iframe:
<input type="text" value="" id="embedhtmliframe" />
<br/>Embed HTML Object tag:<br />
<input type="text" value="" id="embedhtmlobject" />
</div>
</div>
<div id="generated_html">
<p><strong>Als broncode</strong></p>
In de HTML plaatsen:
<textarea id="scriptcodeBody"></textarea>
</div>
<div id="generated_kml">
<p><strong>Features als KML <span id="download_kml_span">(of <a id="download_kml" href="">download</a>)</span></strong></p>
<textarea id="featuresKML"></textarea>
</div>
</form>
</div>
</div>
<div class="stepwrapper">
<div class="row">
<button id="opties" class="filterbutton" value="Meer opties">
<span>Meer opties</span>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>