---
{
	"title": "Geomap",
	"language": "en",
	"category": "Plugins",
	"description": "Displays a dynamic map over which information from additional sources can be overlaid.",
	"tag": "geomap",
	"parentdir": "geomap",
	"altLangPrefix": "geomap",
	"js": ["demo/client_functions"],
	"dateModified": "2016-04-22"
}
---
<span class="wb-prettify all-pre hide"></span>

<div class="row">
	<div class="col-md-6 pull-right col-xs-12">
		<aside class="alert alert-info">
			<h2 class="h3">Upgrade Notice</h2>
			<p>Since WET 4.0.31 we updated geomap to use to OpenLayers 3, as a result RSS and ATOM feeds are no longer supported. The configuration of some Static Map has been changed and a revised configuration is used to support tile source (XYZ) basemap. <a href="geomap-v4.0.30-en.html">Access at the working example prior v4.0.30</a>.</p>
		</aside>
	</div>
	<div class="col-md-auto">
		<p>Displays a dynamic map over which information from additional sources can be overlaid.</p>
		<ul>
			<li><a href="#dynamic">Dynamic map example</a></li>
			<li><a href="#static">Static Map example</a></li>
			<li><a href="#wms">WMS Map example</a></li>
			<li><a href="#ESRI-REST">ESRI REST basemap example</a></li>
			<li><a href="#osm">OSM basemap example</a></li>
			<li><a href="#tile-source">Tile Source (XYZ) basemap example</a></li>
			<li><a href="#filtering">Filtering example</a></li>
			<li><a href="#aoiZoomOnLoad">Zoom to AOI on page load (extent)</a></li>
			<li><a href="#singleItem">Merge label and legend symbol</a></li>
			<li><a href="#twoCols">Display legend labels over two columns</a></li>
		</ul>
	</div>
</div>

<section>
	<h2 id="dynamic">Dynamic map example</h2>

	<p>Since WET 4.0.31 we updated geomap to use to OpenLayers 3, as a result RSS and ATOM feeds are no longer supported. Many of the services that were used for this working example no longer exist and were removed. Please update the <code>config-en.js</code> as per provided <a href="./demo/config-en.js">example</a>.</p>

	<!-- GeomapStart -->
	<div id="sample_map"
		class="wb-geomap position scaleline geocoder geolocation aoi aoi-open"
		data-wb-geomap='{
			"layersFile": "demo/config-en{{environment.suffix}}.js",
			"tables": [{
				"id": "bbox",
				"zoom": true,
				"visible": false,
				"popups": true
			},{
				"id": "cities",
				"zoom": true,
				"tooltips": true,
				"tooltipText": "Population 2011",
				"popups": true,
				"visible": true,
				"popupsInfo": {
					"content": "<div style=\"white-space:nowrap;\"><strong>Census subdivision: </strong>_Census subdivision<br/><strong>Population: </strong>_Population 2011</div>"
				},
				"style": {
					"type": "rule",
					"rule": [
					{
						"field": "Rank",
						"value": [3],
						"filter": "GREATER_THAN",
						"init": {
							"fillColor": "#e74c3c",
							"pointRadius": 2.6,
							"fillOpacity": 1.0,
							"strokeWidth": 8,
							"strokeColor": [ 231, 76, 60, 0.5 ]
						}
					},
					{
						"field": "Rank",
						"value": [2, 3],
						"filter": "BETWEEN",
						"init": {
							"fillColor": "#e74c3c",
							"pointRadius": 4,
							"fillOpacity": 1.0,
							"strokeWidth": 12,
							"strokeColor": [ 231, 76, 60, 0.5 ]
						}
					},
					{
						"field": "Rank",
						"value": [1],
						"filter": "EQUAL_TO",
						"init": {
							"fillColor": "#e74c3c",
							"pointRadius": 5.3,
							"fillOpacity": 1.0,
							"strokeWidth": 16,
							"strokeColor": [ 231, 76, 60, 0.5 ]
						}
					}
				]}
			}]
		}'>

		<div class="row">
			<div class="col-md-9 form-group">
				<!-- Insert Map Start (mandatory) -->
				<div class="wb-geomap-map"></div>
				<!-- Insert Map End -->
			</div>

			<!-- Insert Legend Start (optional) -->
			<section class="col-md-3 form-group">
				<div class="panel panel-default">
					<header class="panel-heading">
						<h3 class="panel-title">Legend</h3>
					</header>
					<div class="panel-body">
						<div class="wb-geomap-legend"></div>
					</div>
				</div>
			</section>
			<!-- Insert Legend End -->
		</div>

		<!-- Insert Layer Data Start (mandatory) -->
		<div class="row">
			<section>
				<div class="wb-geomap-layers col-md-12">
					<h3>Example - Inline Layer Data</h3>
					<p>Layers are created from the following tables. An attribute <code>data-geometry</code> to hold the geometry and an attribute <code>data-type</code> to hold the geometry type (wkt or bbox) are required for each row.</p>
					<div class="panel panel-default">
						<div class="panel-heading">
							<div class="panel-title">Points</div>
						</div>
						<div class="panel-body">
							<table id="cities" aria-label="Points" class="table wb-tables">
								<caption>Table of point geometries</caption>
								<thead>
									<tr>
										<th>Rank</th>
										<th>Census subdivision</th>
										<th>Population 2011</th>
									</tr>
								</thead>
								<tbody>
									<tr data-geometry="POINT (-79.3847 43.6476)" data-type="wkt">
										<td>1</td>
										<td><a href="https://www.wikipedia.org/wiki/Toronto" title="Toronto">Toronto</a></td>
										<td>2,615,060</td>
									</tr>
									<tr data-geometry="POINT (-73.56123 45.52927)" data-type="wkt">
										<td>2</td>
										<td><a href="https://www.wikipedia.org/wiki/Montreal" title="Montreal">Montreal</a></td>
										<td>1,649,519</td>
									</tr>
									<tr data-geometry="POINT (-114.05879 51.04668)" data-type="wkt">
										<td>3</td>
										<td><a href="https://www.wikipedia.org/wiki/Calgary" title="Calgary">Calgary</a></td>
										<td>1,096,833</td>
									</tr>
									<tr data-geometry="POINT (-75.68937 45.41072)" data-type="wkt">
										<td>4</td>
										<td><a href="https://www.wikipedia.org/wiki/Ottawa" title="Ottawa">Ottawa</a></td>
										<td>883,391</td>
									</tr>
									<tr data-geometry="POINT (-113.49590 53.53398)" data-type="wkt">
										<td>5</td>
										<td><a href="https://www.wikipedia.org/wiki/Edmonton" title="Edmonton">Edmonton</a></td>
										<td>812,201</td>
									</tr>
									<tr data-geometry="POINT (-79.65 43.60)" data-type="wkt">
										<td>6</td>
										<td><a href="https://www.wikipedia.org/wiki/Mississauga" title="Mississauga">Mississauga</a></td>
										<td>713,443</td>
									</tr>
									<tr data-geometry="POINT (-97.14352 49.89375)" data-type="wkt">
										<td>7</td>
										<td><a href="https://www.wikipedia.org/wiki/Winnipeg" title="Winnipeg">Winnipeg</a></td>
										<td>663,617</td>
									</tr>
									<tr data-geometry="POINT (-123.10091 49.26428)" data-type="wkt">
										<td>8</td>
										<td><a href="https://www.wikipedia.org/wiki/Vancouver" title="Vancouver">Vancouver</a></td>
										<td>603,502</td>
									</tr>
									<tr data-geometry="POINT (-79.76181 43.68686)" data-type="wkt">
										<td>9</td>
										<td><a href="https://www.wikipedia.org/wiki/Brampton" title="Brampton">Brampton</a></td>
										<td>523,911</td>
									</tr>
									<tr data-geometry="POINT (-79.86788 43.25717)" data-type="wkt">
										<td>10</td>
										<td><a href="https://www.wikipedia.org/wiki/Hamilton,_Ontario" title="Hamilton, Ontario">Hamilton</a></td>
										<td>519,949</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>

					<div class="panel panel-default">
						<div class="panel-heading">
							<div class="panel-title">Bounding Boxes</div>
						</div>
						<div class="panel-body">
							<table id="bbox" aria-label="Bounding Boxes" class="table table-condensed">
								<caption>Table of bounding box geometries</caption>
								<thead>
									<tr>
										<th>Title</th>
										<th>Geometry</th>
									</tr>
								</thead>
								<tbody>
									<tr data-geometry="-136, 61, -118, 70" data-type="bbox">
										<td>Report on 2011 field activities and collection of ground thermal and active layer data in the Mackenzie Corridor completed under Northwest Territories science licence #14918</td>
										<td>-136, 61, -118, 70</td>
									</tr>
									<tr data-geometry="-92.5, 72.75, -79, 75.5" data-type="bbox">
										<td>Dinoflagellate cysts from upper cretaceous-lower tertiary sections, Bylot and Devon Islands, Arctic Archipelago</td>
										<td>-92.5, 72.75, -79, 75.5</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="row">
						<section class="col-md-12">
							<h3>Example - Remote &amp; File-based Layer Data</h3>
							<p>Layers are created from file-based formats, feeds, and web API's.</p>
						</section>
					</div>
				</div>
			</section>
		</div>
		<!-- Insert Layer Data End -->
	</div>
	<!-- GeomapEnd -->

	<section>
		<h3>Code</h3>
		<details class="mrgn-bttm-lg">
			<summary>View code</summary>
			<pre><code>&lt;!-- GeomapStart --&gt;
&lt;div id=&quot;sample_map&quot;
	class=&quot;wb-geomap position scaleline geocoder geolocation aoi aoi-open&quot;
	data-wb-geomap='{
		&quot;layersFile&quot;: &quot;demo/config-en{{environment.suffix}}.js&quot;,
		&quot;tables&quot;: [{
			&quot;id&quot;: &quot;bbox&quot;,
			&quot;tab&quot;: false,
			&quot;zoom&quot;: true,
			&quot;visible&quot;: false,
			&quot;popups&quot;: true
		},{
			&quot;id&quot;: &quot;cities&quot;,
			&quot;zoom&quot;: true,
			&quot;tab&quot;: false,
			&quot;popups&quot;: true,
			&quot;visible&quot;: true,
			&quot;popupsInfo&quot;: {
				&quot;id&quot;: &quot;citiesPopup&quot;,
				&quot;height&quot;: 200,
				&quot;width&quot;: 300,
				&quot;close&quot;: true,
				&quot;content&quot;: &quot;&lt;div style=\&quot;white-space:nowrap;\&quot;&gt;&lt;p&gt;&lt;strong&gt;Census subdivision: &lt;/strong&gt;_Census subdivision&lt;div&gt;&lt;a href=\&quot;#\&quot; class=\&quot;button\&quot; role=\&quot;button\&quot; title=\&quot;Zoom to city\&quot; aria-label=\&quot;Zoom to city\&quot; onclick=\&quot;wb.doc.zoomFeature()\&quot;&gt;Zoom to city&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&quot;
			},
			&quot;style&quot;: {
				&quot;type&quot;: &quot;rule&quot;,
				&quot;rule&quot;: [
				{
					&quot;field&quot;: &quot;Rank&quot;,
					&quot;value&quot;: [3],
					&quot;filter&quot;: &quot;GREATER_THAN&quot;,
					&quot;init&quot;: {
						&quot;strokeColor&quot;: &quot;#0083f5&quot;,
						&quot;fillColor&quot;: &quot;#57a8f0&quot;,
						&quot;pointRadius&quot;: 6,
						&quot;fillOpacity&quot;: 0.80,
						&quot;strokeWidth&quot;: 1.0
					}
				},
				{
					&quot;field&quot;: &quot;Rank&quot;,
					&quot;value&quot;: [2, 3],
					&quot;filter&quot;: &quot;BETWEEN&quot;,
					&quot;init&quot;: {
						&quot;strokeColor&quot;: &quot;#F90&quot;,
						&quot;fillColor&quot;: &quot;#F90&quot;,
						&quot;pointRadius&quot;: 8,
						&quot;fillOpacity&quot;: 0.80,
						&quot;strokeWidth&quot;: 1.0
					}
				},
				{
					&quot;field&quot;: &quot;Rank&quot;,
					&quot;value&quot;: [1],
					&quot;filter&quot;: &quot;EQUAL_TO&quot;,
					&quot;init&quot;: {
						&quot;strokeColor&quot;: &quot;#F00&quot;,
						&quot;fillColor&quot;: &quot;#F00&quot;,
						&quot;pointRadius&quot;: 10,
						&quot;fillOpacity&quot;: 0.80,
						&quot;strokeWidth&quot;: 1.0
					}
				}
			]}
		}]
	}'&gt;

	&lt;div class=&quot;row&quot;&gt;
		&lt;div class=&quot;col-md-9&quot;&gt;
		&lt;!-- Insert Map Start (mandatory) --&gt;
		&lt;div class=&quot;wb-geomap-map&quot;&gt;&lt;/div&gt;
		&lt;!-- Insert Map End --&gt;
		&lt;/div&gt;

		&lt;!-- Insert Legend Start (optional) --&gt;
		&lt;section class=&quot;wb-geomap-legend col-md-3&quot;&gt;
			&lt;h3&gt;Legend&lt;/h3&gt;
		&lt;/section&gt;
		&lt;!-- Insert Legend End --&gt;
	&lt;/div&gt;

	&lt;div class=&quot;row&quot;&gt;
		&lt;section class=&quot;col-md-12&quot;&gt;
			&lt;h3&gt;Example - Remote &amp;amp; File-based Layer Data&lt;/h3&gt;
			&lt;p&gt;Layers are created from file-based formats, feeds, and web API's.&lt;/p&gt;
		&lt;/section&gt;
	&lt;/div&gt;

	&lt;!-- Insert Layer Data Start (mandatory) --&gt;
	&lt;div class=&quot;row&quot;&gt;
		&lt;section&gt;
			&lt;div class=&quot;wb-geomap-layers col-md-12&quot;&gt;
				&lt;h3&gt;Example - Inline Layer Data&lt;/h3&gt;
				&lt;p&gt;Layers are created from the following tables. An attribute &lt;em&gt;data-geometry&lt;/em&gt; to hold the geometry and an attribute &lt;em&gt;data-type&lt;/em&gt; to hold the geometry type (wkt or bbox) are required for each row.&lt;/p&gt;
				&lt;section&gt;
					&lt;h4&gt;Points&lt;/h4&gt;
					&lt;table id=&quot;cities&quot; aria-label=&quot;Points&quot; class=&quot;table wb-tables&quot;&gt;
						&lt;caption&gt;
							Table of point geometries.
						&lt;/caption&gt;
						&lt;thead&gt;
							&lt;tr&gt;
								&lt;th&gt;Rank&lt;/th&gt;
								&lt;th&gt;Census subdivision&lt;/th&gt;
								&lt;th&gt;Population 2011&lt;/th&gt;
							&lt;/tr&gt;
						&lt;/thead&gt;
						&lt;tbody&gt;
							&lt;tr data-geometry=&quot;POINT (-79.3847 43.6476)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;1&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Toronto&quot; title=&quot;Toronto&quot;&gt;Toronto&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;2615060&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-73.56123 45.52927)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;2&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Montreal&quot; title=&quot;Montreal&quot;&gt;Montreal&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;1649519&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-114.05879 51.04668)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;3&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Calgary&quot; title=&quot;Calgary&quot;&gt;Calgary&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;1096833&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-75.68937 45.41072)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;4&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Ottawa&quot; title=&quot;Ottawa&quot;&gt;Ottawa&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;883391&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-113.49590 53.53398)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;5&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Edmonton&quot; title=&quot;Edmonton&quot;&gt;Edmonton&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;812201&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-79.65 43.60)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;6&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Mississauga&quot; title=&quot;Mississauga&quot;&gt;Mississauga&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;713443&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-97.14352 49.89375)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;7&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Winnipeg&quot; title=&quot;Winnipeg&quot;&gt;Winnipeg&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;663617&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-123.10091 49.26428)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;8&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Vancouver&quot; title=&quot;Vancouver&quot;&gt;Vancouver&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;603502&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-79.76181 43.68686)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;9&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Brampton&quot; title=&quot;Brampton&quot;&gt;Brampton&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;523911&lt;/td&gt;
							&lt;/tr&gt;
							&lt;tr data-geometry=&quot;POINT (-79.86788 43.25717)&quot; data-type=&quot;wkt&quot;&gt;
								&lt;td&gt;10&lt;/td&gt;
								&lt;td&gt;&lt;a href=&quot;https://www.wikipedia.org/wiki/Hamilton,_Ontario&quot; title=&quot;Hamilton, Ontario&quot;&gt;Hamilton&lt;/a&gt;&lt;/td&gt;
								&lt;td&gt;519949&lt;/td&gt;
							&lt;/tr&gt;
						&lt;/tbody&gt;
					&lt;/table&gt;
				&lt;/section&gt;
			&lt;/div&gt;

			&lt;section class=&quot;col-md-12&quot;&gt;
				&lt;h4&gt;Bounding Boxes&lt;/h4&gt;
				&lt;table id=&quot;bbox&quot; aria-label=&quot;Bounding Boxes&quot; class=&quot;table table-condensed&quot;&gt;
					&lt;caption&gt;
						Table of bounding box geometries.
					&lt;/caption&gt;
					&lt;thead&gt;
						&lt;tr&gt;
							&lt;th&gt;Title&lt;/th&gt;
							&lt;th&gt;Geometry&lt;/th&gt;
						&lt;/tr&gt;
					&lt;/thead&gt;
					&lt;tbody&gt;
						&lt;tr data-geometry=&quot;-136, 61, -118, 70&quot; data-type=&quot;bbox&quot;&gt;
							&lt;td&gt;Report on 2011 field activities and collection of ground thermal and active layer data in the Mackenzie Corridor completed under Northwest Territories science licence #14918&lt;/td&gt;
							&lt;td&gt;-136, 61, -118, 70&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry=&quot;-92.5, 72.75, -79, 75.5&quot; data-type=&quot;bbox&quot;&gt;
							&lt;td&gt;Dinoflagellate cysts from upper cretaceous-lower tertiary sections, Bylot and Devon Islands, Arctic Archipelago&lt;/td&gt;
							&lt;td&gt;-92.5, 72.75, -79, 75.5&lt;/td&gt;
						&lt;/tr&gt;
					&lt;/tbody&gt;
				&lt;/table&gt;
			&lt;/section&gt;
		&lt;/section&gt;
	&lt;/div&gt;
	&lt;!-- Insert Layer Data End --&gt;
&lt;/div&gt;
&lt;!-- GeomapEnd --&gt;</code></pre>
		</details>
	</section>
</section>

<section>
	<h2 id="static">Static Map example</h2>
	<p>Geomap can be configured to provide a static map ideally suited to display a location or bounding box extent.</p>

	<p>Since WET 4.0.31 we updated geomap to use to OpenLayers 3 and code in the <code>client_functions.js</code> has been changed. Please update the <code>client_functions.js</code> as per provided <a href="./demo/client_functions.js">example</a>. Static map that was using very similar configuration like before v4.0.30, which are deprecated, and as per demoed should continue to work. We recommend you to update your code like the following example.</p>

	<!-- GeomapStart -->
	<div id="location_map"
		class="wb-geomap static"
		data-wb-geomap='{
			"tables": [{
				"id": "addNRCan",
				"style": {
					"type": "symbol",
					"init": {
						"pointRadius": 12,
						"graphicName": "star",
						"strokeColor": "#FF0000",
						"fillColor": "#FF0000",
						"fillOpacity": 0.7
					}
				}
			}]
		}'>
		<div class="row">
			<div class="col-md-4">
				<!-- Insert Map Start (mandatory) -->
				<div class="wb-geomap-map"></div>
				<!-- Insert Map End -->
			</div>
			<!-- Insert Layer Data Start (mandatory) -->
			<div class="wb-geomap-layers col-md-4">
				<table id="addNRCan" aria-label="NRCan Ottawa office address" class="table">
					<caption class="wb-inv">Natural Resources Canada Ottawa office address</caption>
					<thead>
						<tr>
							<th>Address</th>
						</tr>
					</thead>
					<tbody>
						<tr data-geometry="POINT (-75.70535 45.3995)" data-type="wkt">
							<td>615 Booth St.,<br />Ottawa (ON),<br />Canada,<br />K1A 0E8</td>
						</tr>
					</tbody>
				</table>
			</div>
			<!-- Insert Layer Data End -->
		</div>
	</div>
	<!-- GeomapEnd -->

	<section>
		<h3>Code</h3>
		<details class="mrgn-tp-lg">
			<summary>View code</summary>
			<pre><code>&lt;!-- GeomapStart --&gt;
&lt;div id=&quot;location_map&quot;
	class=&quot;wb-geomap static&quot;
	data-wb-geomap='{
		&quot;tables&quot;: [{
			&quot;id&quot;: &quot;addNRCan&quot;,
			&quot;style&quot;: {
				&quot;type&quot;: &quot;symbol&quot;,
				&quot;init&quot;: {
					&quot;pointRadius&quot;: 12,
					&quot;graphicName&quot;: &quot;star&quot;,
					&quot;strokeColor&quot;: &quot;#FF0000&quot;,
					&quot;fillColor&quot;: &quot;#FF0000&quot;,
					&quot;fillOpacity&quot;: 0.7
				}
			}
		}]
	}'&gt;
	&lt;div class=&quot;row&quot;&gt;
		&lt;div class=&quot;col-md-4&quot;&gt;
			&lt;!-- Insert Map Start (mandatory) --&gt;
			&lt;div class=&quot;wb-geomap-map&quot;&gt;&lt;/div&gt;
			&lt;!-- Insert Map End --&gt;
		&lt;/div&gt;
		&lt;!-- Insert Layer Data Start (mandatory) --&gt;
		&lt;div class=&quot;wb-geomap-layers col-md-4&quot;&gt;
			&lt;table id=&quot;addNRCan&quot; aria-label=&quot;NRCan Ottawa office adress&quot; class=&quot;table&quot;&gt;
				&lt;caption class=&quot;wb-inv&quot;&gt;Natural Resources Canada Ottawa office adress&lt;/caption&gt;
				&lt;thead&gt;
					&lt;tr&gt;
						&lt;th&gt;Adress&lt;/th&gt;
					&lt;/tr&gt;
				&lt;/thead&gt;
				&lt;tbody&gt;
					&lt;tr data-geometry=&quot;POINT (-75.70535 45.3995)&quot; data-type=&quot;wkt&quot;&gt;
						&lt;td&gt;615 Booth St.,&lt;br /&gt;Ottawa (ON),&lt;br /&gt;Canada,&lt;br /&gt;K1A 0E8&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;
		&lt;/div&gt;
		&lt;!-- Insert Layer Data End --&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- GeomapEnd --&gt;</code></pre>
		</details>
	</section>
</section>

<section>
	<h2 id="wms">WMS Map example</h2>
	<p>Geomap can be configured to use a WMS map as basemap. Configuration can be made in the config file in basemap property.</p>

	<!-- GeomapStart -->
	<div id="wms_map"
		class="wb-geomap"
		data-wb-geomap='{
			"layersFile": "demo/configwms-en{{environment.suffix}}.js"
		}'>
		<div class="row">
			<div class="col-md-4">
				<!-- Insert Map Start (mandatory) -->
				<div class="wb-geomap-map"></div>
				<!-- Insert Map End -->
			</div>
			<!-- Insert Layer Data Start (mandatory) -->
			<div class="wb-geomap-layers col-md-4">
			</div>
			<!-- Insert Layer Data End -->
		</div>
	</div>
	<!-- GeomapEnd -->

		<section>
		<h3>Code</h3>
		<details class="mrgn-tp-lg">
			<summary>View code</summary>
			<pre><code>&lt;!-- GeomapStart --&gt;
&lt;div id=&quot;location_map&quot;
	class=&quot;wb-geomap&quot;
	data-wb-geomap='{
		&quot;layersFile&quot;: &quot;demo/configwms-en{{environment.suffix}}.js&quot;
	}'&gt;
	&lt;div class=&quot;row&quot;&gt;
		&lt;div class=&quot;col-md-4&quot;&gt;
			&lt;!-- Insert Map Start (mandatory) --&gt;
			&lt;div class=&quot;wb-geomap-map&quot;&gt;&lt;/div&gt;
			&lt;!-- Insert Map End --&gt;
		&lt;/div&gt;
		&lt;!-- Insert Layer Data Start (mandatory) --&gt;
		&lt;div class=&quot;wb-geomap-layers col-md-4&quot;&gt;&lt;/div&gt;
		&lt;!-- Insert Layer Data End --&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- GeomapEnd --&gt;</code></pre>
		</details>

		<details class="mrgn-tp-lg">
			<summary>View config file</summary>
			<pre><code>
var wet_boew_geomap = {
	// OPTIONAL: note that Geomap will provide a default basemap if not specified here.
	basemap : {
		title: &quot;WMS-Toporama&quot;,
		type: &quot;wms&quot;,
		url: &quot;http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en&quot;,
		version: &quot;1.1.1&quot;,
		format: &quot;image/jpeg&quot;,
		layers: &quot;WMS-Toporama&quot;,
		mapOptions: {
			maxExtent: &quot;-141, 41, -52, 84&quot;,
			restrictedExtent: &quot;-141, 41, -52, 84&quot;,
			maxResolution: &quot;auto&quot;,
			projection: &quot;EPSG:4269&quot;,
			units: &quot;m&quot;,
			displayProjection: &quot;EPSG:4269&quot;,
			aspectRatio: 0.8
		}
	},
	overlays: []
};
		</code></pre>
		</details>
	</section>
</section>

<section>
	<h2 id="ESRI-REST">ESRI REST basemap example</h2>
	<p>Geomap can be configured to use an ESRI REST service as basemap. Configuration can be made in the config file in basemap property.</p>

	<!-- GeomapStart -->
	<div id="esri_map"
		class="wb-geomap"
		data-wb-geomap='{
			"layersFile": "demo/config-esri-en{{environment.suffix}}.js"
		}'>
		<div class="row">
			<div class="col-md-4">
				<!-- Insert Map Start (mandatory) -->
				<div class="wb-geomap-map"></div>
				<!-- Insert Map End -->
			</div>
			<!-- Insert Layer Data Start (mandatory) -->
			<div class="wb-geomap-layers col-md-4"></div>
			<!-- Insert Layer Data End -->
		</div>
	</div>
	<!-- GeomapEnd -->

		<section>
		<h3>Code</h3>
		<details class="mrgn-tp-lg">
			<summary>View code</summary>
			<pre><code>&lt;!-- GeomapStart --&gt;
&lt;div id=&quot;esri_map&quot;
	class=&quot;wb-geomap&quot;
	data-wb-geomap='{
		&quot;layersFile&quot;: &quot;demo/config-esri-en{{environment.suffix}}.js&quot;
	}'&gt;
	&lt;div class=&quot;row&quot;&gt;
		&lt;div class=&quot;col-md-4&quot;&gt;
			&lt;!-- Insert Map Start (mandatory) --&gt;
			&lt;div class=&quot;wb-geomap-map&quot;&gt;&lt;/div&gt;
			&lt;!-- Insert Map End --&gt;
		&lt;/div&gt;
		&lt;!-- Insert Layer Data Start (mandatory) --&gt;
		&lt;div class=&quot;wb-geomap-layers col-md-4&quot;&gt;&lt;/div&gt;
		&lt;!-- Insert Layer Data End --&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- GeomapEnd --&gt;</code></pre>
		</details>

		<details class="mrgn-tp-lg">
			<summary>View config file</summary>
			<pre><code>
var wet_boew_geomap = {
	basemap : {
		title: &quot;Basic Map&quot;,
		type: &quot;esri&quot;,
		url: &quot;https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/provinces1c/MapServer/export&quot;,
		options: { singleTile: false, ratio: 1.0, projection: &quot;EPSG:3978&quot;, fractionalZoom: true },
		mapOptions: {
			maxExtent: &quot;-3000000.0, -800000.0, 4000000.0, 3900000.0&quot;,
			maxResolution: &quot;auto&quot;,
			projection: &quot;EPSG:3978&quot;,
			restrictedExtent: &quot;-3000000.0, -800000.0, 4000000.0, 3900000.0&quot;,
			units: &quot;m&quot;,
			displayProjection: &quot;EPSG:4269&quot;,
			numZoomLevels: 2
		}
	}
};
		</code></pre>
		</details>
	</section>
</section>

<section>
	<h2 id="osm">OSM basemap example</h2>
	<p>Geomap can be configured to use an OpenStreetMap (OSM) basemap. Configuration can be made in the config file in basemap property.</p>

	<!-- GeomapStart -->
	<div id="osm_map"
		class="wb-geomap"
		data-wb-geomap='{
			"layersFile": "demo/config-osm-en{{environment.suffix}}.js"
		}'>
		<div class="row">
			<div class="col-md-4">
				<!-- Insert Map Start (mandatory) -->
				<div class="wb-geomap-map"></div>
				<!-- Insert Map End -->
			</div>
			<!-- Insert Layer Data Start (mandatory) -->
			<div class="wb-geomap-layers col-md-4"></div>
			<!-- Insert Layer Data End -->
		</div>
	</div>
	<!-- GeomapEnd -->

	<section>
		<h3>Code</h3>
		<details class="mrgn-tp-lg">
			<summary>View code</summary>
			<pre><code>&lt;!-- GeomapStart --&gt;
&lt;div id=&quot;osm_map&quot;
	class=&quot;wb-geomap&quot;
	data-wb-geomap='{
		&quot;layersFile&quot;: &quot;demo/config-osm-en.js&quot;
	}'&gt;
	&lt;div class=&quot;row&quot;&gt;
		&lt;div class=&quot;col-md-4&quot;&gt;
			&lt;!-- Insert Map Start (mandatory) --&gt;
			&lt;div class=&quot;wb-geomap-map&quot;&gt;&lt;/div&gt;
			&lt;!-- Insert Map End --&gt;
		&lt;/div&gt;
		&lt;!-- Insert Layer Data Start (mandatory) --&gt;
		&lt;div class=&quot;wb-geomap-layers col-md-4&quot;&gt;&lt;/div&gt;
		&lt;!-- Insert Layer Data End --&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- GeomapEnd --&gt;</code></pre>
		</details>

		<details class="mrgn-tp-lg">
			<summary>View config file</summary>
			<pre><code>
var wet_boew_geomap = {
	title: "OSM Map",
	type: "osm",
	mapOptions: {
		center: [ -52.7222765, 47.5410882 ],
		zoomLevel: 11
	}
};
		</code></pre>
		</details>
	</section>
</section>

<section>
	<h2 id="tile-source">Tile Source (XYZ) basemap example</h2>
	<p>Geomap can be configured to use an Tile Source (XYZ) basemap. Configuration can be made in the config file in basemap property.</p>
	<p>Prior to WET 4.0.31 the service that was used to create this working example has been retired. Please see the revised configuration below.</p>
	<!-- GeomapStart -->
	<div id="xyz_map"
		class="wb-geomap"
		data-wb-geomap='{
			"layersFile": "demo/config-xyz-en.js",
			"attribution": { "text":"Tiles Courtesy of &lt;a href=\"https://www.mapquest.com/\" target=\"_blank\"&gt;MapQuest&lt;/a&gt;", "href":"" }
		}'>
		<div class="row">
			<div class="col-md-4">
				<!-- Insert Map Start (mandatory) -->
				<div class="wb-geomap-map"></div>
				<!-- Insert Map End -->
			</div>
			<!-- Insert Layer Data Start (mandatory) -->
			<div class="wb-geomap-layers col-md-4"></div>
			<!-- Insert Layer Data End -->
		</div>
	</div>
	<!-- GeomapEnd -->

	<section>
		<h3>Code</h3>
		<details class="mrgn-tp-lg">
			<summary>View code</summary>
			<pre><code>&lt;!-- GeomapStart --&gt;
&lt;div id=&quot;xyz_map&quot;
	class=&quot;wb-geomap&quot;
	data-wb-geomap='{
		&quot;layersFile&quot;: &quot;demo/config-xyz-en.js&quot;
	}'&gt;
	&lt;div class=&quot;row&quot;&gt;
		&lt;div class=&quot;col-md-4&quot;&gt;
			&lt;!-- Insert Map Start (mandatory) --&gt;
			&lt;div class=&quot;wb-geomap-map&quot;&gt;&lt;/div&gt;
			&lt;!-- Insert Map End --&gt;
		&lt;/div&gt;
		&lt;!-- Insert Layer Data Start (mandatory) --&gt;
		&lt;div class=&quot;wb-geomap-layers col-md-4&quot;&gt;&lt;/div&gt;
		&lt;!-- Insert Layer Data End --&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- GeomapEnd --&gt;</code></pre>
		</details>

		<details class="mrgn-tp-lg">
			<summary>View config file</summary>
			<pre><code>
var wet_boew_geomap = {
	title: "Tile (XYZ) Source Map",
	type: "osm",
	url: [
		"//otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png",
		"//otile2.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png",
		"//otile3.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png",
		"//otile4.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png"
	],
	mapOptions: {
		projection: "EPSG:900913",
		center: [ -123, 49 ],
		zoomLevel: 5
	}
};
		</code></pre>
		</details>
	</section>
</section>

<section>
	<h2 id="filtering">Filtering example</h2>

	<form class="wb-geomap-filter form-inline mrgn-bttm-md" data-bind-to="sample_map_filter">
		<div class="form-group">
			<label for="gm_province">Province:</label>
			<select id="gm_province" class="form-control" data-filter="aoi">
				<!-- The dimension bellow are approximative for this demo purpose only -->
				<option selected value="64.097 -10.63 34.692 -177.659">Canada</option>
				<option value="60 -120 48 -139">British columbia</option>
				<option value="60 -110 49 -120">Alberta</option>
				<option value="POLYGON((-78.30545265676142 62.84207638792185,-79.79959328176142 51.57292655739278,-79.18435890676142 46.810536399556135,-76.45974953176142 45.655468008018055,-75.58084328176142 45.961790800827984,-74.87771828176142 45.47086564114406,-74.96560890676142 44.97562684884711,-71.44998390676142 44.97562684884711,-69.16482765676142 47.349194267123444,-68.19803078176142 47.349194267123444,-64.33084328176142 48.35181916125691,-55.80545265676142 52.00783331541157,-67.31912453176142 52.16984334247954,-64.24295265676142 60.85236662687351,-78.30545265676142 62.84207638792185))">Québec</option>
			</select>
		</div>
		<div class="form-group">
			<label for="gm_layer">Layer:</label>
			<select id="gm_layer" class="form-control" data-filter="layer">
				<option value="Points" selected>Points</option>
				<option value="KML">KML</option>
				<option value="TopoJSON (World 110m)">TopoJSON (World 110m)</option>
				<option value="">(All)</option>
			</select>
		</div>
		<button class="btn btn-primary" aria-controls="sample_map_filter" type="submit">Filter</button>
		<button class="btn btn-link btn-sm p-0 pl-2" type="reset">Reset to defaults</button>
	</form>
	<div id="sample_map_filter"
		class="wb-geomap position scaleline geocoder geolocation"
		data-wb-geomap='{
			"tables": [{
				"id": "cities_forFilterSample",
				"zoom": true,
				"tooltips": true,
				"tooltipText": "Population 2011",
				"popups": true,
				"visible": true,
				"popupsInfo": {
					"content": "<div style=\"white-space:nowrap;\"><strong>Census subdivision: </strong>_Census subdivision<br/><strong>Population: </strong>_Population 2011</div>"
				},
				"style": {
					"type": "rule",
					"rule": [
					{
						"field": "Rank",
						"value": [3],
						"filter": "GREATER_THAN",
						"init": {
							"fillColor": "#e74c3c",
							"pointRadius": 2.6,
							"fillOpacity": 1.0,
							"strokeWidth": 8,
							"strokeColor": [ 231, 76, 60, 0.5 ]
						}
					},
					{
						"field": "Rank",
						"value": [2, 3],
						"filter": "BETWEEN",
						"init": {
							"fillColor": "#e74c3c",
							"pointRadius": 4,
							"fillOpacity": 1.0,
							"strokeWidth": 12,
							"strokeColor": [ 231, 76, 60, 0.5 ]
						}
					},
					{
						"field": "Rank",
						"value": [1],
						"filter": "EQUAL_TO",
						"init": {
							"fillColor": "#e74c3c",
							"pointRadius": 5.3,
							"fillOpacity": 1.0,
							"strokeWidth": 16,
							"strokeColor": [ 231, 76, 60, 0.5 ]
						}
					}
				]}
			}],
			"overlays": [
				{
					"title": "KML",
					"caption": "This data is extracted from the <a href=\"http://geogratis.gc.ca/api/en/nrcan-rncan/ess-sst/457ede2f-fd65-5936-ab60-3fe71da0e98b\">Principal mineral areas of Canada</a> publication.",
					"type": "kml",
					"url": "demo/producing-mines.kml",
					"visible": false,
					"datatable": true,
					"tooltips": true,
					"tooltipText": "Operation",
					"popups": true,
					"attributes": {
						"Type_": "Type",
						"OwnersE": "Owner",
						"OperationE": "Operation",
						"ComGroupE": "Commodity Group",
						"CommodityE": "Commodity"
					},
					"style": {
						"type": "unique",
						"field": "Type",
						"init": {
							"Coal": {
								"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA+hJREFUSInN1n9MVWUYwPHvOfeC51zvubeQiwtDCS37sZxbP5YaKbVqaw1W/DKCQiaEBfYD19ZabrlaMp0tNREItJBoDabWrC2pK1qbxXRMmoMwDav1R8GFe4DzAvee0x/iTbpw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FyQDnTMta43C4fp0qb9rxVlTXexNY9S1Lb5rhp4Ee07LSpkMiQhNYrRCDzZJks0XKEyI45Ha7RaScGT9YRXFHd5nNEH8C+eGD9m6tNTgAAAAASUVORK5CYII=",
								"fillOpacity": "1",
								"graphicWidth": "25",
								"name": "Coal mines"
							},
							"Metal mines and mills": {
								"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA9FJREFUSInN1ltoHFUYwPH/mdndzKwzs6l7Iy1N25S+FCLaF69gg5cHq6S2FUSaS5OqD6YxASklgUpTCgqCIki1uTRF0QcDIlJpaWpES4UgrljBh7RRqsVmN5fNbpo52ezO+JBkcZtkk2gRv9fznfObc77vHMbDfxSe/wUkZWoriDdx3eIfJMQPmmZ2/CNIyltbcJ0BYCOIog4u1dJOr9N0s3VNkJRTmxeQcxPf8vFU/7JGSLE4Eq4n4gu2SDutaLr56qog254qx3UHgE3nJy5xJn2+6Gai6jpOJHpojzQQ8QabpZ0Wmm42F4VsO71R4A4Amy8kL9GbPgeAgoKDswjxCpUDwWqybo7TY59RH9xN1Bs6JO2U0HTr0JLQ9HRqg4ABoKI/eZme1Bxycv1hLI/JaGacLya/pt+O5SfPujnab77P65EGmiIv8F78E+ruribqCzXNY00FkOv+6Z2RYgDYejH5Hd2pL/OLWR4DBUHEF+RAeA+bkmUF4zNkmHYkURGmLljNG/FejoTrifpCr0g7Pa7p5tE8ZNuBEkXktg3L63SlzhYcTyIzTtQXmj9CwUR2Mj9WIry0hWqxVIPmG2+xz3iUR7RKTiR6eHfDYcC9Z8kaZZzZRXX4PPkVByPPoSBwcLDdmQKk1GPRMdJN0pmiK3WWJ/T7SDq3Fq2z4sswIH+ifKKMdG6KHA7Ph3bhjDo8bOyg1GNyPN7NmJPK51+wY3iFunYIKGhxBUFd+FnGZpN0xDtJ5FJFZq4RWogS4WWHsZ2J7CR+tYQtnrI7D3mFSluoFkO5i6M3T3Gvr4IXQ3sg0cdgZujOQB6h0h6qw1INjsd7GHfSXJQ/MjuWozG8FyfxKd9nrv07yCNU2oI1WKrBsfhcdy3EN/IK2dEsjeG95BJ9xDLDxSHHcRxFxSnX1iuV3nKuzF7PJ1R6N+FXdY6NdDPpLm7byzO/kE1k2R2oIpaYg2rNJ+cGhcjfFw+AYRjTUqYb/Ire0xLdr7wz8lEei2WGiY2cLLrrwcwQg4m5OjVaT/F46UOA+ysorxVAAJpmnpEyLfyKv7slul95e+RDfp79vShwexy0dvFY6YMAwy5Kla4Z+aMpqJGmmb0LWGu0RqwFe8l6mqrSBwCuuVCl60bBxEXNoGnmaWmnFb/i71wt9nLgGXYG7ge4OoeYf9yes2TXabrZLe2U8Cv+U63RGvGbvLEsoiklVGjlAFcd193p91tLJi/b3ppudc1jH2z3b1vhp4Ehx3WrlkOKQvNYp5STfUKoi1/Jv4WUualAICCL5ax4YTUtMLFSzmriL1z5gWQ67XYNAAAAAElFTkSuQmCC",
								"fillOpacity": "1",
								"graphicWidth": "25",
								"name": "Metal mines"
							},
							"Industrial minerals": {
								"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA79JREFUSInN1ktMXFUYwPH/uVxmzoV5tBUGDe+SGmnwFWVBqQHUhYmJxo1xKZg2Pmh91IVJFWx140JXTapC62NtoombYmgHmoZQSUxUKDVWpuVheQ2tzAz3zMDc42KmIAwMUBvjtz3f/X7nnu87N9fkPwrzfwEpNV8F4iO0zr4hIX6S0nv8tiClYpVoJwiUgsjqoHlW2ZGd0vK+uS1IqWjFLWRy8Azhy19vaOS4A1Q0HEX6Ct9QdsSQlvf1LUG2HS1D6yBQPjnURXi4M+vLmHn3EOo5TmXje0hf4LCyI0Ja3sNZIduOlAp0EKiYvNRF+FJHakEYoJ1MRbgoqW1GJ5cYHzhNSW0L0hc4pOx5IS3foXWhhYX5YgFBYPfUcDfhoRSy5+lOci0f8UiYqcHviE50rTytE4ycfYeKhmNU7G/l2oUTFD/ajPQXtaax1lWQ1tdz40oEgaqp4bPMDn66XCvX8iGEgfQVUlb3EtOXK1et66QiuWhjmHdTXNtCqOdDKhuOIv1Fryk7Mictb9syZNt+tyGSe6LTI8wOnlx1OvH5GaS/KHVSwmApNrdycoakpL4N0+3lt+9b2XXv8/hKGgj1fkD1MycA/cC6PUomExltmPz1W8rrDyKEgdYOySW1jJTubyPX2kEo+D7OYpjZoZN4ip/CScxl1Nn0yxC73s3UUAVJNY/WSUpqX2DMWWJX1WMppOcYTmJ6OT86cQaEa/sQsGbEDcr3NROPzjFyrh0nPrmVEtv71glD4i9/hHjsBjkuidu3G3vmTkPCleqJ28NI97vkFTxEad0BRvsc1Gz/HYKESWl9O6bbm278LNE/f2DixyXK6g4y2qdR4Yv/EhImJfvayZVervakputWxCbPMX5xidK6A4z1Oai5geyQ4ziOkYOTf1eZ4drxIImbPy8nyJ0PY7osQr3t6MUbGQUWps8z1p8gUPMco+dTUMHeF9ObFIurII/Hs6BUpMV05Z2ubHjLCPV+soypuQGuBjfeKYCa7Wf0fKpPBTUvU1T9JKBDYLy9CgKQ0vuVUhFhuvJPpbCPSdz8JSuwNgpqXqGo+gmAEY3RZEnPaAaUxr5cwY6I7WCFNa8SqH4c4A8NTZblGfvnesYwSOn9QtkRw3Tld2wVK7y/lcB9jQBXUoh3fG3OulMnLe8pZc8L05X/eWXDERGbubYhkpPrxhOoArjiaN2Yl+ebWC9vw/GWlq8zjX3mL967yU8DvztaN22EZIXSWIdSf30jRE5OtjylklG/36+y5Wx6YaX0Z16e24i/AWg1hRJKTWppAAAAAElFTkSuQmCC",
								"fillOpacity": "1",
								"graphicWidth": "25",
								"name": "Nonmetal Mines"
							},
							"Oil Sands": {
								"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAA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0M2o4FEICUxudKRYTDlXm8uH6bFmo+zHT3lZTA7SNQV0ngmVKAIRutRJfuq0lQHPssgTXUiZVggR1bCJSWAAzaUKLr7l//GU9qBimNT5UZ0RyuzLY7xfLf2UreUxsBBuYR47fbcxbtOqkbx5UZFg5X5tHihjoxOTSyJJIundz/cD7AgGXbm1wuz7VF85YqIHXPsTjW6lu3dpmfBvot2y5ZCkkJxbE2pW6cFCItLVWeUrEpr9erUuUse2Gl9CZfnrsYfwFqWYQCxROHDQAAAABJRU5ErkJggg==",
								"fillOpacity": "1",
								"graphicWidth": "25",
								"name": "Oil sands mines"
							}
						},
						"select": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAACKElEQVR42uWWMU/bQBTHWVBR1aUSG7Sl4oMBoiwd+gEYGBgqWIoCLDDCBEUIqUJqB6TOEe1QCQGOEyeRHBTHl/OLfTkvcNwz2NDkzrGTpVItPeXknPy7/3t/vXdjY//V43nNWR/gyHGcEwzSbJ6QRuMp5DtXvuMcVkaAeO8BoM59X4QyuCZC/hDdrreRG0IpneEereKHXkyxgWH9KUcw33ULmSHtdvutTJeVFRLHr5+lGLY5EEIIecMpLeeBXBZNcfbNSNZRGhlsaSGu604Frmv2Qki1KjiAMH6bWtiPY0NAoxGtLxIY3e6DnJ/vjAcAhkoJQpLiy7UKtLFuCN9xxFXRfFLW9QVjsPoXSFr3FTrrYO9amZrnLlNBLov9akPmC7S/ErS2WlKeOFHVo6ggIVdFdUpxvxKEf3zWgJ6H32olkFalot0XpoEwDVmchspa0iRpexDk6EBfMoBQCToRbm7SDzOKot7Cx5bWgRzZB3PXqKBxF9Tr+RSFKYrQjd8P9WqJol48UIBs237JO3BLbFv5odPDwbXrPeRDR4evfd0h6HTmpJtuaUreswZCeNeryAb9TtnvOpTOI4yMAIsgAGWcAqkdHChdkBvvhoFxhs3UM3EKZJpJjNLFvDAsPg+gJCHTuaasTOMHhFFpELT9yrIZ/a49rj99LEfr/V1DhI8QHDVD3RsY85YQ1ndPiNcIwHEQgDE0JH5qtdpraf/JtLAsa+KfubrdA6qupf9mD9mBAAAAAElFTkSuQmCC",
							"graphicOpacity": "1"
						}
					}
				},
				{
					"title": "TopoJSON (World 110m)",
					"caption": "This is a sample dataset loaded from a remote TopoJSON resource.",
					"type": "topojson",
					"url": "demo/topojson.json",
					"accessible": false,
					"visible": false,
					"style": {
						"strokeColor": "#3399ff",
						"strokeWidth": 2.0
					}
				}
			]
		}'>

		<div class="row">
			<div class="col-md-9 form-group">
				<div class="wb-geomap-map"></div>
			</div>
			<section class="col-md-3 form-group">
				<div class="panel panel-default">
					<header class="panel-heading">
						<h3 class="panel-title">Legend</h3>
					</header>
					<div class="panel-body">
						<div class="wb-geomap-legend"></div>
					</div>
				</div>
			</section>
		</div>


		<div class="wb-geomap-layers">
			<div class="panel panel-default">
				<div class="panel-heading">
					<div class="panel-title">Points</div>
				</div>
				<div class="panel-body">
					<table id="cities_forFilterSample" aria-label="Points" class="table wb-tables">
						<caption>Table of point geometries</caption>
						<thead>
							<tr>
								<th>Rank</th>
								<th>Census subdivision</th>
								<th>Population 2011</th>
							</tr>
						</thead>
						<tbody>
							<tr data-geometry="POINT (-79.3847 43.6476)" data-type="wkt">
								<td>1</td>
								<td><a href="https://www.wikipedia.org/wiki/Toronto" title="Toronto">Toronto</a></td>
								<td>2,615,060</td>
							</tr>
							<tr data-geometry="POINT (-73.56123 45.52927)" data-type="wkt">
								<td>2</td>
								<td><a href="https://www.wikipedia.org/wiki/Montreal" title="Montreal">Montreal</a></td>
								<td>1,649,519</td>
							</tr>
							<tr data-geometry="POINT (-114.05879 51.04668)" data-type="wkt">
								<td>3</td>
								<td><a href="https://www.wikipedia.org/wiki/Calgary" title="Calgary">Calgary</a></td>
								<td>1,096,833</td>
							</tr>
							<tr data-geometry="POINT (-75.68937 45.41072)" data-type="wkt">
								<td>4</td>
								<td><a href="https://www.wikipedia.org/wiki/Ottawa" title="Ottawa">Ottawa</a></td>
								<td>883,391</td>
							</tr>
							<tr data-geometry="POINT (-113.49590 53.53398)" data-type="wkt">
								<td>5</td>
								<td><a href="https://www.wikipedia.org/wiki/Edmonton" title="Edmonton">Edmonton</a></td>
								<td>812,201</td>
							</tr>
							<tr data-geometry="POINT (-79.65 43.60)" data-type="wkt">
								<td>6</td>
								<td><a href="https://www.wikipedia.org/wiki/Mississauga" title="Mississauga">Mississauga</a></td>
								<td>713,443</td>
							</tr>
							<tr data-geometry="POINT (-97.14352 49.89375)" data-type="wkt">
								<td>7</td>
								<td><a href="https://www.wikipedia.org/wiki/Winnipeg" title="Winnipeg">Winnipeg</a></td>
								<td>663,617</td>
							</tr>
							<tr data-geometry="POINT (-123.10091 49.26428)" data-type="wkt">
								<td>8</td>
								<td><a href="https://www.wikipedia.org/wiki/Vancouver" title="Vancouver">Vancouver</a></td>
								<td>603,502</td>
							</tr>
							<tr data-geometry="POINT (-79.76181 43.68686)" data-type="wkt">
								<td>9</td>
								<td><a href="https://www.wikipedia.org/wiki/Brampton" title="Brampton">Brampton</a></td>
								<td>523,911</td>
							</tr>
							<tr data-geometry="POINT (-79.86788 43.25717)" data-type="wkt">
								<td>10</td>
								<td><a href="https://www.wikipedia.org/wiki/Hamilton,_Ontario" title="Hamilton, Ontario">Hamilton</a></td>
								<td>519,949</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>

	<section>
		<h3>Code</h3>
		<details class="mrgn-tp-lg">
			<summary>View code</summary>
			<pre><code>&lt;form class="wb-geomap-filter form-inline mrgn-bttm-md" data-bind-to="sample_map_filter"&gt;
	&lt;div class="form-group"&gt;
		&lt;label for="gm_province"&gt;Province:&lt;/label&gt;
		&lt;select id="gm_province" class="form-control" data-filter="aoi"&gt;
			&lt;!-- The dimension bellow are approximative for this demo purpose only --&gt;
			&lt;option selected value="64.097 -10.63 34.692 -177.659"&gt;Canada&lt;/option&gt;
			&lt;option value="60 -120 48 -139"&gt;British columbia&lt;/option&gt;
			&lt;option value="60 -110 49 -120"&gt;Alberta&lt;/option&gt;
			&lt;option value="POLYGON((-78.30545265676142 62.84207638792185,-79.79959328176142 51.57292655739278,-79.18435890676142 46.810536399556135,-76.45974953176142 45.655468008018055,-75.58084328176142 45.961790800827984,-74.87771828176142 45.47086564114406,-74.96560890676142 44.97562684884711,-71.44998390676142 44.97562684884711,-69.16482765676142 47.349194267123444,-68.19803078176142 47.349194267123444,-64.33084328176142 48.35181916125691,-55.80545265676142 52.00783331541157,-67.31912453176142 52.16984334247954,-64.24295265676142 60.85236662687351,-78.30545265676142 62.84207638792185))"&gt;Québec&lt;/option&gt;
		&lt;/select&gt;
	&lt;/div&gt;
	&lt;div class="form-group"&gt;
		&lt;label for="gm_layer"&gt;Layer:&lt;/label&gt;
		&lt;select id="gm_layer" class="form-control" data-filter="layer"&gt;
			&lt;option value="Points" selected&gt;Points&lt;/option&gt;
			&lt;option value="KML"&gt;KML&lt;/option&gt;
			&lt;option value="TopoJSON (World 110m)"&gt;TopoJSON (World 110m)&lt;/option&gt;
			&lt;option value=""&gt;(All)&lt;/option&gt;
		&lt;/select&gt;
	&lt;/div&gt;
	&lt;button class="btn btn-primary" aria-controls="sample_map_filter" type="submit"&gt;Filter&lt;/button&gt;
	&lt;button class="btn btn-link" type="reset"&gt;Reset page to defaults&lt;/button&gt;
