commit 8b3e53c5974c3783ba2f4b6dfc03fb5d3f7e9c1b
parent 2939438ecdbcf3b4ce83c70fef12ca476a41ce8d
Author: myadzel <myadzel@gmail.com>
Date: Fri, 8 Jun 2018 11:24:41 +0300
simplify azimuth poiters #88
Diffstat:
4 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/src/lib/leaflet.control.azimuth/index.js b/src/lib/leaflet.control.azimuth/index.js
@@ -63,8 +63,8 @@ L.Control.Azimuth = L.Control.extend({
end: null
};
const iconSingle = L.icon({iconUrl: iconPointer, iconSize: [30, 30]});
- const iconStart = L.icon({iconUrl: iconPointerStart, iconSize: [40, 40]});
- const iconEnd = L.icon({iconUrl: iconPointerEnd, iconSize: [40, 40]});
+ const iconStart = L.icon({iconUrl: iconPointerStart, iconSize: [30, 30]});
+ const iconEnd = L.icon({iconUrl: iconPointerEnd, iconSize: [30, 45]});
this.markers = {
single: L.marker([0, 0], {icon: iconSingle, draggable: true, which: 'start'})
.on('drag', this.onMarkerDrag, this)
diff --git a/src/lib/leaflet.control.azimuth/pointer-end.svg b/src/lib/leaflet.control.azimuth/pointer-end.svg
@@ -1,9 +1,7 @@
<?xml version="1.0"?>
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 45">
<g>
- <ellipse ry="15" rx="15" cy="20" cx="20" fill="#777" fill-opacity="0.5"/>
- <line x1="20" y1="18" x2="25" y2="23" stroke="#3388ff" stroke-width="1.5"/>
- <line x1="20" y1="18" x2="15" y2="23" stroke="#3388ff" stroke-width="1.5"/>
- <line x1="20" y1="18" x2="20" y2="35" stroke="#3388ff" stroke-width="1"/>
+ <ellipse ry="15" rx="15" cy="26" cx="15" fill="#777" fill-opacity="0.5"/>
+ <path d="M15,20 l-5,12 l10,0 z" fill="#3388ff"/>
</g>
</svg>
\ No newline at end of file
diff --git a/src/lib/leaflet.control.azimuth/pointer-start.svg b/src/lib/leaflet.control.azimuth/pointer-start.svg
@@ -1,9 +1,7 @@
<?xml version="1.0"?>
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40">
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
<g>
- <ellipse ry="15" rx="15" cy="20" cx="20" fill="#777" fill-opacity="0.5"/>
- <line x1="20" y1="20" x2="23" y2="23" stroke="#3388ff" stroke-width="1.5"/>
- <line x1="20" y1="20" x2="17" y2="23" stroke="#3388ff" stroke-width="1.5"/>
- <line x1="20" y1="20" x2="20" y2="5" stroke="#3388ff" stroke-width="1"/>
+ <ellipse ry="15" rx="15" cy="15" cx="15" fill="#777" fill-opacity="0.5"/>
+ <ellipse ry="3" rx="3" cy="15" cx="15" fill="#3388ff" />
</g>
</svg>
\ No newline at end of file
diff --git a/src/lib/leaflet.control.azimuth/pointer.svg b/src/lib/leaflet.control.azimuth/pointer.svg
@@ -2,7 +2,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
<g>
<ellipse ry="15" rx="15" cy="15" cx="15" fill="#777" fill-opacity="0.5"/>
- <line x1="12" y1="12" x2="18" y2="18" stroke="#3388ff" stroke-width="1.5"/>
- <line x1="12" y1="18" x2="18" y2="12" stroke="#3388ff" stroke-width="1.5"/>
+ <ellipse ry="3" rx="3" cy="15" cx="15" fill="#3388ff" />
</g>
</svg>
\ No newline at end of file