From 2f40854780a412ccf710308a20ff00250ba7c8b3 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 4 Mar 2019 08:41:48 -0500 Subject: [PATCH] Use the same point path for the point preset icon as in the map --- css/80_app.css | 2 +- modules/ui/preset_icon.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/80_app.css b/css/80_app.css index 1bb832f7f..5b9040ae5 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -1177,7 +1177,7 @@ a.hide-toggle { height: 100%; } .preset-icon-container.small .preset-icon.point-geom { - transform: translateY(-5%) scale(0.32); + transform: translateY(-7%) scale(0.27); } .preset-icon.framed { transform: scale(0.4); diff --git a/modules/ui/preset_icon.js b/modules/ui/preset_icon.js index 52169811a..d7e5745ed 100644 --- a/modules/ui/preset_icon.js +++ b/modules/ui/preset_icon.js @@ -28,7 +28,6 @@ export function uiPresetIcon() { } function renderPointBorder(enter) { - var d = "M20,7 C14.4766667,7 10,10.207551 10,16.6166837 C10,23.0278061 20,33 20,33 C20,33 30,23.0278061 30,16.6166837 C30,10.207551 25.5233333,7 20,7 Z" var w = 40, h = 40; enter = enter .append('svg') @@ -38,7 +37,8 @@ export function uiPresetIcon() { .attr('viewBox', '0 0 ' + w + ' ' + h); enter.append('path') - .attr('d', d); + .attr('transform', 'translate(11.5, 8)') + .attr('d', 'M 17,8 C 17,13 11,21 8.5,23.5 C 6,21 0,13 0,8 C 0,4 4,-0.5 8.5,-0.5 C 13,-0.5 17,4 17,8 z'); } function renderCircleFill(fillEnter) { @@ -240,7 +240,7 @@ export function uiPresetIcon() { }); icon.selectAll('use') - .attr('href', '#' + picon + (isMaki ? '-15' : '')); + .attr('href', '#' + picon + (isMaki ? (isSmall() ? '-11' : '-15') : '')); }