πŸ”§ Visitor Geolocation

How to update from Smart Map to Google Maps

Follow the instructions below to learn how to update to the new Google Maps plugin...

The syntax of a visitor geolocation has changed:

{# OLD #}
{% set visitor = craft.smartMap.visitor %}

{# NEW #}
{% set visitor = googleMaps.getVisitor() %}

Additionally, the method will now return a complex model (instead of a simple array of data). The Visitor Model extends the Location Model, so both sets of properties and methods are available.

New Documentation

See the complete new Visitor Geolocation documentation.