National Map Logo

The National Map - Demo Examples

The following examples demonstrate usage of The National Map services in other APIs.

Alternate Views

  1. USGS Topo in Google Maps - USGS Topo REST service from The National Map rendered with the Google Maps API.
  2. USGS Topo in Leaflet - USGS Topo REST service from The National Map rendered with the Leaflet API.
  3. USGS Topo in OpenLayers 2 - USGS Topo REST service from The National Map rendered with the OpenLayers 2.11 API.
  4. TNM Transportation in Google Earth - opens a .kmz file to demonstrate the Transportation REST service from The National Map rendered in the Google Earth application, which would need to be previously downloaded and installed by the user.
  5. TNM Base Maps in OpenLayers 3 Mobile - A simple mobile-capable viewer for our five Base Maps (including corresponding large-scale dynamic WMS services) with Geolocation enabled by clicking on the 'L' icon within the OpenLayers 3 map view.
  6. TNM NLCD Overlays and Point Query Service (PQS) Leaflet example - Shows Leaflet example of calling 2011 NLCD WMS layers as overlays. Also includes an example of calling the NED Point Query Service (PQS) with a mouse click.
  7. Elevation Profiling Tool in Leaflet example - Shows an example of retrieving the elevation value of each vertex from the NED Point Query Service (PQS) as a line is drawn. The elevation values are displayed in a table with an optional profile graph.
  8. Arctic SDI
  9. ESRI Example - One-page ESRI Javascript API Example
  10. Leaflet Example - One-page Leaflet Javascript API Example
  11. OpenLayers 3 Example - One-page OpenLayers 3 Javascript API Example


  1. Services List - shows all service endpoints used in The National Map Viewer to include base maps, base data layers, natural hazards, and other featured data. Base data layer services support the eight primary themes of Elevation, Geographic Names, Governmental Unit Boundaries, Hydrography, Land Cover, Orthoimagery, Structures, and Transportation.
  2. Service Legends - displays legend icons for selected Esri ArcGIS map services to include services used by The National Map Viewer.


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo logo U.S. Department of the Interior | U.S. Geological Survey
Page Contact Information: The National Map Help Desk
Page Last Modified: