1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| Dep.on('mouseover', function(e){
if (feature.properties.CODE_DEPT === '31') {
Dep.openPopup();
this.setStyle({color: 'blue',weight: 2,fillOpacity: 0.2,opacity: 1})
}).on('mouseout', function () {
this.setStyle({color: 'blue',weight: 2,fillOpacity: 0.1,opacity: 1});
});
else
if (feature.properties.CODE_DEPT === '09') {
Dep.openPopup();
this.setStyle({color: 'blue',weight: 2,fillOpacity: 0.2,opacity: 1})
}).on('mouseout', function () {
this.setStyle({color: 'blue',weight: 2,fillOpacity: 0.1,opacity: 1});
});
else
if (feature.properties.CODE_DEPT === '81') {
Dep.openPopup();
this.setStyle({color: 'blue',weight: 2,fillOpacity: 0.2,opacity: 1})
}).on('mouseout', function () {
this.setStyle({color: 'blue',weight: 2,fillOpacity: 0.1,opacity: 1});
});
etc... |
Partager