Database Reference
In-Depth Information
// set the Google layers
var google_hyb = new
OpenLayers.Layer.Google(
"Google Hybrid",
{type: google.maps.MapTypeId.HYBRID,
numZoomLevels: 20}
);
var google_ter = new
OpenLayers.Layer.Google(
"Google Terrain",
{type: google.maps.MapTypeId.TERRAIN}
);
6. SettwovariablesfortheWMSGeoServerandtheMapServerURLthatyou
willuse(theyaretheURLsoftheservicesyoucreatedinthefirsttworecipes
of this chapter).
• For Linux, add the following code:
// set the WMS
var geoserver_url =
"http://localhost:8080/geoserver/
wms";
var mapserver_url =
http://localhost/cgi-bin/
mapserv?map=/var/www/data/
countries.map&
• For Windows, add the following code:
// set the WMS
var geoserver_url =
"http://localhost:8080/geoserver/
wms";
var mapserver_url =
"http://localhost/cgi-bin/
mapserv.exe?map=C:\\ms4w\\Apache\\htdocs\\countries.map&"
Search WWH ::




Custom Search