Commits

Mikhail Korobov committed c9a8ac6

Do not display maps on geocode errors

  • Participants
  • Parent commits 826a84f

Comments (0)

Files changed (1)

File easy_maps/templates/easy_maps/map.html

 {% block html %}
     <!-- HTML map container -->
     <div id="map-canvas-{{ map.pk }}"
-         {% if width %}style="width: {{ width }}px; height: {{ height }}px;" {% endif %}
+         {% if width and map.latitude and not map.geocode_error %}
+            style="width: {{ width }}px; height: {{ height }}px;"
+         {% endif %}
          class="easy-map-googlemap">
     </div>
 {% endblock %}