&lt;/form&gt;
&lt;div id="sample_map_filter"
	class="wb-geomap position scaleline geocoder geolocation"
	data-wb-geomap='{
		"tables": [{
			"id": "cities_forFilterSample",
			"zoom": true,
			"tooltips": true,
			"tooltipText": "Population 2011",
			"popups": true,
			"visible": true,
			"popupsInfo": {
				"content": "&lt;div style=\"white-space:nowrap;\"&gt;&lt;strong&gt;Census subdivision: &lt;/strong&gt;_Census subdivision&lt;br/&gt;&lt;strong&gt;Population: &lt;/strong&gt;_Population 2011&lt;/div&gt;"
			},
			"style": {
				"type": "rule",
				"rule": [
				{
					"field": "Rank",
					"value": [3],
					"filter": "GREATER_THAN",
					"init": {
						"fillColor": "#e74c3c",
						"pointRadius": 2.6,
						"fillOpacity": 1.0,
						"strokeWidth": 8,
						"strokeColor": [ 231, 76, 60, 0.5 ]
					}
				},
				{
					"field": "Rank",
					"value": [2, 3],
					"filter": "BETWEEN",
					"init": {
						"fillColor": "#e74c3c",
						"pointRadius": 4,
						"fillOpacity": 1.0,
						"strokeWidth": 12,
						"strokeColor": [ 231, 76, 60, 0.5 ]
					}
				},
				{
					"field": "Rank",
					"value": [1],
					"filter": "EQUAL_TO",
					"init": {
						"fillColor": "#e74c3c",
						"pointRadius": 5.3,
						"fillOpacity": 1.0,
						"strokeWidth": 16,
						"strokeColor": [ 231, 76, 60, 0.5 ]
					}
				}
			]}
		}],
		"overlays": [
			{
				"title": "KML",
				"caption": "This data is extracted from the &lt;a href=\"http://geogratis.gc.ca/api/en/nrcan-rncan/ess-sst/457ede2f-fd65-5936-ab60-3fe71da0e98b\"&gt;Principal mineral areas of Canada&lt;/a&gt; publication.",
				"type": "kml",
				"url": "demo/producing-mines.kml",
				"visible": false,
				"datatable": true,
				"tooltips": true,
				"tooltipText": "Operation",
				"popups": true,
				"attributes": {
					"Type_": "Type",
					"OwnersE": "Owner",
					"OperationE": "Operation",
					"ComGroupE": "Commodity Group",
					"CommodityE": "Commodity"
				},
				"style": {
					"type": "unique",
					"field": "Type",
					"init": {
						"Coal": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA+hJREFUSInN1n9MVWUYwPHvOfeC51zvubeQiwtDCS37sZxbP5YaKbVqaw1W/DKCQiaEBfYD19ZabrlaMp0tNREItJBoDabWrC2pK1qbxXRMmoMwDav1R8GFe4DzAvee0x/iTbpwuZRrPf++z/t8znPe57w7dv6jsP8vICH8i0GqxLIiP5AknVYUbcs/goQYvgHL9AJJIEV0sMgQhn6tomovzgoSYij5MnLU20bzkc+nNeKucfNSaQme+HkvCEOX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K5CYII=",
							"fillOpacity": "1",
							"graphicWidth": "25",
							"name": "Coal mines"
						},
						"Metal mines and mills": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA9FJREFUSInN1ltoHFUYwPH/mdndzKwzs6l7Iy1N25S+FCLaF69gg5cHq6S2FUSaS5OqD6YxASklgUpTCgqCIki1uTRF0QcDIlJpaWpES4UgrljBh7RRqsVmN5fNbpo52ezO+JBkcZtkk2gRv9fznfObc77vHMbDfxSe/wUkZWoriDdx3eIfJMQPmmZ2/CNIyltbcJ0BYCOIog4u1dJOr9N0s3VNkJRTmxeQcxPf8vFU/7JGSLE4Eq4n4gu2SDutaLr56qog254qx3UHgE3nJy5xJn2+6Gai6jpOJHpojzQQ8QabpZ0Wmm42F4VsO71R4A4Amy8kL9GbPgeAgoKDswjxCpUDwWqybo7TY59RH9xN1Bs6JO2U0HTr0JLQ9HRqg4ABoKI/eZme1Bxycv1hLI/JaGacLya/pt+O5SfPujnab77P65EGmiIv8F78E+ruribqCzXNY00FkOv+6Z2RYgDYejH5Hd2pL/OLWR4DBUHEF+RAeA+bkmUF4zNkmHYkURGmLljNG/FejoTrifpCr0g7Pa7p5tE8ZNuBEkXktg3L63SlzhYcTyIzTtQXmj9CwUR2Mj9WIry0hWqxVIPmG2+xz3iUR7RKTiR6eHfDYcC9Z8kaZZzZRXX4PPkVByPPoSBwcLDdmQKk1GPRMdJN0pmiK3WWJ/T7SDq3Fq2z4sswIH+ifKKMdG6KHA7Ph3bhjDo8bOyg1GNyPN7NmJPK51+wY3iFunYIKGhxBUFd+FnGZpN0xDtJ5FJFZq4RWogS4WWHsZ2J7CR+tYQtnrI7D3mFSluoFkO5i6M3T3Gvr4IXQ3sg0cdgZujOQB6h0h6qw1INjsd7GHfSXJQ/MjuWozG8FyfxKd9nrv07yCNU2oI1WKrBsfhcdy3EN/IK2dEsjeG95BJ9xDLDxSHHcRxFxSnX1iuV3nKuzF7PJ1R6N+FXdY6NdDPpLm7byzO/kE1k2R2oIpaYg2rNJ+cGhcjfFw+AYRjTUqYb/Ire0xLdr7wz8lEei2WGiY2cLLrrwcwQg4m5OjVaT/F46UOA+ysorxVAAJpmnpEyLfyKv7slul95e+RDfp79vShwexy0dvFY6YMAwy5Kla4Z+aMpqJGmmb0LWGu0RqwFe8l6mqrSBwCuuVCl60bBxEXNoGnmaWmnFb/i71wt9nLgGXYG7ge4OoeYf9yes2TXabrZLe2U8Cv+U63RGvGbvLEsoiklVGjlAFcd193p91tLJi/b3ppudc1jH2z3b1vhp4Ehx3WrlkOKQvNYp5STfUKoi1/Jv4WUualAICCL5ax4YTUtMLFSzmriL1z5gWQ67XYNAAAAAElFTkSuQmCC",
							"fillOpacity": "1",
							"graphicWidth": "25",
							"name": "Metal mines"
						},
						"Industrial minerals": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA79JREFUSInN1ktMXFUYwPH/uVxmzoV5tBUGDe+SGmnwFWVBqQHUhYmJxo1xKZg2Pmh91IVJFWx140JXTapC62NtoombYmgHmoZQSUxUKDVWpuVheQ2tzAz3zMDc42KmIAwMUBvjtz3f/X7nnu87N9fkPwrzfwEpNV8F4iO0zr4hIX6S0nv8tiClYpVoJwiUgsjqoHlW2ZGd0vK+uS1IqWjFLWRy8Azhy19vaOS4A1Q0HEX6Ct9QdsSQlvf1LUG2HS1D6yBQPjnURXi4M+vLmHn3EOo5TmXje0hf4LCyI0Ja3sNZIduOlAp0EKiYvNRF+FJHakEYoJ1MRbgoqW1GJ5cYHzhNSW0L0hc4pOx5IS3foXWhhYX5YgFBYPfUcDfhoRSy5+lOci0f8UiYqcHviE50rTytE4ycfYeKhmNU7G/l2oUTFD/ajPQXtaax1lWQ1tdz40oEgaqp4bPMDn66XCvX8iGEgfQVUlb3EtOXK1et66QiuWhjmHdTXNtCqOdDKhuOIv1Fryk7Mictb9syZNt+tyGSe6LTI8wOnlx1OvH5GaS/KHVSwmApNrdycoakpL4N0+3lt+9b2XXv8/hKGgj1fkD1MycA/cC6PUomExltmPz1W8rrDyKEgdYOySW1jJTubyPX2kEo+D7OYpjZoZN4ip/CScxl1Nn0yxC73s3UUAVJNY/WSUpqX2DMWWJX1WMppOcYTmJ6OT86cQaEa/sQsGbEDcr3NROPzjFyrh0nPrmVEtv71glD4i9/hHjsBjkuidu3G3vmTkPCleqJ28NI97vkFTxEad0BRvsc1Gz/HYKESWl9O6bbm278LNE/f2DixyXK6g4y2qdR4Yv/EhImJfvayZVervakputWxCbPMX5xidK6A4z1Oai5geyQ4ziOkYOTf1eZ4drxIImbPy8nyJ0PY7osQr3t6MUbGQUWps8z1p8gUPMco+dTUMHeF9ObFIurII/Hs6BUpMV05Z2ubHjLCPV+soypuQGuBjfeKYCa7Wf0fKpPBTUvU1T9JKBDYLy9CgKQ0vuVUhFhuvJPpbCPSdz8JSuwNgpqXqGo+gmAEY3RZEnPaAaUxr5cwY6I7WCFNa8SqH4c4A8NTZblGfvnesYwSOn9QtkRw3Tld2wVK7y/lcB9jQBXUoh3fG3OulMnLe8pZc8L05X/eWXDERGbubYhkpPrxhOoArjiaN2Yl+ebWC9vw/GWlq8zjX3mL967yU8DvztaN22EZIXSWIdSf30jRE5OtjylklG/36+y5Wx6YaX0Z16e24i/AWg1hRJKTWppAAAAAElFTkSuQmCC",
							"fillOpacity": "1",
							"graphicWidth": "25",
							"name": "Nonmetal Mines"
						},
						"Oil Sands": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAA9VJREFUSInN1l9QVFUcwPHvucDuucveXZqCHXOkZakexFkcmHypRon+PFYPNT1UY0zAiEBKJmji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xfLf2UreUxsBBuYR47fbcxbtOqkbx5UZFg5X5tHihjoxOTSyJJIundz/cD7AgGXbm1wuz7VF85YqIHXPsTjW6lu3dpmfBvot2y5ZCkkJxbE2pW6cFCItLVWeUrEpr9erUuUse2Gl9CZfnrsYfwFqWYQCxROHDQAAAABJRU5ErkJggg==",
							"fillOpacity": "1",
							"graphicWidth": "25",
							"name": "Oil sands mines"
						}
					},
					"select": {
						"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAACKElEQVR42uWWMU/bQBTHWVBR1aUSG7Sl4oMBoiwd+gEYGBgqWIoCLDDCBEUIqUJqB6TOEe1QCQGOEyeRHBTHl/OLfTkvcNwz2NDkzrGTpVItPeXknPy7/3t/vXdjY//V43nNWR/gyHGcEwzSbJ6QRuMp5DtXvuMcVkaAeO8BoM59X4QyuCZC/hDdrreRG0IpneEereKHXkyxgWH9KUcw33ULmSHtdvutTJeVFRLHr5+lGLY5EEIIecMpLeeBXBZNcfbNSNZRGhlsaSGu604Frmv2Qki1KjiAMH6bWtiPY0NAoxGtLxIY3e6DnJ/vjAcAhkoJQpLiy7UKtLFuCN9xxFXRfFLW9QVjsPoXSFr3FTrrYO9amZrnLlNBLov9akPmC7S/ErS2WlKeOFHVo6ggIVdFdUpxvxKEf3zWgJ6H32olkFalot0XpoEwDVmchspa0iRpexDk6EBfMoBQCToRbm7SDzOKot7Cx5bWgRzZB3PXqKBxF9Tr+RSFKYrQjd8P9WqJol48UIBs237JO3BLbFv5odPDwbXrPeRDR4evfd0h6HTmpJtuaUreswZCeNeryAb9TtnvOpTOI4yMAIsgAGWcAqkdHChdkBvvhoFxhs3UM3EKZJpJjNLFvDAsPg+gJCHTuaasTOMHhFFpELT9yrIZ/a49rj99LEfr/V1DhI8QHDVD3RsY85YQ1ndPiNcIwHEQgDE0JH5qtdpraf/JtLAsa+KfubrdA6qupf9mD9mBAAAAAElFTkSuQmCC",
						"graphicOpacity": "1"
					}
				}
			},
			{
				"title": "TopoJSON (World 110m)",
				"caption": "This is a sample dataset loaded from a remote TopoJSON resource.",
				"type": "topojson",
				"url": "demo/topojson.json",
				"accessible": false,
				"visible": false,
				"style": {
					"strokeColor": "#3399ff",
					"strokeWidth": 2.0
				}
			}
		]
	}'&gt;

	&lt;div class="row"&gt;
		&lt;div class="col-md-9 form-group"&gt;
			&lt;div class="wb-geomap-map"&gt;&lt;/div&gt;
		&lt;/div&gt;
		&lt;section class="col-md-3 form-group"&gt;
			&lt;div class="panel panel-default"&gt;
				&lt;header class="panel-heading"&gt;
					&lt;h3 class="panel-title"&gt;Legend&lt;/h3&gt;
				&lt;/header&gt;
				&lt;div class="panel-body"&gt;
					&lt;div class="wb-geomap-legend"&gt;&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;/section&gt;
	&lt;/div&gt;


	&lt;div class="wb-geomap-layers"&gt;
		&lt;div class="panel panel-default"&gt;
			&lt;div class="panel-heading"&gt;
				&lt;div class="panel-title"&gt;Points&lt;/div&gt;
			&lt;/div&gt;
			&lt;div class="panel-body"&gt;
				&lt;table id="cities_forFilterSample" aria-label="Points" class="table wb-tables"&gt;
					&lt;caption&gt;Table of point geometries&lt;/caption&gt;
					&lt;thead&gt;
						&lt;tr&gt;
							&lt;th&gt;Rank&lt;/th&gt;
							&lt;th&gt;Census subdivision&lt;/th&gt;
							&lt;th&gt;Population 2011&lt;/th&gt;
						&lt;/tr&gt;
					&lt;/thead&gt;
					&lt;tbody&gt;
						&lt;tr data-geometry="POINT (-79.3847 43.6476)" data-type="wkt"&gt;
							&lt;td&gt;1&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Toronto" title="Toronto"&gt;Toronto&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;2,615,060&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-73.56123 45.52927)" data-type="wkt"&gt;
							&lt;td&gt;2&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Montreal" title="Montreal"&gt;Montreal&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;1,649,519&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-114.05879 51.04668)" data-type="wkt"&gt;
							&lt;td&gt;3&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Calgary" title="Calgary"&gt;Calgary&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;1,096,833&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-75.68937 45.41072)" data-type="wkt"&gt;
							&lt;td&gt;4&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Ottawa" title="Ottawa"&gt;Ottawa&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;883,391&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-113.49590 53.53398)" data-type="wkt"&gt;
							&lt;td&gt;5&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Edmonton" title="Edmonton"&gt;Edmonton&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;812,201&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-79.65 43.60)" data-type="wkt"&gt;
							&lt;td&gt;6&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Mississauga" title="Mississauga"&gt;Mississauga&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;713,443&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-97.14352 49.89375)" data-type="wkt"&gt;
							&lt;td&gt;7&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Winnipeg" title="Winnipeg"&gt;Winnipeg&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;663,617&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-123.10091 49.26428)" data-type="wkt"&gt;
							&lt;td&gt;8&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Vancouver" title="Vancouver"&gt;Vancouver&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;603,502&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-79.76181 43.68686)" data-type="wkt"&gt;
							&lt;td&gt;9&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Brampton" title="Brampton"&gt;Brampton&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;523,911&lt;/td&gt;
						&lt;/tr&gt;
						&lt;tr data-geometry="POINT (-79.86788 43.25717)" data-type="wkt"&gt;
							&lt;td&gt;10&lt;/td&gt;
							&lt;td&gt;&lt;a href="https://www.wikipedia.org/wiki/Hamilton,_Ontario" title="Hamilton, Ontario"&gt;Hamilton&lt;/a&gt;&lt;/td&gt;
							&lt;td&gt;519,949&lt;/td&gt;
						&lt;/tr&gt;
					&lt;/tbody&gt;
				&lt;/table&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;</code></pre>
		</details>
	</section>
