The National Map - Demo Examples
The following examples demonstrate usage of The National Map services in other APIs.
USGS Topo in Google Maps - USGS Topo REST service from The National Map rendered with the Google Maps API.
USGS Topo in Leaflet - USGS Topo REST service from The National Map rendered with the Leaflet API.
USGS Topo in OpenLayers 2 - USGS Topo REST service from The National Map rendered with the OpenLayers 2.11 API.
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.
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.
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.
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.
- 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.
- Service Legends - displays legend icons for selected Esri ArcGIS map services to include services used by The National Map Viewer.