From edfdf17f7a6ca5c5fb38d1e704777d4bb105a801 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 4 May 2017 22:25:42 +0200 Subject: [PATCH] bring layer to front on hover --- CHANGELOG.md | 2 ++ js/gpxedit.js | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11d2bf8..1f8d4ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/js/gpxedit.js b/js/gpxedit.js index e00c059..364b365 100644 --- a/js/gpxedit.js +++ b/js/gpxedit.js @@ -508,6 +508,7 @@ layer.bindPopup(popupTxt); if (type !== 'marker') { layer.on('mouseover', function() { + layer.bringToFront(); layer.setStyle(hoverStyle); }); layer.on('mouseout', function() {