Skip to content

Instantly share code, notes, and snippets.

@turban
Created October 22, 2012 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save turban/3929912 to your computer and use it in GitHub Desktop.
Save turban/3929912 to your computer and use it in GitHub Desktop.
var regionLayer = L.geoJson(regions, {
style: {
color: '#550055',
weight: 1,
opacity: 1,
fillOpacity: 0
},
onEachFeature: function(feature, layer) {
layer.bindPopup('<strong>' + feature.properties.REGC_NAME + '</strong>');
layer.on({
mouseover: function(e) {
e.target.setStyle({
weight: 3
});
},
mouseout: function(e) {
e.target.setStyle({
weight: 1
});
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment