SHARE
TWEET

Untitled

a guest Jul 24th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. geojson = L.geoJson(States_Data, {
  2.  
  3.     onEachFeature: function (feature, layer) {
  4.         layer.on('mouseover', function () {
  5.           var tmp = feature.properties.STATE_NAME16 ;
  6.  
  7.           this.setStyle({
  8.             'fillColor': 'orange'
  9.           });
  10.  
  11.           //[new bit of code here]
  12.  
  13.         });
  14.  
  15.     }
  16.  
  17.  
  18. }).addTo(map);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top