Merge branch 'master' of https://github.com/openlayers/openlayers
This commit is contained in:
@@ -414,4 +414,4 @@
|
||||
/**
|
||||
* Constant: VERSION_NUMBER
|
||||
*/
|
||||
OpenLayers.VERSION_NUMBER="Release 2.12-rc3";
|
||||
OpenLayers.VERSION_NUMBER="Release 2.12-rc4";
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Format.ArcXML
|
||||
* Read/Wite ArcXML. Create a new instance with the <OpenLayers.Format.ArcXML>
|
||||
* Read/Write ArcXML. Create a new instance with the <OpenLayers.Format.ArcXML>
|
||||
* constructor.
|
||||
*
|
||||
* Inherits from:
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Format.ArcXML.Features
|
||||
* Read/Wite ArcXML features. Create a new instance with the
|
||||
* Read/Write ArcXML features. Create a new instance with the
|
||||
* <OpenLayers.Format.ArcXML.Features> constructor.
|
||||
*
|
||||
* Inherits from:
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Format.Filter
|
||||
* Read/Wite ogc:Filter. Create a new instance with the <OpenLayers.Format.Filter>
|
||||
* Read/Write ogc:Filter. Create a new instance with the <OpenLayers.Format.Filter>
|
||||
* constructor.
|
||||
*
|
||||
* Inherits from:
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Format.GML
|
||||
* Read/Wite GML. Create a new instance with the <OpenLayers.Format.GML>
|
||||
* Read/Write GML. Create a new instance with the <OpenLayers.Format.GML>
|
||||
* constructor. Supports the GML simple features profile.
|
||||
*
|
||||
* Inherits from:
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Format.SLD
|
||||
* Read/Wite SLD. Create a new instance with the <OpenLayers.Format.SLD>
|
||||
* Read/Write SLD. Create a new instance with the <OpenLayers.Format.SLD>
|
||||
* constructor.
|
||||
*
|
||||
* Inherits from:
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/**
|
||||
* Class: OpenLayers.Format.XLS
|
||||
* Read/Wite XLS (OpenLS). Create a new instance with the <OpenLayers.Format.XLS>
|
||||
* Read/Write XLS (OpenLS). Create a new instance with the <OpenLayers.Format.XLS>
|
||||
* constructor. Currently only implemented for Location Utility Services, more
|
||||
* specifically only for Geocoding. No support for Reverse Geocoding as yet.
|
||||
*
|
||||
|
||||
@@ -139,7 +139,8 @@ OpenLayers.Handler = OpenLayers.Class({
|
||||
var keyModifiers =
|
||||
(evt.shiftKey ? OpenLayers.Handler.MOD_SHIFT : 0) |
|
||||
(evt.ctrlKey ? OpenLayers.Handler.MOD_CTRL : 0) |
|
||||
(evt.altKey ? OpenLayers.Handler.MOD_ALT : 0);
|
||||
(evt.altKey ? OpenLayers.Handler.MOD_ALT : 0) |
|
||||
(evt.metaKey ? OpenLayers.Handler.MOD_META : 0);
|
||||
|
||||
/* if it differs from the handler object's key mask,
|
||||
bail out of the event handler */
|
||||
@@ -232,12 +233,12 @@ OpenLayers.Handler = OpenLayers.Class({
|
||||
* to get more information about the event that the handler is
|
||||
* processing.
|
||||
*
|
||||
* This allows modifier keys on the event to be checked (alt, shift,
|
||||
* and ctrl cannot be checked with the keyboard handler). For a
|
||||
* This allows modifier keys on the event to be checked (alt, shift, ctrl,
|
||||
* and meta cannot be checked with the keyboard handler). For a
|
||||
* control to determine which modifier keys are associated with the
|
||||
* event that a handler is currently processing, it should access
|
||||
* (code)handler.evt.altKey || handler.evt.shiftKey ||
|
||||
* handler.evt.ctrlKey(end).
|
||||
* handler.evt.ctrlKey || handler.evt.metaKey(end).
|
||||
*
|
||||
* Parameters:
|
||||
* evt - {Event} The browser event.
|
||||
@@ -285,4 +286,10 @@ OpenLayers.Handler.MOD_CTRL = 2;
|
||||
*/
|
||||
OpenLayers.Handler.MOD_ALT = 4;
|
||||
|
||||
/**
|
||||
* Constant: OpenLayers.Handler.MOD_META
|
||||
* If set as the <keyMask>, <checkModifiers> returns false if Cmd is down.
|
||||
*/
|
||||
OpenLayers.Handler.MOD_META = 8;
|
||||
|
||||
|
||||
|
||||
@@ -137,27 +137,31 @@ OpenLayers.Layer.Google.v3 = {
|
||||
var cache = OpenLayers.Layer.Google.cache[this.map.id];
|
||||
var container = this.map.viewPortDiv;
|
||||
|
||||
// move the Map Data popup to the container, if any
|
||||
while (div.lastChild.style.display == "none") {
|
||||
container.appendChild(div.lastChild);
|
||||
}
|
||||
|
||||
// move the ToS and branding stuff up to the container div
|
||||
var termsOfUse = div.lastChild;
|
||||
container.appendChild(termsOfUse);
|
||||
termsOfUse.style.zIndex = "1100";
|
||||
termsOfUse.style.bottom = "";
|
||||
termsOfUse.className = "olLayerGoogleCopyright olLayerGoogleV3";
|
||||
termsOfUse.style.display = "";
|
||||
cache.termsOfUse = termsOfUse;
|
||||
|
||||
var poweredBy = div.lastChild;
|
||||
container.appendChild(poweredBy);
|
||||
poweredBy.style.zIndex = "1100";
|
||||
poweredBy.style.bottom = "";
|
||||
poweredBy.className = "olLayerGooglePoweredBy olLayerGoogleV3 gmnoprint";
|
||||
poweredBy.style.display = "";
|
||||
cache.poweredBy = poweredBy;
|
||||
// depends on value of zIndex, which is not robust
|
||||
for (var i=div.children.length-1; i>=0; --i) {
|
||||
if (div.children[i].style.zIndex == 1000001) {
|
||||
var termsOfUse = div.children[i];
|
||||
container.appendChild(termsOfUse);
|
||||
termsOfUse.style.zIndex = "1100";
|
||||
termsOfUse.style.bottom = "";
|
||||
termsOfUse.className = "olLayerGoogleCopyright olLayerGoogleV3";
|
||||
termsOfUse.style.display = "";
|
||||
cache.termsOfUse = termsOfUse;
|
||||
}
|
||||
if (div.children[i].style.zIndex == 1000000) {
|
||||
var poweredBy = div.children[i];
|
||||
container.appendChild(poweredBy);
|
||||
poweredBy.style.zIndex = "1100";
|
||||
poweredBy.style.bottom = "";
|
||||
poweredBy.className = "olLayerGooglePoweredBy olLayerGoogleV3 gmnoprint";
|
||||
poweredBy.style.display = "";
|
||||
cache.poweredBy = poweredBy;
|
||||
}
|
||||
if (div.children[i].style.zIndex == 10000002) {
|
||||
container.appendChild(div.children[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.setGMapVisibility(this.visibility);
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
||||
*/
|
||||
createRenderRoot: function() {
|
||||
var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");
|
||||
svg.style.position = "absolute";
|
||||
svg.style.display = "block";
|
||||
return svg;
|
||||
},
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ var OpenLayers = {
|
||||
/**
|
||||
* Constant: VERSION_NUMBER
|
||||
*/
|
||||
VERSION_NUMBER: "Release 2.12-rc3",
|
||||
VERSION_NUMBER: "Release 2.12-rc4",
|
||||
|
||||
/**
|
||||
* Constant: singleFile
|
||||
|
||||
Reference in New Issue
Block a user