If you want to filter the information in the Embededed map, there are two opions.
On Page Load
Calling CRMMap.ready will stop the default inital CRMMap.updatePins();
call.
This allows you add filters or set other settins before the Embeded Map is displayed.
For Example, to filter everything by the custom field `property-owner-id` to ‘JOHND1’.
Note the ‘cf_’ prefix on the custom field name
<script type="text/javascript">
CRMMap.ready(function() {
CRMMap.filters.set('cf_property-owner-id', 'JOHND1');
CRMMap.updatePins();
});
</script>
CRMMap.updatePins();
Must be called after seting the filters etc, other wise no information will be shown.
With Form Field
The other option available is to filter the information directly with HTML form controls.
This way filtering can be done with min-able JavaScript knowledge.
For Example
<select name="cf_property-owner-id"
onchange="CRMMap.filters.update(this)">
<option value="">All</option>
<option value="JOHND1">John</option>
</select>
or
<input name="cf_property-owner-id"
onchange="CRMMap.filters.update(this)" value="JOHND1"/>
Clearing Filters
Calling the function CRMMap.filters.clear();
will clear all your filters.
It is up to you to update and forms on your page, and also to call CRMMap.updatePins();
after.