bring layer to front on hover
parent
5b7923db5f
commit
edfdf17f7a
|
@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- bring layer to front on hover
|
||||||
|
|
||||||
## 0.0.5 – 2017-04-05
|
## 0.0.5 – 2017-04-05
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -508,6 +508,7 @@
|
||||||
layer.bindPopup(popupTxt);
|
layer.bindPopup(popupTxt);
|
||||||
if (type !== 'marker') {
|
if (type !== 'marker') {
|
||||||
layer.on('mouseover', function() {
|
layer.on('mouseover', function() {
|
||||||
|
layer.bringToFront();
|
||||||
layer.setStyle(hoverStyle);
|
layer.setStyle(hoverStyle);
|
||||||
});
|
});
|
||||||
layer.on('mouseout', function() {
|
layer.on('mouseout', function() {
|
||||||
|
|
Loading…
Reference in New Issue