I'm trying to acesses with OpenLayers code an example of the embedded GeoServer map (the map of tasmania), which acts as a local server on my machine. However, every time I open the .html, the map appears blank.
Below is the code:
body { margin: 1em; } #map { width: 500px; height: 375px; border: 1px solid black; } WMS Example
wms, layer, singletile
Shows the basic use of openlayers using a WMS layer
This is an example of how to add an WMS layer to the OpenLayers window. The images are tiled in this instance. If you wanted to not use a tiled WMS, "singleTile" option to true like shown in this example.
Did I forget any detail? The form of access to GeoServer is correct?
أكثر...
Below is the code:
body { margin: 1em; } #map { width: 500px; height: 375px; border: 1px solid black; } WMS Example
wms, layer, singletile
Shows the basic use of openlayers using a WMS layer
This is an example of how to add an WMS layer to the OpenLayers window. The images are tiled in this instance. If you wanted to not use a tiled WMS, "singleTile" option to true like shown in this example.
Did I forget any detail? The form of access to GeoServer is correct?
أكثر...