Browse Source

Markers: improve marker handling (in combination with overpass-layer)

master
parent
commit
44fb187938
  1. 6
      src/category.css
  2. 2
      src/markers.js

6
src/category.css

@ -133,10 +133,6 @@
clear: both;
display: table;
}
.overpass-layer-icon div {
position: relative;
top: -46px;
.overpass-layer-icon div.sign {
font-size: 15px;
width: 25px;
text-align: center;
}

2
src/markers.js

@ -88,7 +88,7 @@ function markerPointer (style) {
var color = 'color' in style ? style.color : '#000000'
var width = 'width' in style ? style.width : 1
return '<svg anchorX="13" anchorY="45" width="25" height="45"><path d="M0.5,12.5 A 12,12 0 0 1 24.5,12.5 C 24.5,23 13,30 12.5,44.5 C 12,30 0.5,23 0.5,12.5" style="stroke: ' + color + '; stroke-width: ' + width + '; fill: ' + fillColor + ';"/></svg>'
return '<svg anchorX="13" anchorY="45" width="25" height="45" signAnchorX="0" signAnchorY="-31"><path d="M0.5,12.5 A 12,12 0 0 1 24.5,12.5 C 24.5,23 13,30 12.5,44.5 C 12,30 0.5,23 0.5,12.5" style="stroke: ' + color + '; stroke-width: ' + width + '; fill: ' + fillColor + ';"/></svg>'
}
OverpassLayer.twig.extendFunction('markerLine', markerLine)

Loading…
Cancel
Save