πŸ”§ isEmpty and hasCoords

How to update from Smart Map to Google Maps

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

No changes are necessary, both of these methods are identical to their previous iterations:

{# BOTH OLD & NEW - EXACT SAME SYNTAX! #}
{% if not address.isEmpty() %}
    {{ address }}
{% endif %}

New Documentation

See the complete isEmpty documentation.


{# BOTH OLD & NEW - EXACT SAME SYNTAX! #}
{% if address.hasCoords() %}
    Latitude:  {{ address.lat }}
    Longitude: {{ address.lng }}
{% endif %}

New Documentation

See the complete hasCoords documentation.