Compare commits

...

3 Commits

Author SHA1 Message Date
crschmidt
48445f0878 And I said "Ship it, or I will want to kill the next reporter of an IE bug".
And so it was done.


git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.0@1368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-25 17:55:07 +00:00
crschmidt
a0cd93cb41 Document restriction on when to add permalink control.
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1367 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-25 11:55:45 +00:00
crschmidt
0a01ef899e Commit r1365 against 2.0, rather than sandbox.
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1366 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-25 02:08:20 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
OpenLayers.Control.Permalink
A small control which updates a "Permalink" to the map every time the viewport changes. This allows users to copy a link to a specfic map view. By default, it places itself in the lower right corner of the map,
A small control which updates a "Permalink" to the map every time the viewport changes. This allows users to copy a link to a specfic map view. By default, it places itself in the lower right corner of the map. This control must be added to the map after a baselayer has been set.
* Constructor
OpenLayers.Control.Scale({DOMElement|element}?, {String|base}) -- Creates a new permalink control. The DOMElement is used, if passed, as the element on which the 'href' is set. If you prefer to put this link on an element outside of the map, set this element to an anchor element to have its href updated when the map moves. If you wish to make the link go to some other URL (for example, an editing interface rather than the current URL), the 'base' property can be used, to which the ?lat=&lon=&zoom= will be appended after the map has moved.

View File

@@ -209,7 +209,7 @@ OpenLayers.Control.MouseDefaults.prototype =
var inMap = false;
var elem = Event.element(e);
while(elem != null) {
if (elem == this.map.div) {
if (this.map && elem == this.map.div) {
inMap = true;
break;
}