Crater Lake National Park


Digital maps for the National Park Service

JSON Layer

This example shows how you can easily add a JSON layer to an NPMap web map. When you add a JSON layer to an NPMap web map, you get basic display and identify support, along with integration with the route module, out of the box.


Related resources:



<!DOCTYPE html>
    <meta charset="utf-8">
    <div id="example-map" style="height:500px;position:absolute;width:500px;">
      var NPMap = NPMap || {};
      NPMap.config = {
        api: 'bing',
        div: 'example-map',
        layers: [{
          callback: '$callback',
          identify: {
            content: 'This location is a: {{LocationType}}',
            title: '{{LocationName}}'
          name: 'Underground Railroad',
          properties: {
            lat: 'Lat',
            lng: 'Lng',
            root: 'd'
          type: 'Json',
          url: '$filter=IsUGRR%20eq%20true&$format=json'
      (function() {
        var s = document.createElement('script');
        s.src = '';