How to use the download/cont_mi.json function in download

To help you get started, we’ve selected a few download examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github usgs / earthquake-eventpages / src / htdocs / modules / summary / InteractiveMap.js View on Github external
this._dyfiLayer = new DYFIUTMLayer({
          url: dyfiContents['dyfi_geo.geojson'].url
        });
        layerControl.addOverlay(this._dyfiLayer, 'DYFI Responses');
      }
    }

    // Adds shake map contours data to map
    if (this._event.properties.products.shakemap) {
      var contourLayer = null,
          shakemap = this._event.properties.products.shakemap[0],
          shakemapContents = shakemap.contents;

      if ('download/cont_mi.json' in shakemapContents) {
        this._contourLayer = contourLayer = new ContoursLayer({
          url: shakemapContents['download/cont_mi.json'].url
        });
        layerControl.addOverlay(contourLayer, 'ShakeMap MMI Contours');
        contourLayer.addTo(map);
      }

      if ('download/stationlist.json' in shakemapContents) {
        this._stationLayer = new ShakeMapStationLayer(
            shakemapContents['download/stationlist.json'].url);
        layerControl.addOverlay(this._stationLayer, 'ShakeMap Stations');
      }
    }
  }

  // Add Map Controls
  if (!Util.isMobile()) {
    map.addControl(new MousePosition());
github usgs / earthquake-eventpages / src / app / shared / map-overlay / shakemap-intensity-overlay.ts View on Github external
getUrl: function(product: any) {
    if (product === null) {
      return null;
    }

    return product.contents['download/cont_mi.json']
      ? product.contents['download/cont_mi.json'].url
      : null;
  },
github usgs / earthquake-eventpages / src / app / shared / map-overlay / shakemap-intensity-overlay.ts View on Github external
getUrl: function(product: any) {
    if (product === null) {
      return null;
    }

    return product.contents['download/cont_mi.json']
      ? product.contents['download/cont_mi.json'].url
      : null;
  },