it:ad:openlayers:home

IT:AD:JScript:Libs:OpenLayers

A Map is created, on which Layers are surplanted. Layers can be BaseLayer or Not. Most times BaseLayer = base Raster/Image. On the image base layer, other layers are overlayed, of type,

x

<html>
  <head>
     <title>OpenLayers Example</title>
     <script src="http://openlayers.org/api/OpenLayers.js"></script>
     <script defer="defer" type="text/javascript">
      var map = new OpenLayers.Map('map');
      var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
      map.addLayer(wms);
      map.zoomToMaxExtent();
     </script>
   </head>
  <body>
    <callout icon="true" type="style="width:100%; height:100%" id="map""></callout>
  </body>
</html>
  • /home/skysigal/public_html/data/pages/it/ad/openlayers/home.txt
  • Last modified: 2023/11/04 03:28
  • by 127.0.0.1