Return to Maps
- Shortcodes:
- Optionally place the shortcode [associationengine_gmap] where you wish the map to be placed within the content body. The shortcode is not required to display the map.
- Custom field names: Add custom fields to the map instance CPT. The field “system names” must match the names specified below. Then configure these fields to match the CPT type you wish to display on the maps:
- cpt_object: The Custom Post Type name to pull data from.
- cpt_field_list: SQL selection, generally a comma-separated CPT field list.
- cpt_where_clause: Optional for filtering object results, a SQL where clause.
- cpt_category_field: The CPT field to base marker categorizations on (category or custom taxonomy).
- cpt_latitude_field: The CPT field to base marker latitude.
- cpt_longitude_field: The CPT field to base marker longitude.
- gmap_default_zoom_level: The default zoom level for the map.
- gmap_label_search: Address search button text.
- gmap_label_legend: Optional label to display above the legend.
- gmap_label_results: Optional label to display above the results.
- gmap_results_htm: HTML markup with field placeholders formatted as {$Name}, field placeholders must exist in the cpt_field_list.
- Upload marker images to the map instance. Each marker image title will need to match the name of it’s associated category (or taxonomy).