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/b5e4c377dea4686c1975 to your computer and use it in GitHub Desktop.
Save karlbenedict/b5e4c377dea4686c1975 to your computer and use it in GitHub Desktop.
OpenLayers - USGS Global Countries Labels WMS
// from http://services.nationalmap.gov/ArcGIS/services/TNM_Blank_US/MapServer/WMSServer?request=GetCapabilities&service=WMS
globalLabelsLayer = new OpenLayers.Layer.WMS(
"Global Labels",
"http://services.nationalmap.gov/arcgis/services/TNM_Blank_US/MapServer/WmsServer?",
{layers: "12,19,26", version: '1.3.0', transparent: 'TRUE'},
{isBaseLayer: false, singleTile: true, visibility: false}
);
map.addLayer(globalLabelsLayer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment