From bf90c1ae93ff20487f3b27d6039d14dec3a33e1b Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 6 Mar 2013 17:33:02 -0800 Subject: [PATCH] Render circular place=* as an unfilled area Basically, give it area label placement, but line behavior otherwise. Test case: #id=w169604918&map=19.46/41.41402/-70.94773 --- css/map.css | 1 + js/id/core/way.js | 3 ++- js/id/svg/tag_classes.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/css/map.css b/css/map.css index 756cd11fa..ceb5d6a6a 100644 --- a/css/map.css +++ b/css/map.css @@ -359,6 +359,7 @@ path.fill.tag-amenity-parking { fill: #aaa; } +path.fill.tag-place, path.fill.tag-boundary { fill: none; } diff --git a/js/id/core/way.js b/js/id/core/way.js index e520f223a..04bbda14b 100644 --- a/js/id/core/way.js +++ b/js/id/core/way.js @@ -161,5 +161,6 @@ iD.Way.areaKeys = { amenity: {}, shop: {}, man_made: {}, - public_transport: {} + public_transport: {}, + place: {} }; diff --git a/js/id/svg/tag_classes.js b/js/id/svg/tag_classes.js index dad388ffe..7266dcd5d 100644 --- a/js/id/svg/tag_classes.js +++ b/js/id/svg/tag_classes.js @@ -2,7 +2,7 @@ iD.svg.TagClasses = function() { var keys = iD.util.trueObj([ 'highway', 'railway', 'waterway', 'power', 'motorway', 'amenity', 'natural', 'landuse', 'building', 'oneway', 'bridge', 'boundary', - 'leisure', 'construction' + 'leisure', 'construction', 'place' ]), tagClassRe = /^tag-/, tags = function(entity) { return entity.tags; };