Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <script type="text/javascript">
  2.  
  3. // Add the WMS
  4. var layer = new OpenLayers.Layer.WMS(
  5. "WMS",
  6. "http://localhost:80803geoserver/thesis/wms",
  7. {
  8. LAYERS: 'thesis:ensch',transparent: true
  9. },
  10. {
  11. singleTile:true,
  12. isBaseLayer: false
  13. }
  14. );
  15. map.addLayer(layer);
  16.  
  17. // Center the map
  18. map.setCenter(new OpenLayers.LonLat(52.222, 6.893);
  19.  
  20. }
  21.  
  22. </script>
  23. </head>
  24. <body onload="init()">
  25.  
  26. <div id="map"></div>
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement