Google map Error on Contact us page

New Member
1 0 0

 

I am getting Google map error on contact us page in the website and I am attaching screenshot of error below.

 

google map.PNG

 

 

 

 

 

 

 

 

I am sharing my code of contact us page which it has a piece of code for Google map. 

 

<!-- Google Map -->

{% if section.settings.show_google_map %}

{% if section.settings.api_key %}
<script>
theme.mapKey = {{ section.settings.api_key | json }};
</script>
{% endif %}

<script>
theme.strings.addressError = {{ 'sections.map.address_error' | t | json }};
theme.strings.addressNoResults = {{ 'sections.map.address_no_results' | t | json }};
theme.strings.addressQueryLimit = {{ 'sections.map.address_query_limit_html' | t | json }};
theme.strings.authError = {{ 'sections.map.auth_error_html' | t | json }};
</script>
<!-- Error Coming in contact Page thats why this section is commenting -->

<div class="map-section map" data-section-id="{{ section.id }}" data-section-type="map">
{% if section.settings.title != blank or section.settings.address != blank %}
<div class="container">
<div class="map-section__overlay-wrapper">
<div class="map-section__overlay">
{% if section.settings.map_title != blank %}
<h3 class="h4">{{ section.settings.map_title | escape }}</h3>
{% endif %}
{% if section.settings.address != blank %}
<div class="rte-setting">{{ section.settings.address }}</div>
{% if section.settings.show_button %}
<p><a href="https://maps.google.com?daddr={{ section.settings.map_address }}" class="btn btn--secondary btn--small" target="_blank">{{ 'sections.map.get_directions' | t }}</a></p>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% endif %}
<a class="map-section__link" href="https://www.google.ca/maps/place/{{ section.settings.map_address }}" target="_blank" aria-label="{{ section.settings.map_address }}"></a>
<div class="map-section__container" id="Map-{{ section.id }}" data-address-setting="{{ section.settings.map_address }}"></div>
</div>

{% endif %}

 

inspite of it I added Google API also but it didnot work as before. Please can any one help me out in this matter.

 

This is my https://www.theglobalcart.com/pages/contact-us

 

 

0 Likes