</section>

<section id="aoiZoomOnLoad">
	<h2>Zoom to AOI on page load (extent)</h2>

	<form class="wb-geomap-filter form-inline mrgn-bttm-md" data-bind-to="bc-geomap">
		<div class="form-group">
			<label for="zoomBCArea">B.C. Regions:</label>
			<select class="form-control" data-filter="aoi" id="zoomBCArea">
				<option value="63 -110 50 -128" selected>Select a region</option>
				<option value="61 -124 55.33 -140.6">North</option>
				<option value="50.802 -123.316 48.312 -128.578">Vancouver Island and Coast</option>
				<option value="50.2806 -121.7203 49.0199 -124.4421">Lower Mainland</option>
				<option value="52.4999 -118.5493 48.9964 -114.0535">Southern Interior</option>
			</select>
		</div>
		<button aria-controls="bc-geomap" class="btn btn-primary" type="submit">Filter</button>
		<button class="btn btn-link" type="reset">Reset page to defaults</button>
	</form>
	<div class="wb-geomap" id="bc-geomap" data-wb-geomap='{
		"mapExtent": "63, -110, 50, -128"
	}'>
		<div class="wb-geomap-map"></div>
	</div>

	<section>
		<h3>Code</h3>
		<details>
			<summary>View code</summary>
			<pre><code>&lt;form class="wb-geomap-filter form-inline mrgn-bttm-md" data-bind-to="bc-geomap"&gt;
	&lt;div class="form-group"&gt;
		&lt;label for="zoomBCArea"&gt;B.C. Regions:&lt;/label&gt;
		&lt;select class="form-control" data-filter="aoi" id="zoomBCArea"&gt;
			&lt;option value="63 -110 50 -128" selected&gt;Select a region&lt;/option&gt;
			&lt;option value="61 -124 55.33 -140.6"&gt;North&lt;/option&gt;
			&lt;option value="50.802 -123.316 48.312 -128.578"&gt;Vancouver Island and Coast&lt;/option&gt;
			&lt;option value="50.2806 -121.7203 49.0199 -124.4421"&gt;Lower Mainland&lt;/option&gt;
			&lt;option value="52.4999 -118.5493 48.9964 -114.0535"&gt;Southern Interior&lt;/option&gt;
		&lt;/select&gt;
	&lt;/div&gt;
	&lt;button aria-controls="bc-geomap" class="btn btn-primary" type="submit"&gt;Filter&lt;/button&gt;
	&lt;button class="btn btn-link" type="reset"&gt;Reset page to defaults&lt;/button&gt;
