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
This commit is contained in:
John Firebaugh
2013-03-06 17:33:02 -08:00
parent cb0e02d56f
commit bf90c1ae93
3 changed files with 4 additions and 2 deletions

View File

@@ -359,6 +359,7 @@ path.fill.tag-amenity-parking {
fill: #aaa;
}
path.fill.tag-place,
path.fill.tag-boundary {
fill: none;
}

View File

@@ -161,5 +161,6 @@ iD.Way.areaKeys = {
amenity: {},
shop: {},
man_made: {},
public_transport: {}
public_transport: {},
place: {}
};

View File

@@ -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; };