bring layer to front on hover

merge-requests/1/head
Julien Veyssier 2017-05-04 22:25:42 +02:00
parent 5b7923db5f
commit edfdf17f7a
2 changed files with 3 additions and 0 deletions

View File

@ -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/).
## [Unreleased]
### Changed
- bring layer to front on hover
## 0.0.5 2017-04-05
### Added

View File

@ -508,6 +508,7 @@
layer.bindPopup(popupTxt);
if (type !== 'marker') {
layer.on('mouseover', function() {
layer.bringToFront();
layer.setStyle(hoverStyle);
});
layer.on('mouseout', function() {