New Tower icon (Ian Tolosa)

This commit is contained in:
Keith Paterson 2021-01-17 18:20:00 +01:00
parent 3ed45ee87e
commit 828e84e5c1
2 changed files with 123 additions and 55 deletions

View File

@ -40,7 +40,7 @@ L.TowerMarker = L.Marker.extend({
var scale = pixelSize/this.iconSize; var scale = pixelSize/this.iconSize;
var offset = 0;//-(this.iconSize/2); var offset = 0;//-(this.iconSize/2);
this.setIcon(L.divIcon({ this.setIcon(L.divIcon({
iconSize: 64, iconSize: 32,
className: 'threshold-marker-icon', className: 'threshold-marker-icon',
html: `<div style=\'transform: translateX(${offset}px) translateY(${offset}px) scale(${scale}); border: 1px red\'>${this.svg}</div>`, html: `<div style=\'transform: translateX(${offset}px) translateY(${offset}px) scale(${scale}); border: 1px red\'>${this.svg}</div>`,
})); }));
@ -65,7 +65,7 @@ L.TowerMarker = L.Marker.extend({
L.TowerMarker.addInitHook(function(){ L.TowerMarker.addInitHook(function(){
this.svg = this.stripSVG('tower.svg'); this.svg = this.stripSVG('tower.svg');
this.iconSize = 64; this.iconSize = 32;
this.on('dragstart', function (event) { this.on('dragstart', function (event) {
console.debug("Drag Tower : ", event); console.debug("Drag Tower : ", event);
}); });

View File

@ -1,6 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg <svg
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#" xmlns:cc="http://creativecommons.org/ns#"
@ -9,40 +7,15 @@
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64" inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
height="64" sodipodi:docname="FGA Tower Icon.svg"
viewBox="0 0 16.933333 16.933334" viewBox="0 0 248.26501 249.26443"
version="1.1" height="32"
id="svg8" width="32"
inkscape:version="0.92.1 r15371" id="svg833"
sodipodi:docname="tower.svg"> version="1.1">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="12.8125"
inkscape:cx="31.843902"
inkscape:cy="32"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1013"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid4489" />
</sodipodi:namedview>
<metadata <metadata
id="metadata5"> id="metadata839">
<rdf:RDF> <rdf:RDF>
<cc:Work <cc:Work
rdf:about=""> rdf:about="">
@ -53,26 +26,121 @@
</cc:Work> </cc:Work>
</rdf:RDF> </rdf:RDF>
</metadata> </metadata>
<defs
id="defs837" />
<sodipodi:namedview
inkscape:current-layer="layer1"
inkscape:window-maximized="1"
inkscape:window-y="-9"
inkscape:window-x="-9"
inkscape:cy="131.18309"
inkscape:cx="130.09189"
inkscape:zoom="2.8284272"
fit-margin-bottom="0"
fit-margin-right="0"
fit-margin-left="0"
fit-margin-top="0"
showgrid="false"
id="namedview835"
inkscape:window-height="1361"
inkscape:window-width="2560"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
guidetolerance="10"
gridtolerance="10"
objecttolerance="10"
borderopacity="1"
bordercolor="#666666"
pagecolor="#ffffff"
inkscape:document-rotation="0"
showguides="true"
inkscape:guide-bbox="true"
inkscape:snap-bbox="true"
inkscape:snap-bbox-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-midpoints="true"
inkscape:snap-global="true" />
<g <g
inkscape:label="Layer 1"
inkscape:groupmode="layer" inkscape:groupmode="layer"
id="layer2"
inkscape:label="Background" />
<g
transform="translate(7.706459,7.9160461)"
inkscape:label="Headset"
id="layer1" id="layer1"
transform="translate(0,-280.06665)"> inkscape:groupmode="layer">
<g
id="g962">
<circle
r="124.1325"
cy="116.21645"
cx="116.42604"
id="path1622"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path <path
style="fill:none;stroke:#000000;stroke-width:0.47822458px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" sodipodi:nodetypes="sccsccs"
d="m 0.37724475,288.43079 3.66477855,-8.09956 h 8.9225597 l 3.569025,8.20209 -3.569025,8.20208 H 4.0420233 Z" d="m 88.489103,214.89893 c 0,-5.21922 4.23103,-9.45026 9.450184,-9.45033 l 36.986813,-6e-5 c 5.20585,0 9.43688,4.23103 9.43688,9.45026 0,5.21922 -4.23103,9.45026 -9.43688,9.45012 l -36.986813,7e-5 c -5.219154,2e-4 -9.450184,-4.23083 -9.450184,-9.45006 z"
id="path4487" style="fill:#000000;fill-opacity:1;stroke:#00a8b2;stroke-width:0.0994765;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" id="path849-5" />
sodipodi:nodetypes="ccccccc" /> <g
style="fill:#000000;fill-opacity:1"
transform="translate(-3.4175518e-4)"
id="g1992">
<path <path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path849-5-5"
d="m 2.6458333,288.53332 2.9104166,-5.55625 h 5.8208331 l 2.645833,5.55625 -2.381249,5.82083 H 5.2916666 Z" style="fill:#000000;fill-opacity:1;stroke:#00a8b2;stroke-width:0.150978;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4503" d="m 226.14123,79.658933 c -7.92132,0 -14.34375,6.421246 -14.34375,14.322266 v 56.134771 c 1e-4,7.92121 6.42243,14.34377 14.34375,14.34375 1.77942,0 3.47461,-0.33935 5.04687,-0.93164 a 124.1325,124.1325 0 0 0 9.29492,-43.01367 v -8.59961 a 124.1325,124.1325 0 0 0 -4.2207,-28.076179 c -2.59403,-2.582096 -6.16991,-4.179688 -10.12109,-4.179688 z" />
inkscape:connector-curvature="0" />
<path <path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path849-5-5-8"
d="m 7.6729166,286.94582 -0.79375,1.5875 0.79375,1.32291 h 1.5875 l 0.7937504,-1.32291 -0.7937504,-1.5875 z" style="fill:#000000;fill-opacity:1;stroke:#00a8b2;stroke-width:0.150978;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4505" d="m 6.711542,79.658933 c -3.950201,0 -7.5252386,1.596784 -10.1191409,4.177734 A 124.1325,124.1325 0 0 0 -7.6302551,111.8855 v 8.66211 a 124.1325,124.1325 0 0 0 9.2949219,42.98047 c 1.5722702,0.59229 3.2674492,0.93164 5.0468752,0.93164 7.92132,0 14.34406,-6.42254 14.34375,-14.34375 V 93.981199 c 2.1e-4,-7.901011 -6.42245,-14.322266 -14.34375,-14.322266 z" />
inkscape:connector-curvature="0" /> </g>
<g
id="g916"
style="stroke:#00989a;stroke-opacity:1">
<path
id="rect1605"
style="fill:none;fill-opacity:1;stroke:#00989a;stroke-width:2;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 53.844354,143.81714 v 79.60352 a 124.1325,124.1325 0 0 0 62.582026,16.92773 124.1325,124.1325 0 0 0 63.28907,-17.34766 v -79.18359 z" />
<polygon
style="fill:#00989a;fill-opacity:1;stroke:#00989a;stroke-opacity:1"
id="polygon986"
points="89.486,243.876 71.941,139.481 26.677,139.481 61.767,243.876 "
transform="matrix(0.75835957,0,0,0.75835957,6.0968618,-47.492855)" />
<polygon
style="fill:#00989a;fill-opacity:1;stroke:#00989a;stroke-opacity:1"
id="polygon988"
points="151.484,139.481 151.484,243.876 189.314,243.876 206.859,139.481 "
transform="matrix(0.75835957,0,0,0.75835957,6.0968618,-47.492855)" />
<polygon
style="fill:#00989a;fill-opacity:1;stroke:#00989a;stroke-opacity:1"
id="polygon990"
points="84.109,139.481 101.654,243.876 139.484,243.876 139.484,139.481 "
transform="matrix(0.75835957,0,0,0.75835957,6.0968618,-47.492855)" />
<polygon
style="fill:#00989a;fill-opacity:1;stroke:#00989a;stroke-opacity:1"
id="polygon992"
points="201.482,243.876 229.201,243.876 264.291,139.481 219.027,139.481 "
transform="matrix(0.75835957,0,0,0.75835957,6.0968618,-47.492855)" />
<rect
y="42.483017"
x="44.615604"
height="9.8302555"
width="143.62088"
id="rect1605-7"
style="fill:#00989a;fill-opacity:1;stroke:#00989a;stroke-width:2.50089;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<path
sodipodi:nodetypes="cc"
id="path1761"
d="m 221.22133,163.59357 c -16.80353,25.19128 -43.642,43.64367 -76.66957,51.11645"
style="fill:none;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
id="path913"
d="M 6.8856252,81.848629 C 21.611214,33.687043 66.066978,0.7936943 116.42946,0.79583065 c 50.36251,0.00213 94.81547,32.89923835 109.537,81.06206135"
style="fill:none;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB