Responsive Map of Canada - HTML5



Responsive Map of Canada – HTML5

This map is built in HTML5 code and runs with javascript based on the new technique of Scalable Vector Graphics (SVG), So it can be scaled to any size without losing its quality. Features:
  • It doesn’t require special plugins to work such as Flash player, So it works on all platforms including iPad and iPhone.
  • Each province has its own parameters so you can change upcolor, hover color and click color of each province also you can enable/disable the province. You can also add HTML formatted data for each province i.e you can change the font color, size, style, underline….etc
  • You can add clickable links such as websites or emails.
  • The scroll bar appears only with long content, i.e It’s autohide with short text. So you can add information as much as you want.
  • Responsive; it can fit in its available space without the need to scroll horizontally while preserving its quality.
  • Compitable with all major browsers including Google Chrome, Firefox IE9+, Safari and Opera.
  • Easily integrated with WordPress using simple iFrame code.
  • Map Parameters:

  • borderColor: inter-province borders.
  • shadowColor: shadow color below the map.
  • shadowOpacity: shadow opacity, value, 0-100.
  • namesColor: color of the abbreviations.
  • namesShadowColor: tooltip shadow color.
  • msgTitle: default title text (advanced version).
  • msgData: default content text (advanced version).
  • Per Province Parameters:

    This is what you can modify for each province:
  • name: province name.
  • data: HTML formatted data appears in the text box when a user clicks this province (advanced version).
  • url: Goto URL (simple version).
  • target: open link in new window:_blank, open in current window:_self (simple version).
  • upcolor: province’s normal color.
  • overcolor: province’s color when mouse hover.
  • downcolor: province’s color when mouse clicks.
  • enable: true/false to enable/disable this province.
  • Last Update:

  • 23 July 2013: Fix IE10 bug in text box (advanced version), update the documentation files and enhance the tooltip style and use better naming of the files.
  • Based on my old XML Interactive Map of Canada

    You might be interested in: