anchor.diff:         "features": pinFeatures
       }
     });
  -  map.addLayer({
  -    id:"pins",
  -    type: "symbol",
  -    source: "pins",
  -    layout: {
  -      "icon-image": iconSelector(),
  -      "icon-size": 1.0,
  -      "icon-allow-overlap": true
  -    }
  -  });
  +    map.addLayer({
  +      id:"pins",
  +      type: "symbol",
  +      source: "pins",
  +      layout: {
  +        "icon-image": "{icon}",
  +        "icon-size": 1.0,
  +        "icon-allow-overlap": true
  +      }
  +    });
  +
  +
     map.addSource('single-point', {
       type: "geojson",
       data: {
  
positive.code:                pin.lat
            ]
        }
      };
    }); //the above creates the pins
    map.addSource('pins', {
     type: 'geojson',
     data: {
  
negative.code:       "icon-allow-overlap": true
      }
    });
  });
      // When a click event occurs near a place, open a popup at the location of
    // the feature, with description HTML from its properties.
  map.on('click', function (event) {
  