Ticket #11261: setuitodefault.patch

File setuitodefault.patch, 1.1 KB (added by anonymous, 6 years ago)
  • contrib/gis/templates/gis/google/google-map.js

     
    33  if (GBrowserIsCompatible()) {
    44    {{ js_module }}.{{ dom_id }} = new GMap2(document.getElementById("{{ dom_id }}"));
    55    {{ js_module }}.{{ dom_id }}.setCenter(new GLatLng({{ center.1 }}, {{ center.0 }}), {{ zoom }});
    6     {% block controls %}{{ js_module }}.{{ dom_id }}.addControl(new GSmallMapControl());
    7     {{ js_module }}.{{ dom_id }}.addControl(new GMapTypeControl());{% endblock %}
     6    {% block controls %}{{ js_module }}.{{ dom_id }}.setUIToDefault();{% endblock %}
    87    {% if calc_zoom %}var bounds = new GLatLngBounds(); var tmp_bounds = new GLatLngBounds();{% endif %}
    98    {% for kml_url in kml_urls %}{{ js_module }}.{{ dom_id }}_kml{{ forloop.counter }} = new GGeoXml("{{ kml_url }}");
    109    {{ js_module }}.{{ dom_id }}.addOverlay({{ js_module }}.{{ dom_id }}_kml{{ forloop.counter }});{% endfor %}
Back to Top