We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 513b7db commit 890ab36Copy full SHA for 890ab36
examples/combined.html
@@ -154,6 +154,26 @@
154
layer.on('mousemove',e=>{
155
e.target.getTooltip().setLatLng(e.latlng);
156
});
157
+
158
+ // line highlighting
159
+ var origstyle;
160
+ function highlight(e) {
161
+ origstyle = {
162
+ weight: e.target.options.weight,
163
+ color: e.target.options.color
164
+ }
165
+ e.target.setStyle({
166
+ color: '#f22',
167
+ });
168
169
+ function resetStyle(e) {
170
+ e.target.setStyle(origstyle);
171
172
+ layer.on({
173
+ mouseover: highlight,
174
+ mouseout: resetStyle
175
176
+ // line highlighting end
177
}
178
window.testdata3 = L.dataClassification(d, {
179
mode: 'quantile',
0 commit comments