National Map Logo

The National Map - API Examples Demos

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

  1. USGS Topo in Leaflet - USGS Topo REST service from The National Map rendered with the Leaflet API.
  2. USGS Topo in OpenLayers 2 - USGS Topo REST service from The National Map rendered with the OpenLayers 2.13 API.
  3. 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.
  4. 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.
  5. TNM NLCD Overlays and Elevation Point Query Service (EPQS) Leaflet Example - Shows Leaflet example of calling 2011 NLCD WMS layers as overlays. Also includes an example of calling the EPQS with a mouse click.
  6. Elevation Profiling Tool in Leaflet Example - Shows an example of retrieving the elevation value of each vertex from the Elevation Point Query Service (EPQS) as a line is drawn. The elevation values are displayed in a table with an optional profile graph.
  7. Arctic SDI
  8. ESRI Example - One-page ESRI Javascript API Example
  9. Leaflet Example - One-page Leaflet Javascript API Example
  10. OpenLayers 3 Example - One-page OpenLayers 3 Javascript API Example

 

Accessibility FOIA Privacy Policies and Notices

USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL:
Page Contact Information: The National Map
Page Last Modified: