templates/page/office/show/components/map.html.twig line 1

Open in your IDE?
  1. {% set seattleJSON = '[{"coords":{"lat":47.6152834,"lng":-122.337501},"ID":29,"title":"ICF Technology Inc.","city":"Seattle"}]' %}
  2. {% set amsterdamJSON = '[{"coords":{"lat":52.3110534,"lng":4.9388259},"ID":31,"title":"ICF Tech EU B.V.","city":"Amsterdam"}]' %}
  3. {% set bucharestJSON = '[{"coords":{"lat":44.4490688,"lng":26.0807384},"ID":33,"title":"SLS Service Center SRL.","city":"Bucharest"}]' %}
  4. {% set budapestJSON = '[{"coords":{"lat":47.4975266,"lng":19.0297357},"ID":32,"title":"ICF Tech Hungary Kft.","city":"Budapest"}]' %}
  5. {% set luxembourgJSON = '[{"coords":{"lat":49.60774082893106,"lng":6.119666355922133},"ID":34,"title":"ICF EU Luxembourg Sarl.","city":"Luxembourg"}]' %}
  6. {% set markers = '[]' %}
  7. {% if location == 'seattle' %}
  8.     {% set markers = seattleJSON %}
  9. {% elseif location == 'amsterdam' %}
  10.     {% set markers = amsterdamJSON %}
  11. {% elseif location == 'bucharest' %}
  12.     {% set markers = bucharestJSON %}
  13. {% elseif location == 'budapest' %}
  14.     {% set markers = budapestJSON %}
  15. {% elseif location == 'luxembourg' %}
  16.     {% set markers = luxembourgJSON %}
  17. {% endif %}
  18. {% include 'common/components/gmap.html.twig' with { markers: markers } %}