Browse Source

Merge pull request #5 from plepe/master

Sync
master
Igor Eliezer 6 years ago
committed by GitHub
parent
commit
e3d43961a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      car_routes.json
  2. 7
      emergency.json
  3. 2
      index.json
  4. 3
      lang/pt-br.json
  5. 8
      water.json

3
car_routes.json

@ -1,7 +1,8 @@
{ {
"type": "overpass", "type": "overpass",
"name": { "name": {
"en": "Car routes"
"en": "Car routes",
"pt-br": "Rota rodoviária"
}, },
"query": { "query": {
"10": "relation[type=route][route=road]" "10": "relation[type=route][route=road]"

7
emergency.json

@ -44,11 +44,12 @@
"{% elseif tags.emergency %}", "{% elseif tags.emergency %}",
"{% set key = 'emergency' %}", "{% set key = 'emergency' %}",
"{% set value = tags.emergency %}", "{% set value = tags.emergency %}",
"{% endif %}"
"{% endif %}",
"{% set kv = key ~ \"=\" ~ value %}"
], ],
"description": "{{ tagTrans('amenity', tags.amenity) }}",
"description": "{{ tagTrans(key, value) }}",
"markerSign": [ "markerSign": [
"{% set data = const[tags.amenity] %}",
"{% set data = const[kv] %}",
"{% if data %}", "{% if data %}",
"{{ data.sign }}", "{{ data.sign }}",
"{% endif %}" "{% endif %}"

2
index.json

@ -119,7 +119,7 @@
"ro": "Transport", "ro": "Transport",
"ru": "Транспорт", "ru": "Транспорт",
"uk": "Транспорт", "uk": "Транспорт",
"pt-br": "Transportes",
"pt-br": "Mobilidade",
"pt": "Transportes" "pt": "Transportes"
}, },
"subCategories": [ "subCategories": [

3
lang/pt-br.json

@ -7,6 +7,7 @@
"category:car_amenities": "Equipamentos", "category:car_amenities": "Equipamentos",
"category:car_furniture": "Mobiliário urbano", "category:car_furniture": "Mobiliário urbano",
"category:car_maxspeed": "Velocidade máxima", "category:car_maxspeed": "Velocidade máxima",
"category:car_routes": "Rota rodoviária",
"category:children": "Equipamentos infantis", "category:children": "Equipamentos infantis",
"category:communication": "Comunicação", "category:communication": "Comunicação",
"category:construction": "Terrenos vazios e obras", "category:construction": "Terrenos vazios e obras",
@ -63,7 +64,7 @@
"category:railway": "Ferrovia", "category:railway": "Ferrovia",
"category:services": "Prestação de serviços", "category:services": "Prestação de serviços",
"category:special": "Especial", "category:special": "Especial",
"category:transport": "Transportes",
"category:transport": "Mobilidade",
"category:transport_car": "Tráfego individual", "category:transport_car": "Tráfego individual",
"category:transport_cycle": "Ciclismo", "category:transport_cycle": "Ciclismo",
"category:transport_pt": "Transporte público", "category:transport_pt": "Transporte público",

8
water.json

@ -51,7 +51,7 @@
"0", "0",
"{% elseif tags.waterway == 'river' %}", "{% elseif tags.waterway == 'river' %}",
"1", "1",
"{% elseif tags.waterway == 'stream' %}",
"{% elseif tags.waterway == 'stream' or tags.waterway == 'drain' %}",
"3", "3",
"{% elseif tags.waterway == 'ditch' %}", "{% elseif tags.waterway == 'ditch' %}",
"5", "5",
@ -63,7 +63,7 @@
"width": [ "width": [
"{% if tags.waterway == 'river' %}", "{% if tags.waterway == 'river' %}",
"4", "4",
"{% elseif tags.waterway == 'stream' %}",
"{% elseif tags.waterway == 'stream' or tags.waterway == 'drain' %}",
"2", "2",
"{% elseif tags.waterway == 'ditch' %}", "{% elseif tags.waterway == 'ditch' %}",
"1", "1",
@ -81,7 +81,7 @@
"{% endif %}" "{% endif %}"
], ],
"text": [ "text": [
"{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'ditch', 'wadi', 'drystream' ] %}",
"{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'ditch', 'wadi', 'drystream', 'drain' ] %}",
"{{ tags.name }} ➔ ", "{{ tags.name }} ➔ ",
"{% endif %}" "{% endif %}"
], ],
@ -102,7 +102,7 @@
"{% if map.zoom >= 13 %}", "{% if map.zoom >= 13 %}",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>",
" <td>{{ tagTrans('waterway', 'stream') }}</td>",
" <td>{{ tagTrans('waterway', 'stream') }}, {{ tagTrans('waterway', 'drain') }}</td>",
" </tr>", " </tr>",
" <tr>", " <tr>",
" <td>{{ markerLine(evaluate({ \"waterway\": \"ditch\" }))|raw }}</td>", " <td>{{ markerLine(evaluate({ \"waterway\": \"ditch\" }))|raw }}</td>",

Loading…
Cancel
Save