Honolulu<\\\/strong><\\\/p>\\nPopulation: 371,657<\\\/p>\",\"click_action_value\":\"hon\"},{\"location\":\"Pearl City, Manana\",\"latitude\":\"21.400028\",\"longitude\":\"-157.9675911\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
Pearl City, Manana<\\\/strong><\\\/p>\\nPopulation: 47,698<\\\/p>\",\"click_action_value\":\"pea\"},{\"location\":\"Hilo, Hawaii\",\"latitude\":\"19.7297222\",\"longitude\":\"-155.09\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
Hilo<\\\/strong><\\\/p>\\nPopulation: 43,263<\\\/p>\",\"click_action_value\":\"hil\"},{\"location\":\"Kailua , Hawaii\",\"latitude\":\"21.4022222\",\"longitude\":\"-157.7394444\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
Kailua<\\\/strong><\\\/p>\\nPopulation: 38,635<\\\/p>\",\"click_action_value\":\"kai\"},{\"location\":\"Waipahu , Hawaii\",\"latitude\":\"21.3866667\",\"longitude\":\"-158.0091667\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
Waipahu<\\\/strong><\\\/p>\\nPopulation: 38,216<\\\/p>\",\"click_action_value\":\"wai\"},{\"location\":\"K\\u0101ne\\u2018ohe, Hawaii\",\"latitude\":\"21.4180556\",\"longitude\":\"-157.8036111\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
K\\u0101ne\\u2018ohe<\\\/strong><\\\/p>\\nPopulation: 34,597<\\\/p>\",\"click_action_value\":\"kan\"},{\"location\":\"Mililani Town, Hawaii\",\"latitude\":\"21.4513314\",\"longitude\":\"-158.0152807\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
Mililani Town<\\\/strong><\\\/p>\\nPopulation: 27,629<\\\/p>\",\"click_action_value\":\"mil\"},{\"location\":\"Kahului, Hawaii\",\"latitude\":\"20.8893351\",\"longitude\":\"-156.4729469\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
Kahului<\\\/strong><\\\/p>\\nPopulation: 26,337<\\\/p>\",\"click_action_value\":\"kah\"},{\"location\":\"\\u2018Ewa Gentry, Hawaii\",\"latitude\":\"21.339444\",\"longitude\":\"-158.029722\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
\\u2018Ewa Gentry<\\\/strong><\\\/p>\\nPopulation: 22,690<\\\/p>\",\"click_action_value\":\"ewa\"},{\"location\":\"K\\u012bhei, Hawaii\",\"latitude\":\"20.759167\",\"longitude\":\"-156.457222\",\"color\":\"#7788bb\",\"size\":\"1\",\"tooltip_title\":\"\",\"tooltip_text\":\"
K\\u012bhei<\\\/strong><\\\/p>\\nPopulation: 20,881<\\\/p>\",\"click_action_value\":\"kih\"}]","display_mode":"marker_by_coordinates","template_id":-2,"template_html":"
\n
\n %%map%%\n
\n
Map of Hawaii showing the ten biggest cities.<\/strong> You could also use the space below the map for any other information. \n <\/div>\n <\/div>\n \n
\n \n <\/th>\n | Name<\/th>\n | Population<\/th>\n <\/tr>\n |
\n 1<\/td>\n | Honolulu <\/td>\n | 371,657<\/td>\n <\/tr>\n |
\n 2<\/td>\n | Pearl City, Manana<\/td>\n | 47,698<\/td>\n <\/tr>\n |
\n 3<\/td>\n | Hilo<\/td>\n | 43,263<\/td>\n <\/tr>\n |
\n 4<\/td>\n | Kailua <\/td>\n | 38,635<\/td>\n <\/tr>\n |
\n 5<\/td>\n | Waipahu<\/td>\n | 38,216<\/td>\n <\/tr>\n |
\n 6<\/td>\n | K\u0101ne\u2018ohe<\/td>\n | 34,597<\/td>\n <\/tr>\n |
\n 7<\/td>\n | Mililani Town<\/td>\n | 27,629<\/td>\n <\/tr>\n |
\n 8<\/td>\n | Kahului<\/td>\n | 26,337<\/td>\n <\/tr>\n |
\n 9<\/td>\n | \u2018Ewa Gentry<\/td>\n | 22,690<\/td>\n <\/tr>\n |
\n 10<\/td>\n | K\u012bhei<\/td>\n | 20,881<\/td>\n <\/tr>\n <\/table>\n <\/div>\n \n<\/div>","template_css":"#{cssid} .google-visualization-tooltip {\n white-space: nowrap;\n}\n#{cssid} {\n margin-right: 300px;\n}\n#{cssid} circle {\n cursor: pointer;\n}\n#{cssid} .map_left {\n float: left;\n width: 100%;\n padding: 10px;\n margin: 0 10px;\n background-color: #f5f5f5;\n border-radius: 10px;\n}\n#{cssid} .map_left {\n font-size: 11px;\n}\n#{cssid} .map_right {\n float: right;\n margin-right: -300px;\n width: 280px;\n}\n#{cssid} tr.active td {\n background-color: #f5f5f5;\n font-weight: bold;\n}","template_js":"jQuery(\"#\" + cssid + \" .map_right tr.active\").removeClass(\"active\");\njQuery(\"#\" + cssid + \" .map_right tr#\" + click_value).addClass(\"active\");"}
This explains step-by-step what you have to do:
The first step is to open the "All Maps" page. On this page you will find an "Import" button. If you click on this
button, a small window should open. You have to select the "text" tab and insert the import data there. The final
step is to click on "Import". The Map Builder should open with the given map. Note that you have to click on the
"Save" button. Otherwise the map won't be imported.
Map settings
Name |
Value |
Description |
Region |
Hawaii |
List with all available regions |
Width |
auto |
Width of the map in pixel. 'Auto' means that the map is centered in the available width. |
Height |
auto |
Height of the map in pixel. 'Auto' means that the map is centered in the available height. |
Display mode |
Markers |
Specifies the display mode of the map. |
Border resolution |
Provinces |
The resolution of the map borders. |
Tooltips |
On |
Allows to display a tooltip for highlighted map elements. |
Tooltips: Trigger |
focus |
The user interaction that causes the tooltip to be displayed. |
Tooltips: Use HTML |
On |
Specifies if the tooltips should use HTML. This allows to customize the tooltips even more. For example, if this property is on, it is possible to display images wihtin the tooltip. |
Map template
CSS |
#{cssid} .google-visualization-tooltip {
white-space: nowrap;
}
#{cssid} {
margin-right: 300px;
}
#{cssid} circle {
cursor: pointer;
}
#{cssid} .map_left {
float: left;
width: 100%;
padding: 10px;
margin: 0 10px;
background-color: #f5f5f5;
border-radius: 10px;
}
#{cssid} .map_left {
font-size: 11px;
}
#{cssid} .map_right {
float: right;
margin-right: -300px;
width: 280px;
}
#{cssid} tr.active td {
background-color: #f5f5f5;
font-weight: bold;
} |
HTML |
<div id="{cssid}">
<div class="map_left">
%%map%%
<div class="map_caption">
<strong>Map of Hawaii showing the ten biggest cities.</strong> You could also use the space below the map for any other information.
</div>
</div>
<div class="map_right">
<table class="table">
<tr>
<th></th>
<th>Name</th>
<th>Population</th>
</tr>
<tr id="hon">
<td>1</td>
<td>Honolulu </td>
<td>371,657</td>
</tr>
<tr id="pea">
<td>2</td>
<td>Pearl City, Manana</td>
<td>47,698</td>
</tr>
<tr id="hil">
<td>3</td>
<td>Hilo</td>
<td>43,263</td>
</tr>
<tr id="kai">
<td>4</td>
<td>Kailua </td>
<td>38,635</td>
</tr>
<tr id="wai">
<td>5</td>
<td>Waipahu</td>
<td>38,216</td>
</tr>
<tr id="kan">
<td>6</td>
<td>Kāne‘ohe</td>
<td>34,597</td>
</tr>
<tr id="mil">
<td>7</td>
<td>Mililani Town</td>
<td>27,629</td>
</tr>
<tr id="kah">
<td>8</td>
<td>Kahului</td>
<td>26,337</td>
</tr>
<tr id="ewa">
<td>9</td>
<td>‘Ewa Gentry</td>
<td>22,690</td>
</tr>
<tr id="kih">
<td>10</td>
<td>Kīhei</td>
<td>20,881</td>
</tr>
</table>
</div>
<br style="clear: both;">
</div> |
JavaScript
Executed when a marker/region is clicked.
Click value can be defined for each map element.
|
jQuery("#" + cssid + " .map_right tr.active").removeClass("active");
jQuery("#" + cssid + " .map_right tr#" + click_value).addClass("active"); |
Map elements (10)
Color |
Name |
Click Value |
|
Honolulu |
hon |
|
Pearl City, Manana |
pea |
|
Hilo, Hawaii |
hil |
|
Kailua , Hawaii |
kai |
|
Waipahu , Hawaii |
wai |
|
Kāne‘ohe, Hawaii |
kan |
|
Mililani Town, Hawaii |
mil |
|
Kahului, Hawaii |
kah |
|
‘Ewa Gentry, Hawaii |
ewa |
|
Kīhei, Hawaii |
kih |
|