Skip to content

Instantly share code, notes, and snippets.

@karlbenedict
Created May 1, 2014 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlbenedict/3b39399e1625ada027fb to your computer and use it in GitHub Desktop.
Save karlbenedict/3b39399e1625ada027fb to your computer and use it in GitHub Desktop.
OpenLayers - USGS Global Countries and Oceans WMS Layer (Basemap)
// 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