Skip to content

Commit f44f3bc

Browse files
committed
Charge styles options to measurecontrol to keep the old style
1 parent 416e2a2 commit f44f3bc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

mapentity/static/mapentity/mapentity.map.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,17 @@ $(window).on('entity:map', function (e, data) {
135135
}
136136

137137
map.addControl(new L.Control.FullScreen());
138-
map.addControl(new L.Control.MeasureControl());
138+
map.addControl(new L.Control.MeasureControl({
139+
position: 'topleft',
140+
handler: {
141+
shapeOptions: {
142+
color: '#f06eaa'
143+
},
144+
icon: new L.DivIcon({
145+
iconSize: new L.Point(8, 8),
146+
}),
147+
}
148+
}));
139149
});
140150

141151

0 commit comments

Comments
 (0)