Guest User

PDOK Kaart - KML Markers Test

a guest
Feb 12th, 2018
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript" src="https://kaart.pdok.nl/api/js/OpenLayers.js"></script>
  2. <script type="text/javascript" src="https://kaart.pdok.nl/api/js/proj4js-compressed.js"></script>
  3. <script type="text/javascript" src="https://kaart.pdok.nl/api/js/pdok-api.js"></script>
  4. <script type="text/javascript" src="https://kaart.pdok.nl/api/js/geozetlib.js"></script>
  5. <script type="text/javascript" src="https://kaart.pdok.nl/api/js/pdok-markers.js"></script>
  6. <script type="text/javascript" src="https://kaart.pdok.nl/api/js/pdok-layers.js"></script>
  7. <script type="text/javascript">
  8. Pdok.addcss("https://kaart.pdok.nl/api/styles/default/style.css");
  9. Pdok.addcss("https://kaart.pdok.nl/api/styles/api.css");
  10. var config_376={
  11.   "mapdiv": "map_376",
  12.   "zoom": 8,
  13.   "showscaleline": true,
  14.   "showmouseposition": true,
  15.   "loc": "191809.67255549, 447348.03678235",
  16.   "baselayers": [
  17.     {
  18.       "id": "BRT",
  19.       "visible": true
  20.     },
  21.     {
  22.       "id": "LUFO",
  23.       "visible": false
  24.     }
  25.   ],
  26.   "markersdef": "https://kaart.pdok.nl/api/js/pdok-markers.js",
  27.   "layersdef": "https://kaart.pdok.nl/api/js/pdok-layers.js",
  28.   "features": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><kml xmlns=\"http://earth.google.com/kml/2.2\"><Document><name>null</name><description>null</description><Folder><Placemark><name>Test</name><description>Test</description><Point><coordinates>5.9133911147597615,51.993269355428104</coordinates></Point></Placemark><Placemark><name>Test 1</name><description>Test 1</description><Point><coordinates>5.923391114760895,52.01326935542907</coordinates></Point></Placemark><Placemark><name>Test 2</name><description>Test 2</description><Point><coordinates>5.933391114762059,52.03326935543006</coordinates></Point></Placemark></Folder></Document></kml>"
  29. };
  30. var api_376;
  31. Pdok.ready(
  32. function(){
  33. api_376 = new Pdok.Api(config_376);
  34. } );
  35. </script>
  36. <div id="map_376" class="olMap big"></div>
RAW Paste Data