#11249 closed (fixed)
blocks in the google-map.js template can not be overriden anymore
Reported by: | ludifan | Owned by: | jbronn |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Keywords: | gmap template | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Just a little comment about google map templates:
since the gis/google/google-map.js template is now included in "google-single.js" template, it is now impossible to override the "controls" and "load_extra" blocks (if i'm not mistaken) which was very convenient in the first place.
to avoid this I had to create my own "google-single.js" like this:
{% extends "gis/google/google-base.js" %} {% block functions %}{% include "world/google-map-ext.js" %}{% endblock %}
with "google-map-ext.js" like for example:
{% extends "gis/google/google-map.js" %} {% block controls %} {{ js_module }}.{{ dom_id }}.setUIToDefault(); {{ js_module }}.{{ dom_id }}.setMapType({{ maptype }}); {% endblock %}
This is not really harmful, but I still wanted to point it out...
Or may be I'm missing something ?
Change History (4)
comment:1 by , 15 years ago
Owner: | changed from | to
---|
comment:2 by , 15 years ago
milestone: | → 1.1 |
---|---|
Status: | new → assigned |
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Unintended side-effect when I shuffled the templates around in #9955. I'll see what I can do here.