Unverified Commit 0f638979 authored by amystamile's avatar amystamile Committed by GitHub
Browse files

Merge pull request #17 from amystamile/ClickFootprint

Add console.log output when clicking footprint.
parents 6f7a4b64 02748f3a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -125,7 +125,10 @@ export default L.Map.AstroMap = L.Map.extend({
  loadFootprintLayer: function(name, page) {
    getItemCollection(name, page).then(result => {
      if (result != undefined) {
        this._geoLayer = L.geoJSON().addTo(this);
        this._geoLayer = L.geoJSON()
          .on('click', function(e){
            console.log(e);
        }).addTo(this);
        this._footprintCollection["Footprints"] = this._geoLayer;
        for (let i = 0; i < result.length; i++) {
          for (let j = 0; j < result[i].features.length; j++) {