Ticket #11261: setuitodefault.patch
File setuitodefault.patch, 1.1 KB (added by , 15 years ago) |
---|
-
contrib/gis/templates/gis/google/google-map.js
3 3 if (GBrowserIsCompatible()) { 4 4 {{ js_module }}.{{ dom_id }} = new GMap2(document.getElementById("{{ dom_id }}")); 5 5 {{ 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 %} 8 7 {% if calc_zoom %}var bounds = new GLatLngBounds(); var tmp_bounds = new GLatLngBounds();{% endif %} 9 8 {% for kml_url in kml_urls %}{{ js_module }}.{{ dom_id }}_kml{{ forloop.counter }} = new GGeoXml("{{ kml_url }}"); 10 9 {{ js_module }}.{{ dom_id }}.addOverlay({{ js_module }}.{{ dom_id }}_kml{{ forloop.counter }});{% endfor %}