OpenLayers OpenLayers

Ticket #217 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

Allow Permalink to be added to map before a BaseLayer

Reported by: euzuro Assigned to: sderle
Priority: minor Milestone: 2.2 Release
Component: Control Version: 2.1
Keywords: Cc:
State:

Description

from cr5 email:

A base layer must be added to the map before the Permalink control is added. This restriction is now documented in the class reference documentation at http://openlayers.org/doc/reference.html#OpenLayers.Control.Permalink .


Seems to me there is not a good reason to have this restriction, and it might catch users offguard.

I am not sure if there exists a way to fix this (haven't looked into it at all), but if there is, that would be sweet. If it is impossible, just delete this ticket

Change History

09/11/06 09:32:54 changed by crschmidt

  • milestone changed from 2.1 Release to 2.2 Release.

If there is not yet a baselayer, store the lat/long, listen for a basemap event, and set the center after that.

10/02/06 23:36:23 changed by crschmidt

  • status changed from new to closed.
  • resolution set to fixed.