&lt;/form&gt;
&lt;div class="wb-geomap" id="bc-geomap" data-wb-geomap='{
	"mapExtent": "63, -110, 50, -128"
}'&gt;
	&lt;div class="wb-geomap-map"&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre>
		</details>
	</section>
</section>

<section id="singleItem">
	<h2>Merge label and legend symbol</h2>
	<p>When the legend layer only has one legend item, hide the legend item and only keep the label with the icon.</p>
	<div class="wb-geomap legend-label-only" id="geomap_single" data-wb-geomap='{
		"mapExtent": "63, -110, 50, -128",
		"overlays": [
			{
				"title": "Business Scale Up and Productivity",
				"caption": "This interactive map shows projects across B.C. that received funding from PacifiCan&apos;s economic development programs.",
				"type": "kml",
				"url": "demo/BusinessScaleProductivity_en.kml",
				"datatable": true,
				"attributes": {
					"Program": "Program",
					"Project": "Project"
				},
				"style": {
					"type": "unique",
					"field": "Program",
					"init": {
						"Business Scale Up": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAANHSURBVEhLlZZ5SFRBHMe/s7peiWaZbpBrJamZ5VGJQVBRCB5pdhAERZLmFRTRgUVJhP8EEXRYQkkGVlBUW0FUhCUUlEVlSIYlIZZlmgcS67XTb9/+WHzu27fr54958/3NvPnO9WaegCdq7odjHIUQMpvUIkCEAnIAEi0w4CGEuILi3B5HZW30TAQuWsrpUUX5EEdICzlIdSpQmlvNARe0TSorDTCl1lBxIUc8I2UNGZXSyCRHnBj4qSYy5Zg3BkaDQLY5EvVrU5FhjijGpQdHuEiF60jOWxbBBx+oyJcjmkz3N+JpTjqWzZqu6PzHTbjX3jVKQ1qMsg1flCDjOhIfcdCTgZ3+4VFcb/vBihHCCOFzgJUTtUlDAzUu81npkjfXhFPpCWjuHcSWJ28VUwe2TaiUqnbVJi2DcdQdnZ3koCA+CrcyluJp5x+ssrzC7fYuPP/Zy6UiDKaHMSwU1CZChHNOkzBah9o1yTi3cjEqXrci59EbbI6ZTToRS2ZO6Nu4jOScwuQ1+cdPFcFGX+xPisHHLaswMm7DwpsNOP3xG2xSIsscgT2J8zA/JIhrEwLDnFOYNBLDV9rvyj43CIEk6l1xQjSq0uLRax1B0q0XKGlsxqHkGFxenQRzcKDymgr7+0HjbawU1CZlOX3UixZW+Nw/hNrWDhxvakUUNVi0MFqJb4+Nwq54M2YE+ClahRCfUJDfz0ph8nQR4q49zaRpGC7Kpm9hBUL9jDi5PA5HUxcoNfSRyvsTcTUZGauj1OYQU0TSUQq/q6ycuJrs3fiNKltYTREaRWnmdxZOtA/I6nspkYEB79JMYaLXOor3PQNYNyccYzaJRx3dylT60rnVSN9GbGgwTNP80dTdb/s1ZE1BeV4zt+LE/VF/wVJPW2wbK2+oo1N4J+dVaCw8YzQepuEPsdJH0p0ijBWsXHBvsjurk9aGjnwvEHRplWR2sXLBvYmd37lnyeglK3c0oGT9Rc5rom9yQtBWNuyg+aArVgvZRy3s1LoNJ6JvYqcsp53SEodQIelrKqSfiA7WbvFsYqc07walk6ZEnKHteoeFLt6Z2Jlp3edcHymf4Vcw7T7v0PslcqX6cQSE9Rp8rdtQtPUvRz0A/AeDMOjMASjW0wAAAABJRU5ErkJggg==",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						},
						"Business Productivity": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAMzSURBVEhLlZRLaBNBGMf/s0lqWjUxsVYRDWpKpXixvoqFaKMIgiCIiOhBpQ9p8aAIPgpqEPHgSfRgqTbV6qEX0YsoCCFqyUWFgo9LEa31iW3TNomozWP8ZndMst1NUn/L7nz/b2b3PzsvhlKED1cCyRZwZQcYVgHcCbBJcLyl+AGYNQj/9VHZ2pRiJgzh5iNUXqTboWbMiYHxDjT2XJPagLlJIKBg86cuMNYiMzOAd5FRO32Ry0QWiyz1BLznyOC4VCqLypzYW7UeGxzLUTfHg5FkArH0L1krYOvwYU0SvQP9MpFFkWWOUAuNO85oQqPCUoZndSex3L4AbutsLJ3lxpPVJ9RYDw8g1LRSiizG4Qo33aL0wU3OGvTWNqFMscLGLHBayjGaSshGUA0S6T+Y4imkMhm0Dd7Bo+hr8uHd2NLTKpup6P8kHLCSwS4R1jtWYJm9EovL5mGBba5qJuJ/t12xodI2R409djcanF71E8Ru+iHdd/UmmS/iV4utpNIw5sLTj1lHgd6EpWlPaPxIxmSU42V8CEff9aF/clBmcowk4zIiOFsoIxX9nDxpXQ+eeS5Ch7UcGx1e6kWuydepCbxcewa+gUtw5U06p+t57AOiqZ9aIpXegG23Xmhiukl/uwvJqTHKsgZnNSJ1p2WFxvDvMdz8HsG+hfWoKdd1FjteXcFDdeLpYik3/L0TsmracPk6x+lJx4U5Hvt8BJbtNBjoYPx1voFAbyJQ2H1R/KTl+T8kMv/aa+/nY9wnoQNeOvQGaZUoW121NPYVsqIwcerQ4+gbcZ6kAWs1/F1DskrFaCIIN9+jp7pf/gvO79JG3CNVFuNwCRi/QC8YDrqicJ6BlV2QSoe5SWPPAD37NDFDGO5gU/CVVDrMTQRMOUW9yx1WxeA8BsXSIZWBwib+7s80bGelKkUHNt/4JmMDhU0EjZ6r1M2IVOZwhOEPdkplSnETdp4mkx+gyHiQCTjGYbMcouVedJEUNxH4br4ntzap8hEHSAt814elLkhpE4G/u48md/qQXMbWoNhPJZmZiaAqfixvfkLAklMyLon5ji9EpK0Kv6duI8n2Y3swKrMlAP4CcCvpgKo0qDEAAAAASUVORK5CYII=",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						}
					}
				}
			},
			{
				"title": "Regional Innovation Ecosystems",
				"caption": "This interactive map shows projects across B.C. that received funding from PacifiCan&apos;s economic development programs.",
				"type": "kml",
				"url": "demo/RegionalInnovationEcosystem_en.kml",
				"datatable": true,
				"attributes": {
					"Program": "Program",
					"Project": "Project"
				},
				"style": {
					"type": "unique",
					"field": "Program",
					"init": {
						"Regional Innovation Ecosystems": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAB2IAAAdiATh6mdsAAAS7SURBVEhLjZZrTFtlGMf/55y2UEencl0RtiEDNgKslLB5GZf6Yc6E6QcNxg9GjZplJsa4JQ7jEqjskhhNzIyJzCxmRj/My0RmWMwccpnxEgqsQ2AuMhiMjnFraQstbc/xed8eBrUt2+/LOc973vf5v8/lPecIuAvldcdSZCnwqiJgr6CgCAIegAKnIij99LhFJymn/rBaZ8OzY7OWiGB+r+ENmnFcgGBQx6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VmaVJZ9uS8IjwKzHy1+OkxQZa10WYQQiTvccqT+pWhHEjIQRlKVDlGO3alLry7yr2v4exBBFFQF9xERRfle1oogZCWOyq81trKxeoDzvUYfiQps5YGu0tqtmFHEjYfRIyid06QxbcVCUi5SmuF9FxpoisFrloCS/xD6x6sj/UOYkjfIyHa47b9xYrC1CXLZaRyDI+1VzNfS9FF/7y2odV+24xK3JahydHVeoPqlUnx3qEPsmf9RztP6Eaq3JXSNZRsg2HqCcXGL3dP3lYVNhHX9wD9yziG3fvoA25HuOOum8TpKf/7a2duW/aE2A/wDjpO0OJUui9gAAAABJRU5ErkJggg==",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						}
					}
				}
			},
			{
				"title": "CEDD (formerly known as WDP)",
				"caption": "This interactive map shows projects across B.C. that received funding from PacifiCan&apos;s economic development programs.",
				"type": "kml",
				"url": "demo/WesternDiversificationProgram_en.kml",
				"datatable": true,
				"attributes": {
					"Program": "Program",
					"Project": "Project"
				},
				"style": {
					"type": "unique",
					"field": "Program",
					"init": {
						"CEDD (formerly known as WDP)": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAOTSURBVEhLjZVNSFRRFMf/5/ksMlNMszKjqCAiWpRF6agVFVSu3LaIFlZGmxaFGIiEtI5aVGpGH4t2WWTQJlyUEAUVfUB+pKbVVFpjpWnqzO1/37uN8+aNjj94zJxz77vnnv859z5BEtSR1hzArlBKymiu55PJ5yeftxBpEYw3ScPOQdrTMm0QxTF1+NFxLnSWkzKM24dS6hdgVVuNgYvG5SNhEFVba6nPu+tFpMK4ksJN1UtD4Jhwb8YVxTK/HlRwV03CAOmpwLF1wAL+xsHdHlWH204b04Mvk0jFo/WU6KUIbONy0TPLVwIPPgJ784HmXmf7sVC6CaTIButycbtxOfgyEUtO+QJoduUB/SNusE6WYc8y1x8Ds09FWE4aM4onE1Xbaqug/V3y0zOQqSXhsJ7xnosungeULgHu9TMAAz5jQwX/AKsWOO86/JqA6h8JSV4gR85IxHi9mahP9loWLgObsoHfk2zUcWDrImrIwd5h4OsoEPrr+nt+00+9ihdz7gQwzPkF2cwGWerLk9Xuii5euUTxTJB3PAZzOBTmIs+/A1tct4/N9Pcw+GiYR4kptzNjImqSkaeIq0kK8yddnFzCeeUr3IADY0BRrjPkMMRMCmn/YFaPvwK7Kd+OpayVPqO6ASwOTOEJInakS3GKI4PW/GoHULYc+MDd6sD/GeQaOkstYRk77c4H4OmA49PvS1pap5np4A1yqSTEWW8d400IGKMMLX3Afi70jdloUijLhix30X3032cj6Hl6voO8lvMbh4zhECeXRprNHxe9gK5LgamLboQ2SqSb4+UPtx4xiFLe90mCILjOQxVtPwcty7I0N9jCuZSLWeXPdzssBgoYhmVfM2YUXxCrsfg9+/CuMafQcuQxUJBtvIb3pW6IeJiF1BfyKvCSKBN6pY7ZcGMxdHPX+s7q4OL6AMY2AnGyj6g6Y3pIGMS6HHhBdW8Zc4o+Xiv64OnzoDswBl4pN62m0lfG9JA4E42yq5gLixFDnzF742rBb4pS4Wpj+pg2iHVl20e2So0xk6D40doeNIaP6TMhsrT4AnfZZsyEcLxVGkouGTMhMwfhTSo2DvIUe6tsoJwhXoiHWA9vgeKYMYiGt0A3PzKVxozCVRXlrGAWvBJmJmkQjVUfuEVZvJKInLMaSm4ba0ZmFUQjQ1kn/teHMj2UJeNVzsAs8HwZkxGpbMtFOHIDkZQDVlMRL67ZAPwD81FLUtjLgdUAAAAASUVORK5CYII=",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						}
					}
				}
			}
		]
	}'>
		<div class="row mrgn-bttm-lg">
			<div class="col-md-8">
				<div class="wb-geomap-map"></div>
			</div>
			<div class="col-md-4">
				<div class="panel panel-default">
					<header class="panel-heading">
						<h3 class="panel-title">Legend</h3>
					</header>
					<div class="panel-body">
						<p class="”h4”"><strong>Select from following PacifiCan programs to see funded projects across British Columbia:</strong></p>
						<div class="wb-geomap-legend"></div>
					</div>
				</div>
			</div>
		</div>
		<div class="wb-geomap-layers"></div>
	</div>
