Skip to content

Instantly share code, notes, and snippets.

@karlbenedict
Last active August 29, 2015 14:00
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/94008770ee2d1a77eb0b to your computer and use it in GitHub Desktop.
Save karlbenedict/94008770ee2d1a77eb0b to your computer and use it in GitHub Desktop.
OpenLayers - USGS National Atlas - Counties WMS
// from USGS National Atlas: http://webservices.nationalatlas.gov/wms/boundaries?SERVICE=WMS&REQUEST=GetCapabilities
countiesLayer = new OpenLayers.Layer.WMS(
"US Counties",
"http://webservices.nationalatlas.gov/wms?",
{layers: "counties", version: '1.3.0', transparent: 'TRUE'},
{isBaseLayer: false, visibility: false, opacity: .8}
);
map.addLayer(countiesLayer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment