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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

spydmobile’s picture

more 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....

phayes’s picture

I think that the overview map is complicated enough that it should be moved from controls to a behavior.

zzolo’s picture

Title: Overview map appears but is empty » Overview map appears but is empty for 6-2.x

This 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.

zzolo’s picture

Title: Overview map appears but is empty for 6-2.x » Overview map for 6-2.x
Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Category: bug » feature
phayes’s picture

Title: Overview map for 6-2.x » 2.x: Overview map behavior
zzolo’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
tmcw’s picture

Status: Active » Postponed

The 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.

tmcw’s picture

Status: Postponed » Closed (works as designed)

Setting 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.

basvredeling’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Closed (works as designed) » Active
FileSize
2.38 KB

I'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.

Pol’s picture

Could you make a patch so I can review it quickly ?

Thanks !

basvredeling’s picture

Title: 2.x: Overview map behavior » Overview map behavior
Status: Active » Needs review
FileSize
3.44 KB

The previous upload was a custom module.
This one is the module refactored as a patch.

  • Pol committed 45b8d61 on 7.x-2.x authored by basvredeling
    Issue #556116 by basvredeling: Overview map behavior
    
Pol’s picture

Status: Needs review » Fixed

Very nice, thanks !!!

basvredeling’s picture

Status: Fixed » Needs review
FileSize
3.4 KB
694 bytes

There 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).

Pol’s picture

Status: Needs review » Fixed

Thanks, fixed.

basvredeling’s picture

Thanks for responding so quickly Pol, much appreciated!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.