First time using geojson polygons in Leaflet. I would like to add the following actions: 1. Mouseover change color 2. Onclick hyperlink to url
Here is the code one polygon layer.
/* Overlay Layers */
var boroughs = L.geoJson(null, {
style: function (feature) {
return {
color: "blue",
fill: false,
opacity: 1,
clickable: true
};
},
$.getJSON("data/boroughs.geojson", function (data) {
boroughs.addData(data);
});