</section>

<section id="twoCols">
	<h2>Display legend labels over two columns</h2>
	<div class="wb-geomap legend-label-only two-cols-legend" id="geomap_twocols" data-wb-geomap='{
		"mapExtent": "63, -110, 50, -128",
		"overlays": [
			{
				"title": "Business Scale Up and Productivity",
				"caption": "This interactive map shows projects across B.C. that received funding from PacifiCan&apos;s economic development programs.",
				"type": "kml",
				"url": "demo/BusinessScaleProductivity_en.kml",
				"datatable": true,
				"attributes": {
					"Program": "Program",
					"Project": "Project"
				},
				"style": {
					"type": "unique",
					"field": "Program",
					"init": {
						"Business Scale Up": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAANHSURBVEhLlZZ5SFRBHMe/s7peiWaZbpBrJamZ5VGJQVBRCB5pdhAERZLmFRTRgUVJhP8EEXRYQkkGVlBUW0FUhCUUlEVlSIYlIZZlmgcS67XTb9/+WHzu27fr54958/3NvPnO9WaegCdq7odjHIUQMpvUIkCEAnIAEi0w4CGEuILi3B5HZW30TAQuWsrpUUX5EEdICzlIdSpQmlvNARe0TSorDTCl1lBxIUc8I2UNGZXSyCRHnBj4qSYy5Zg3BkaDQLY5EvVrU5FhjijGpQdHuEiF60jOWxbBBx+oyJcjmkz3N+JpTjqWzZqu6PzHTbjX3jVKQ1qMsg1flCDjOhIfcdCTgZ3+4VFcb/vBihHCCOFzgJUTtUlDAzUu81npkjfXhFPpCWjuHcSWJ28VUwe2TaiUqnbVJi2DcdQdnZ3koCA+CrcyluJp5x+ssrzC7fYuPP/Zy6UiDKaHMSwU1CZChHNOkzBah9o1yTi3cjEqXrci59EbbI6ZTToRS2ZO6Nu4jOScwuQ1+cdPFcFGX+xPisHHLaswMm7DwpsNOP3xG2xSIsscgT2J8zA/JIhrEwLDnFOYNBLDV9rvyj43CIEk6l1xQjSq0uLRax1B0q0XKGlsxqHkGFxenQRzcKDymgr7+0HjbawU1CZlOX3UixZW+Nw/hNrWDhxvakUUNVi0MFqJb4+Nwq54M2YE+ClahRCfUJDfz0ph8nQR4q49zaRpGC7Kpm9hBUL9jDi5PA5HUxcoNfSRyvsTcTUZGauj1OYQU0TSUQq/q6ycuJrs3fiNKltYTREaRWnmdxZOtA/I6nspkYEB79JMYaLXOor3PQNYNyccYzaJRx3dylT60rnVSN9GbGgwTNP80dTdb/s1ZE1BeV4zt+LE/VF/wVJPW2wbK2+oo1N4J+dVaCw8YzQepuEPsdJH0p0ijBWsXHBvsjurk9aGjnwvEHRplWR2sXLBvYmd37lnyeglK3c0oGT9Rc5rom9yQtBWNuyg+aArVgvZRy3s1LoNJ6JvYqcsp53SEodQIelrKqSfiA7WbvFsYqc07walk6ZEnKHteoeFLt6Z2Jlp3edcHymf4Vcw7T7v0PslcqX6cQSE9Rp8rdtQtPUvRz0A/AeDMOjMASjW0wAAAABJRU5ErkJggg==",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						},
						"Business Productivity": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAMzSURBVEhLlZRLaBNBGMf/s0lqWjUxsVYRDWpKpXixvoqFaKMIgiCIiOhBpQ9p8aAIPgpqEPHgSfRgqTbV6qEX0YsoCCFqyUWFgo9LEa31iW3TNomozWP8ZndMst1NUn/L7nz/b2b3PzsvhlKED1cCyRZwZQcYVgHcCbBJcLyl+AGYNQj/9VHZ2pRiJgzh5iNUXqTboWbMiYHxDjT2XJPagLlJIKBg86cuMNYiMzOAd5FRO32Ry0QWiyz1BLznyOC4VCqLypzYW7UeGxzLUTfHg5FkArH0L1krYOvwYU0SvQP9MpFFkWWOUAuNO85oQqPCUoZndSex3L4AbutsLJ3lxpPVJ9RYDw8g1LRSiizG4Qo33aL0wU3OGvTWNqFMscLGLHBayjGaSshGUA0S6T+Y4imkMhm0Dd7Bo+hr8uHd2NLTKpup6P8kHLCSwS4R1jtWYJm9EovL5mGBba5qJuJ/t12xodI2R409djcanF71E8Ru+iHdd/UmmS/iV4utpNIw5sLTj1lHgd6EpWlPaPxIxmSU42V8CEff9aF/clBmcowk4zIiOFsoIxX9nDxpXQ+eeS5Ch7UcGx1e6kWuydepCbxcewa+gUtw5U06p+t57AOiqZ9aIpXegG23Xmhiukl/uwvJqTHKsgZnNSJ1p2WFxvDvMdz8HsG+hfWoKdd1FjteXcFDdeLpYik3/L0TsmracPk6x+lJx4U5Hvt8BJbtNBjoYPx1voFAbyJQ2H1R/KTl+T8kMv/aa+/nY9wnoQNeOvQGaZUoW121NPYVsqIwcerQ4+gbcZ6kAWs1/F1DskrFaCIIN9+jp7pf/gvO79JG3CNVFuNwCRi/QC8YDrqicJ6BlV2QSoe5SWPPAD37NDFDGO5gU/CVVDrMTQRMOUW9yx1WxeA8BsXSIZWBwib+7s80bGelKkUHNt/4JmMDhU0EjZ6r1M2IVOZwhOEPdkplSnETdp4mkx+gyHiQCTjGYbMcouVedJEUNxH4br4ntzap8hEHSAt814elLkhpE4G/u48md/qQXMbWoNhPJZmZiaAqfixvfkLAklMyLon5ji9EpK0Kv6duI8n2Y3swKrMlAP4CcCvpgKo0qDEAAAAASUVORK5CYII=",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						}
					}
				}
			},
			{
				"title": "Regional Innovation Ecosystems",
				"caption": "This interactive map shows projects across B.C. that received funding from PacifiCan&apos;s economic development programs.",
				"type": "kml",
				"url": "demo/RegionalInnovationEcosystem_en.kml",
				"datatable": true,
				"attributes": {
					"Program": "Program",
					"Project": "Project"
				},
				"style": {
					"type": "unique",
					"field": "Program",
					"init": {
						"Regional Innovation Ecosystems": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAB2IAAAdiATh6mdsAAAS7SURBVEhLjZZrTFtlGMf/55y2UEencl0RtiEDNgKslLB5GZf6Yc6E6QcNxg9GjZplJsa4JQ7jEqjskhhNzIyJzCxmRj/My0RmWMwccpnxEgqsQ2AuMhiMjnFraQstbc/xed8eBrUt2+/LOc973vf5v8/lPecIuAvldcdSZCnwqiJgr6CgCAIegAKnIij99LhFJymn/rBaZ8OzY7OWiGB+r+ENmnFcgGBQx6CVJARCIdUCFAXzJH7Idqz+M3UoCkm9RlJfL5p3WU4KgnCYBBIKjBvgCwS489pHytE/fhN6nQ5bMtIx4/Ek0EZqjJWWDEdne6vqIYKYImUVlgYSeFsUBMoMICsyirOz8Hh+HvRaHbKSH0SQBKfdHiwuLYHNI8qNFZYlR1d7FzNWEyViPvx+MXn+itaJu0uKsOD3o6bUBH8giJ/t/ei+PgLX4iKeZM9IwB8MorpwK67dmmS5r8h6ouqbiY6OGdUdR1SvdxAU+R0S0LB75nR3cRFaL9vhcLmw12zCTwffQvK6dWju7sWO3Bx4fX609tn5WlLRySHxYNhYISKSsqYmLVzeL5L0CboakwnOhUXcf58e16emcebN/agsyIeGCl+7sxzr9Xqc6+njaWTPnykrxYTTSZEFNjssVR+io4NlmhMRiTI2uZV2k+Sh3Z3ttmEn7bTr6jVYKB2MujPfwXL0A56ycDMEkUvFZ4I/2nrhXvTRciHFHNTk8AUqESKiEuKtakhMhE6j4R3kpZrkpKVBI4pwOF28w6bdbqQZDOQ8EaPTM3wzbD5bxxHl1PBNmAgRWZT87Mp2l2ZIwvDUFPJpx01t7byFT7z4Ak69/gr2lBSjfXCIt3Juejou9A8gJSmJtzQnJAfCN2EiRAIB7TA7Xn2jN3Bzzonu4RFeB9ZFn15o4862ZRpxpPkcWqgeDNbKDAfVo5fW0XIlpAX5WSGi8LcvXfQZK6qfNegTM57aXoLBCQdPT+mmjWi29eDPf4fRNzqGtoFBJNPOH83bAonSaB8bx9PUeRO0saVg0N7baP1YdcmJbmEBP7DCt1AhGfYbYzz3rAZMkBWc8RgJdA5dxde//c5t1mlunw+KKJzlA6uIFpGU03QYZdZ/2zdmI5Vqc95+BbsK8sITCNbGHnLoohZPoefmzZv4m0GBEgotyV+GZ60QdeLptM5lVlWbSG6bKIi4PT/PUoDirIe4s1mvF2nrDbyrpqjLWL3YKWSi1L7f9x5v+DzsaYWoSBj0Rmlk0bBiLjNA9WFR5W/IQGFmJv6h18gyfB6PXmhUhyKI+YKc6Pz1VmaVJZ9uS8IjwKzHy1+OkxQZa10WYQQiTvccqT+pWhHEjIQRlKVDlGO3alLry7yr2v4exBBFFQF9xERRfle1oogZCWOyq81trKxeoDzvUYfiQps5YGu0tqtmFHEjYfRIyid06QxbcVCUi5SmuF9FxpoisFrloCS/xD6x6sj/UOYkjfIyHa47b9xYrC1CXLZaRyDI+1VzNfS9FF/7y2odV+24xK3JahydHVeoPqlUnx3qEPsmf9RztP6Eaq3JXSNZRsg2HqCcXGL3dP3lYVNhHX9wD9yziG3fvoA25HuOOum8TpKf/7a2duW/aE2A/wDjpO0OJUui9gAAAABJRU5ErkJggg==",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						}
					}
				}
			},
			{
				"title": "CEDD (formerly known as WDP)",
				"caption": "This interactive map shows projects across B.C. that received funding from PacifiCan&apos;s economic development programs.",
				"type": "kml",
				"url": "demo/WesternDiversificationProgram_en.kml",
				"datatable": true,
				"attributes": {
					"Program": "Program",
					"Project": "Project"
				},
				"style": {
					"type": "unique",
					"field": "Program",
					"init": {
						"CEDD (formerly known as WDP)": {
							"externalGraphic": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IAr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k6D40doeNIaP6TMhsrT4AnfZZsyEcLxVGkouGTMhMwfhTSo2DvIUe6tsoJwhXoiHWA9vgeKYMYiGt0A3PzKVxozCVRXlrGAWvBJmJmkQjVUfuEVZvJKInLMaSm4ba0ZmFUQjQ1kn/teHMj2UJeNVzsAs8HwZkxGpbMtFOHIDkZQDVlMRL67ZAPwD81FLUtjLgdUAAAAASUVORK5CYII=",
							"graphicOpacity": "1",
							"graphicWidth": "32",
							"graphicHeight": "32"
						}
					}
				}
			}
		]
	}'>
		<div class="wb-geomap-map mrgn-bttm-lg"></div>
		<div class="panel panel-default">
			<header class="panel-heading">
				<h3 class="panel-title">Legend</h3>
			</header>
			<div class="panel-body">
				<p class="”h4”"><strong>Select from following PacifiCan programs to see funded projects across British Columbia:</strong></p>
				<div class="wb-geomap-legend"></div>
			</div>
		</div>
		<div class="wb-geomap-layers"></div>
	</div>
</section>
