Ticket #1818 (closed feature: wontfix)

Opened 5 years ago

Last modified 5 years ago

Static overview map

Reported by: openlayers Owned by: tschaub
Priority: minor Milestone:
Component: Control.OverviewMap Version:
Keywords: OverviewMap, static map Cc: mwa@…
State:

Description

If the overview map is global and has only one zoom level, the overview map still pans so that the zoom rectangle is centered. A global overview map looks better if it is static, as there is no area outside its extents. A static overview map is independent of the zoom rectangle and never pans or zooms.

This patch adds a new APIProperty staticMap in OpenLayers.Control.OverviewMap to enable the static overview map.

Attachments

static_overviewmap.patch Download (1.7 KB) - added by openlayers 5 years ago.

Change History

Changed 5 years ago by openlayers

Changed 5 years ago by tschaub

  • status changed from new to closed
  • resolution set to wontfix

Assuming you want to restrict navigation on the overview map control's map to the world bounds in geographic, you can do the following:

    var overview = new OpenLayers.Control.OverviewMap({
        mapOptions: {
            restrictedExtent: new OpenLayers.Bounds(-180, -90, 180, 90)
        }
    });

(Note that you can set any options that you would set on a normal map in this way.)

Reopen this ticket if this doesn't treat your situation.

Note: See TracTickets for help on using tickets.