Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
you can turn on the overview map switch in the views area but the resulting map has an empty overview map. I think this requires a layer of its own to show in the overview.....I did not see where I could set the layer for the overview, maybe thats all thats missing to make it work...
F
Comment | File | Size | Author |
---|---|---|---|
#14 | overview_map_behavior-556116-14-fix.patch | 694 bytes | basvredeling |
#14 | overview_map_behavior-556116-14.patch | 3.4 KB | basvredeling |
#11 | overview_map-556116-11.patch | 3.44 KB | basvredeling |
#9 | openlayers_overviewmap.zip | 2.38 KB | basvredeling |
Comments
Comment #1
spydmobile CreditAttribution: spydmobile commentedmore playing on this one shows that not only does the overview come back empty, but it breaks the map too, resulting in the wrong default baselayer....
Comment #2
phayes CreditAttribution: phayes commentedI think that the overview map is complicated enough that it should be moved from controls to a behavior.
Comment #3
zzolo CreditAttribution: zzolo commentedThis should be moved to a behavior. I tried playing around with this just to get it working in a basic sense but to no avail, so I am just removing it form the options. Helpful page: http://trac.openlayers.org/wiki/Control/OverviewMap
I think this should be a 2.x feature.
Comment #4
zzolo CreditAttribution: zzolo commentedComment #5
phayes CreditAttribution: phayes commentedComment #6
zzolo CreditAttribution: zzolo commentedComment #7
tmcw CreditAttribution: tmcw commentedThe OverviewMap behavior is a tricky one indeed, and won't work with many common map types (essentially all TMS/OSM 'tiled' map types, because they don't zoom out farther than 0). I don't think that this is an essential thing for a 2.x release, but patches are welcome.
Comment #8
tmcw CreditAttribution: tmcw commentedSetting this as by design, because it won't be part of OpenLayers core in the near future, given lacking support from actual maps and the complexity of implementation. Feel free to implement this as an add-on module.
Comment #9
basvredelingI've created a little module that adds this behavior.
It's been 5 years since this issue was closed. I'd like to put it up for a re-evaluation.
Comment #10
PolCould you make a patch so I can review it quickly ?
Thanks !
Comment #11
basvredelingThe previous upload was a custom module.
This one is the module refactored as a patch.
Comment #13
PolVery nice, thanks !!!
Comment #14
basvredelingThere was a small problem with the patch. I've attached both the rerolled correct patch (for rebasing) and the patch against 45b8d61 (fixing the introduced problem).
Comment #15
PolThanks, fixed.
Comment #16
basvredelingThanks for responding so quickly Pol, much appreciated!