mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Add landfill fill pattern, farmyard pattern (and remove farm pattern), implement vineyard fill pattern
This commit is contained in:
@@ -27,8 +27,8 @@ export function svgAreas(projection, context) {
|
||||
{ pattern: 'cemetery' }
|
||||
],
|
||||
construction: 'construction',
|
||||
farm: 'farmland',
|
||||
farmland: 'farmland',
|
||||
farmyard: 'farmyard',
|
||||
forest: [
|
||||
{ leaf_type: 'broadleaved', pattern: 'forest_broadleaved' },
|
||||
{ leaf_type: 'needleleaved', pattern: 'forest_needleleaved' },
|
||||
@@ -37,10 +37,12 @@ export function svgAreas(projection, context) {
|
||||
],
|
||||
grave_yard: 'cemetery',
|
||||
grass: 'grass',
|
||||
landfill: 'landfill',
|
||||
meadow: 'meadow',
|
||||
military: 'construction',
|
||||
orchard: 'orchard',
|
||||
quarry: 'quarry'
|
||||
quarry: 'quarry',
|
||||
vineyard: 'vineyard'
|
||||
},
|
||||
natural: {
|
||||
beach: 'beach',
|
||||
|
||||
+14
-11
@@ -72,28 +72,31 @@ export function svgDefs(context) {
|
||||
var patterns = defs.selectAll('pattern')
|
||||
.data([
|
||||
// pattern name, pattern image name
|
||||
['wetland', 'wetland'],
|
||||
['wetland_marsh', 'wetland_marsh'],
|
||||
['wetland_swamp', 'wetland_swamp'],
|
||||
['wetland_bog', 'wetland_bog'],
|
||||
['wetland_reedbed', 'wetland_reedbed'],
|
||||
['scrub', 'bushes'],
|
||||
['beach', 'dots'],
|
||||
['construction', 'construction'],
|
||||
['cemetery', 'cemetery'],
|
||||
['cemetery_christian', 'cemetery_christian'],
|
||||
['cemetery_buddhist', 'cemetery_buddhist'],
|
||||
['cemetery_muslim', 'cemetery_muslim'],
|
||||
['cemetery_jewish', 'cemetery_jewish'],
|
||||
['orchard', 'orchard'],
|
||||
['farmland', 'farmland'],
|
||||
['beach', 'dots'],
|
||||
['meadow', 'grass'],
|
||||
['grass', 'grass'],
|
||||
['farmyard', 'farmyard'],
|
||||
['forest', 'forest'],
|
||||
['forest_broadleaved', 'forest_broadleaved'],
|
||||
['forest_needleleaved', 'forest_needleleaved'],
|
||||
['forest_leafless', 'forest_leafless'],
|
||||
['quarry', 'quarry']
|
||||
['grass', 'grass'],
|
||||
['landfill', 'landfill'],
|
||||
['meadow', 'grass'],
|
||||
['orchard', 'orchard'],
|
||||
['quarry', 'quarry'],
|
||||
['scrub', 'bushes'],
|
||||
['vineyard', 'vineyard'],
|
||||
['wetland', 'wetland'],
|
||||
['wetland_marsh', 'wetland_marsh'],
|
||||
['wetland_swamp', 'wetland_swamp'],
|
||||
['wetland_bog', 'wetland_bog'],
|
||||
['wetland_reedbed', 'wetland_reedbed']
|
||||
])
|
||||
.enter()
|
||||
.append('pattern')
|
||||
|
||||
Reference in New Issue
Block a user