/** * Leaflet.geojsonCSS * @author Alexander Burtsev, http://burtsev.me, 2014 * @author José María Martínez, jmmluna@gmail.com, http://about.me/jmmluna, 2017 * @license MIT */ !function(a,b,c){function d(a,b){a.on("click",function(c){a.bindPopup(e(b)),this.openPopup()}),a instanceof L.Marker||a.on("mouseover",function(b){var c={color:"#2262CC",weight:3,fillColor:"#2262CC"};a.setStyle(c)})}function e(a){var b="";for(var c in a.properties)b+="";return b+="
"+c+":"+a.properties[c]+"
"}function f(a,b){if(a.icon){var c=new L.Icon({iconSize:a.icon.iconSize,iconAnchor:a.icon.iconAnchor,popupAnchor:a.icon.popupAnchor,iconUrl:a.icon.iconUrl});return new L.Marker(b,{icon:c})}return new L.CircleMarker(b,a)}function g(a,b){a instanceof L.Marker||(a.setStyle(b),a.on("mouseout",function(c){a.setStyle(b)}))}a.L&&L.GeoJSON&&(L.GeoJSON.CSS=L.GeoJSON.extend({initialize:function(a,b){var c=a.style,e=L.extend({},b,{pointToLayer:function(a,b){var d=a.style;return d?f(d,b):c?f(c,b):new L.Marker(b,{})},onEachFeature:function(a,b){a.style?g(b,a.style):c&&g(b,c),d(b,a)}});L.setOptions(this,e),this._layers={},a&&this.addData(a)}}),L.geoJson.css=function(a,b){return new L.GeoJSON.CSS(a,b)})}(window,document);