Skip to content

Hooks ​

Use these hooks in your own extension to change how Maps works. When more than one extension uses a hook, use ee()->extensions->last_call to get the data of the previous extension.

reinos_maps_init ​

(added in v5.0.0)

Called at the start of the {exp:reinos_maps:map} tag, before the map is built. $tagparams is the array with the parameters of the map tag. Return the (changed) array.

php
$tagparams = ee()->extensions->call('reinos_maps_init', $tagparams);

reinos_maps_map_end ​

(added in v5.0.0)

Called at the end of the {exp:reinos_maps:map} tag. $html is the HTML of the map (the map div and the parsed tagdata), $map_id is the ID of the map. Return the (changed) HTML.

php
$html = ee()->extensions->call('reinos_maps_map_end', $html, $map_id);

reinos_maps_geocoder_end ​

(added in v5.0.0)

Called in the {exp:reinos_maps:geocoder} tag after geocoding, before the result is parsed. $result is a collection with one object per geocoded address, with the same fields as the Geocoder tag variables. Return the (changed) collection.

php
$result = ee()->extensions->call('reinos_maps_geocoder_end', $result);