Skip to content

Instantly share code, notes, and snippets.

@karlbenedict
Last active August 29, 2015 14:00
Show Gist options
  • Save karlbenedict/bbcaa28bd54746520380 to your computer and use it in GitHub Desktop.
Save karlbenedict/bbcaa28bd54746520380 to your computer and use it in GitHub Desktop.
OpenLayers - USGS Topographic WMS (Basemap)
// from http://basemap.nationalmap.gov/ArcGIS/services/USGSImageryTopo/MapServer/WMSServer?request=GetCapabilities&service=WMS
usImagery = new OpenLayers.Layer.WMS(
"US Imagery Tile Service - USGS",
"http://basemap.nationalmap.gov/arcgis/services/USGSImageryTopo/MapServer/WmsServer?",
{layers: "0", version: '1.3.0', transparent: 'TRUE'},
{isBaseLayer: true}
);
map.addLayer(usImagery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment