Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <div class="embed-container">
  2. {exp:gmap:init id="map" scrollwheel="false" style="width:1200px;height:460px"}
  3.  
  4. {exp:gmap:center id="map" address="{branch_address} {branch_city}"}
  5. </div>
  6.  
  7. {exp:gmap:marker id="map" latitude="{branch_latitude}" longitude="{branch_longitude}" zoom="13"}
  8.  
  9. {exp:channel:entries channel="branches" disable="member_data|pagination|categories|category_fields" limit="300"}
  10.  
  11. {exp:gmap:marker
  12. id="map"
  13. latitude="{branch_latitude}"
  14. longitude="{branch_longitude}"
  15. duplicate_markers="false"
  16. icon="/images/map-pin.png"
  17. geocode="true"
  18. clustering="false"
  19. latitude="48"
  20. longitude="-83"
  21. limit="100"
  22.  
  23. infobox="true"
  24. offsetY="-40"
  25. offsetX="0"
  26. class="entry-{entry_id} ui-infobox-dark"
  27. closeBoxMargin="5px"
  28. }
  29. <div class="ui-infobox-content">
  30. <h4>{title}</h4>
  31. {branch_address} <br>
  32. {branch_city} {branch_province} <br>
  33. {branch_postcode} <br>
  34. Work Phone: {branch_phone} <br>
  35. Toll Free: {branch_toll_free} <br>
  36. Fax Number: {branch_fax}
  37. </div>
  38. {/exp:gmap:marker}
  39.  
  40. {!--
  41. // add active class to branch card to highlight it.
  42. --}
  43. {exp:gmap:event id="map"}
  44. $('.block article.entry{entry_id}').addClass('active');
  45.  
  46. $( ".ui-infobox-dark img" ).click(function() {
  47. $('.block article').removeClass('active');
  48. });
  49.  
  50. {/exp:gmap:event}
  51.  
  52. {/exp:channel:entries}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement