Created
May 1, 2014 17:10
-
-
Save karlbenedict/3b39399e1625ada027fb to your computer and use it in GitHub Desktop.
OpenLayers - USGS Global Countries and Oceans WMS Layer (Basemap)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from http://services.nationalmap.gov/ArcGIS/services/TNM_Blank_US/MapServer/WMSServer?request=GetCapabilities&service=WMS | |
countriesLayer = new OpenLayers.Layer.WMS( | |
"Global Countries and Oceans", | |
"http://services.nationalmap.gov/arcgis/services/TNM_Blank_US/MapServer/WmsServer?", | |
{layers: "2,3,5,8,9,11,15,16,18,22,23,25", version: '1.3.0', transparent: 'TRUE'}, | |
{isBaseLayer: true} | |
); | |
map.addLayer(countriesLayer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment