Compare commits
2 Commits
release-2.
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42ab34fdda | ||
|
|
f5eb0517ef |
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
OpenLayers.js -- OpenLayers Map Viewer Library
|
OpenLayers.js -- OpenLayers Map Viewer Library
|
||||||
|
|
||||||
Copyright 2005-2007 MetaCarta, Inc., released under a modified BSD license.
|
Copyright 2005-2007 MetaCarta, Inc., released under the BSD license.
|
||||||
Please see http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
Please see http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
for the full text of the license.
|
for the full text of the license.
|
||||||
|
|
||||||
Includes compressed code under the following licenses:
|
Includes compressed code under the following licenses:
|
||||||
|
|||||||
@@ -6,22 +6,31 @@ restrictions that prevent the Javascript from loading pages not on the
|
|||||||
same server as the Javascript. This has several problems: it's less
|
same server as the Javascript. This has several problems: it's less
|
||||||
efficient, it might break some sites, and it's a security risk because
|
efficient, it might break some sites, and it's a security risk because
|
||||||
people can use this proxy to browse the web and possibly do bad stuff
|
people can use this proxy to browse the web and possibly do bad stuff
|
||||||
with it. If you can get your code signed (see:
|
|
||||||
http://trac.openlayers.org/wiki/HowToSignJavascript), then you should
|
|
||||||
modify Parameters.js so that this isn't used. Otherwise, you're stuck
|
|
||||||
with it. It only loads pages via http and https, but it can load any
|
with it. It only loads pages via http and https, but it can load any
|
||||||
content type. XML and HTML are both currently used by Openlayers."""
|
content type. It supports GET and POST requests."""
|
||||||
|
|
||||||
import urllib
|
import urllib2
|
||||||
import cgi
|
import cgi
|
||||||
|
import sys, os
|
||||||
fs = cgi.FieldStorage()
|
|
||||||
url = fs.getvalue('url', "http://openlayers.org")
|
|
||||||
|
|
||||||
# Designed to prevent Open Proxy type stuff.
|
# Designed to prevent Open Proxy type stuff.
|
||||||
|
|
||||||
allowedHosts = ['www.openlayers.org', 'openlayers.org', 'octo.metacarta.com', 'merrimack.metacarta.com', 'labs.metacarta.com', 'world.freemap.in',
|
allowedHosts = ['www.openlayers.org', 'openlayers.org',
|
||||||
'prototype.openmnnd.org']
|
'labs.metacarta.com', 'world.freemap.in',
|
||||||
|
'prototype.openmnnd.org', 'geo.openplans.org']
|
||||||
|
|
||||||
|
method = os.environ["REQUEST_METHOD"]
|
||||||
|
|
||||||
|
if method == "POST":
|
||||||
|
qs = os.environ["QUERY_STRING"]
|
||||||
|
d = cgi.parse_qs(qs)
|
||||||
|
if d.has_key("url"):
|
||||||
|
url = d["url"][0]
|
||||||
|
else:
|
||||||
|
url = "http://www.openlayers.org"
|
||||||
|
else:
|
||||||
|
fs = cgi.FieldStorage()
|
||||||
|
url = fs.getvalue('url', "http://www.openlayers.org")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
host = url.split("/")[2]
|
host = url.split("/")[2]
|
||||||
@@ -30,24 +39,36 @@ try:
|
|||||||
print "Content-Type: text/plain"
|
print "Content-Type: text/plain"
|
||||||
print
|
print
|
||||||
print "This proxy does not allow you to access that location."
|
print "This proxy does not allow you to access that location."
|
||||||
|
print
|
||||||
|
print os.environ
|
||||||
|
|
||||||
elif url.startswith("http://") or url.startswith("https://"):
|
elif url.startswith("http://") or url.startswith("https://"):
|
||||||
|
|
||||||
y = urllib.urlopen(url)
|
if method == "POST":
|
||||||
|
length = int(os.environ["CONTENT_LENGTH"])
|
||||||
|
headers = {"Content-Type": os.environ["CONTENT_TYPE"]}
|
||||||
|
body = sys.stdin.read(length)
|
||||||
|
r = urllib2.Request(url, body, headers)
|
||||||
|
y = urllib2.urlopen(r)
|
||||||
|
else:
|
||||||
|
y = urllib2.urlopen(url)
|
||||||
|
|
||||||
headers = str(y.info()).split('\n')
|
# print content type header
|
||||||
for h in headers:
|
i = y.info()
|
||||||
if h.startswith("Content-Type:"):
|
if i.has_key("Content-Type"):
|
||||||
print h
|
print "Content-Type: %s" % (i["Content-Type"])
|
||||||
|
else:
|
||||||
|
print "Content-Type: text/plain"
|
||||||
print
|
print
|
||||||
|
|
||||||
print y.read()
|
print y.read()
|
||||||
|
|
||||||
y.close()
|
y.close()
|
||||||
else:
|
else:
|
||||||
print """Content-Type: text/plain
|
print "Content-Type: text/plain"
|
||||||
|
print
|
||||||
Illegal request."""
|
print "Illegal request."
|
||||||
|
|
||||||
except Exception, E:
|
except Exception, E:
|
||||||
print "Status: 500 Unexpected Error"
|
print "Status: 500 Unexpected Error"
|
||||||
print "Content-Type: text/plain"
|
print "Content-Type: text/plain"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @requires OpenLayers/BaseTypes/Class.js
|
||||||
|
* @requires OpenLayers/BaseTypes/LonLat.js
|
||||||
|
* @requires OpenLayers/BaseTypes/Size.js
|
||||||
|
* @requires OpenLayers/BaseTypes/Pixel.js
|
||||||
|
* @requires OpenLayers/BaseTypes/Bounds.js
|
||||||
|
* @requires OpenLayers/BaseTypes/Element.js
|
||||||
|
*
|
||||||
* Header: OpenLayers Base Types
|
* Header: OpenLayers Base Types
|
||||||
* OpenLayers custom string, number and function functions are described here.
|
* OpenLayers custom string, number and function functions are described here.
|
||||||
*/
|
*/
|
||||||
@@ -16,7 +23,7 @@
|
|||||||
OpenLayers.String = {
|
OpenLayers.String = {
|
||||||
/**
|
/**
|
||||||
* APIMethod: OpenLayers.String.startsWith
|
* APIMethod: OpenLayers.String.startsWith
|
||||||
* Whether or not a string starts with another string.
|
* Test whether a string starts with another string.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* str - {String} The string to test.
|
* str - {String} The string to test.
|
||||||
@@ -31,7 +38,7 @@ OpenLayers.String = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: OpenLayers.String.contains
|
* APIMethod: OpenLayers.String.contains
|
||||||
* Whether or not a string contains another string.
|
* Test whether a string contains another string.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* str - {String} The string to test.
|
* str - {String} The string to test.
|
||||||
@@ -53,7 +60,7 @@ OpenLayers.String = {
|
|||||||
* modified.
|
* modified.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} A trimmed version of the string - all leading and
|
* {String} A trimmed version of the string with all leading and
|
||||||
* trailing spaces removed.
|
* trailing spaces removed.
|
||||||
*/
|
*/
|
||||||
trim: function(str) {
|
trim: function(str) {
|
||||||
@@ -86,7 +93,7 @@ OpenLayers.String = {
|
|||||||
if (!String.prototype.startsWith) {
|
if (!String.prototype.startsWith) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: String.startsWith
|
* APIMethod: String.startsWith
|
||||||
* Deprecated. Whether or not a string starts with another string.
|
* *Deprecated*. Whether or not a string starts with another string.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* sStart - {Sring} The string we're testing for.
|
* sStart - {Sring} The string we're testing for.
|
||||||
@@ -106,7 +113,7 @@ if (!String.prototype.startsWith) {
|
|||||||
if (!String.prototype.contains) {
|
if (!String.prototype.contains) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: String.contains
|
* APIMethod: String.contains
|
||||||
* Deprecated. Whether or not a string contains another string.
|
* *Deprecated*. Whether or not a string contains another string.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* str - {String} The string that we're testing for.
|
* str - {String} The string that we're testing for.
|
||||||
@@ -126,7 +133,7 @@ if (!String.prototype.contains) {
|
|||||||
if (!String.prototype.trim) {
|
if (!String.prototype.trim) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: String.trim
|
* APIMethod: String.trim
|
||||||
* Deprecated. Removes leading and trailing whitespace characters from a string.
|
* *Deprecated*. Removes leading and trailing whitespace characters from a string.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} A trimmed version of the string - all leading and
|
* {String} A trimmed version of the string - all leading and
|
||||||
@@ -143,8 +150,8 @@ if (!String.prototype.trim) {
|
|||||||
|
|
||||||
if (!String.prototype.camelize) {
|
if (!String.prototype.camelize) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: camelize
|
* APIMethod: String.camelize
|
||||||
* Deprecated. Camel-case a hyphenated string.
|
* *Deprecated*. Camel-case a hyphenated string.
|
||||||
* Ex. "chicken-head" becomes "chickenHead", and
|
* Ex. "chicken-head" becomes "chickenHead", and
|
||||||
* "-chicken-head" becomes "ChickenHead".
|
* "-chicken-head" becomes "ChickenHead".
|
||||||
*
|
*
|
||||||
@@ -193,7 +200,7 @@ OpenLayers.Number = {
|
|||||||
if (!Number.prototype.limitSigDigs) {
|
if (!Number.prototype.limitSigDigs) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: Number.limitSigDigs
|
* APIMethod: Number.limitSigDigs
|
||||||
* Deprecated. Limit the number of significant digits on an integer. Does *not*
|
* *Deprecated*. Limit the number of significant digits on an integer. Does *not*
|
||||||
* work with floats!
|
* work with floats!
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
@@ -266,7 +273,7 @@ OpenLayers.Function = {
|
|||||||
if (!Function.prototype.bind) {
|
if (!Function.prototype.bind) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: Function.bind
|
* APIMethod: Function.bind
|
||||||
* Deprecated. Bind a function to an object.
|
* *Deprecated*. Bind a function to an object.
|
||||||
* Method to easily create closures with 'this' altered.
|
* Method to easily create closures with 'this' altered.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
@@ -290,7 +297,7 @@ if (!Function.prototype.bind) {
|
|||||||
if (!Function.prototype.bindAsEventListener) {
|
if (!Function.prototype.bindAsEventListener) {
|
||||||
/**
|
/**
|
||||||
* APIMethod: Function.bindAsEventListener
|
* APIMethod: Function.bindAsEventListener
|
||||||
* Deprecated. Bind a function to an object, and configure it to receive the
|
* *Deprecated*. Bind a function to an object, and configure it to receive the
|
||||||
* event object as first parameter when called.
|
* event object as first parameter when called.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -7,12 +7,12 @@
|
|||||||
* Instances of this class represent bounding boxes. Data stored as left,
|
* Instances of this class represent bounding boxes. Data stored as left,
|
||||||
* bottom, right, top floats. All values are initialized to null, however,
|
* bottom, right, top floats. All values are initialized to null, however,
|
||||||
* you should make sure you set them before using the bounds for anything.
|
* you should make sure you set them before using the bounds for anything.
|
||||||
|
*
|
||||||
* Possible use case:
|
* Possible use case:
|
||||||
*
|
|
||||||
* > bounds = new OpenLayers.Bounds();
|
* > bounds = new OpenLayers.Bounds();
|
||||||
* > bounds.extend(new OpenLayers.LonLat(4,5));
|
* > bounds.extend(new OpenLayers.LonLat(4,5));
|
||||||
* > bounds.extend(new OpenLayers.LonLat(5,6));
|
* > bounds.extend(new OpenLayers.LonLat(5,6));
|
||||||
* > bounds.toBBOX() // returns 4,5,5,6
|
* > bounds.toBBOX(); // returns 4,5,5,6
|
||||||
*/
|
*/
|
||||||
OpenLayers.Bounds = OpenLayers.Class({
|
OpenLayers.Bounds = OpenLayers.Class({
|
||||||
|
|
||||||
@@ -81,13 +81,13 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: equals
|
* Method: equals
|
||||||
* Test a two bounds for equivalence
|
* Test a two bounds for equivalence.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* bounds - {<OpenLayers.Bounds>}
|
* bounds - {<OpenLayers.Bounds>}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} The passed-in OpenLayers.Bounds object has the same left,
|
* {Boolean} The passed-in bounds object has the same left,
|
||||||
* right, top, bottom components as this. Note that if bounds
|
* right, top, bottom components as this. Note that if bounds
|
||||||
* passed in is null, returns false.
|
* passed in is null, returns false.
|
||||||
*/
|
*/
|
||||||
@@ -106,7 +106,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* APIMethod: toString
|
* APIMethod: toString
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} String representation of OpenLayers.Bounds object.
|
* {String} String representation of bounds object.
|
||||||
* (ex.<i>"left-bottom=(5,42) right-top=(10,45)"</i>)
|
* (ex.<i>"left-bottom=(5,42) right-top=(10,45)"</i>)
|
||||||
*/
|
*/
|
||||||
toString:function() {
|
toString:function() {
|
||||||
@@ -132,7 +132,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* Default is 6
|
* Default is 6
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} Simple String representation of OpenLayers.Bounds object.
|
* {String} Simple String representation of bounds object.
|
||||||
* (ex. <i>"5,42,10,45"</i>)
|
* (ex. <i>"5,42,10,45"</i>)
|
||||||
*/
|
*/
|
||||||
toBBOX:function(decimal) {
|
toBBOX:function(decimal) {
|
||||||
@@ -162,7 +162,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* APIMethod: getHeight
|
* APIMethod: getHeight
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Float} The height of the bounds
|
* {Float} The height of the bounds (top minus bottom).
|
||||||
*/
|
*/
|
||||||
getHeight:function() {
|
getHeight:function() {
|
||||||
return (this.top - this.bottom);
|
return (this.top - this.bottom);
|
||||||
@@ -172,7 +172,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* APIMethod: getSize
|
* APIMethod: getSize
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Size>} An <OpenLayers.Size> which represents the size of the box
|
* {<OpenLayers.Size>} The size of the box.
|
||||||
*/
|
*/
|
||||||
getSize:function() {
|
getSize:function() {
|
||||||
return new OpenLayers.Size(this.getWidth(), this.getHeight());
|
return new OpenLayers.Size(this.getWidth(), this.getHeight());
|
||||||
@@ -182,8 +182,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* APIMethod: getCenterPixel
|
* APIMethod: getCenterPixel
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Pixel>} An <OpenLayers.Pixel> which represents the center
|
* {<OpenLayers.Pixel>} The center of the bounds in pixel space.
|
||||||
* of the bounds
|
|
||||||
*/
|
*/
|
||||||
getCenterPixel:function() {
|
getCenterPixel:function() {
|
||||||
return new OpenLayers.Pixel( (this.left + this.right) / 2,
|
return new OpenLayers.Pixel( (this.left + this.right) / 2,
|
||||||
@@ -194,8 +193,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* APIMethod: getCenterLonLat
|
* APIMethod: getCenterLonLat
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.LonLat>} An <OpenLayers.LonLat> which represents the center
|
* {<OpenLayers.LonLat>} The center of the bounds in map space.
|
||||||
* of the bounds
|
|
||||||
*/
|
*/
|
||||||
getCenterLonLat:function() {
|
getCenterLonLat:function() {
|
||||||
return new OpenLayers.LonLat( (this.left + this.right) / 2,
|
return new OpenLayers.LonLat( (this.left + this.right) / 2,
|
||||||
@@ -210,9 +208,8 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* y - {Float}
|
* y - {Float}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Bounds>} A new <OpenLayers.Bounds> whose coordinates are
|
* {<OpenLayers.Bounds>} A new bounds whose coordinates are the same as
|
||||||
* the same as this, but shifted by the passed-in
|
* this, but shifted by the passed-in x and y values.
|
||||||
* x and y values
|
|
||||||
*/
|
*/
|
||||||
add:function(x, y) {
|
add:function(x, y) {
|
||||||
if ( (x == null) || (y == null) ) {
|
if ( (x == null) || (y == null) ) {
|
||||||
@@ -227,8 +224,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
/**
|
/**
|
||||||
* APIMethod: extend
|
* APIMethod: extend
|
||||||
* Extend the bounds to include the point, lonlat, or bounds specified.
|
* Extend the bounds to include the point, lonlat, or bounds specified.
|
||||||
* Note: This function assumes that left<right and bottom<top.
|
* Note, this function assumes that left < right and bottom < top.
|
||||||
*
|
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* object - {Object} Can be LonLat, Point, or Bounds
|
* object - {Object} Can be LonLat, Point, or Bounds
|
||||||
@@ -273,11 +269,11 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* ll - {<OpenLayers.LonLat>}
|
* ll - {<OpenLayers.LonLat>}
|
||||||
* inclusive - {Boolean} Whether or not to include the border.
|
* inclusive - {Boolean} Whether or not to include the border.
|
||||||
* Default is true.
|
* Default is true.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} Whether or not the passed-in lonlat is within this bounds.
|
* {Boolean} The passed-in lonlat is within this bounds.
|
||||||
*/
|
*/
|
||||||
containsLonLat:function(ll, inclusive) {
|
containsLonLat:function(ll, inclusive) {
|
||||||
return this.contains(ll.lon, ll.lat, inclusive);
|
return this.contains(ll.lon, ll.lat, inclusive);
|
||||||
@@ -288,11 +284,11 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* px - {<OpenLayers.Pixel>}
|
* px - {<OpenLayers.Pixel>}
|
||||||
* inclusive - {Boolean} Whether or not to include the border.
|
* inclusive - {Boolean} Whether or not to include the border. Default is
|
||||||
* Default is true.
|
* true.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} Whether or not the passed-in pixel is within this bounds.
|
* {Boolean} The passed-in pixel is within this bounds.
|
||||||
*/
|
*/
|
||||||
containsPixel:function(px, inclusive) {
|
containsPixel:function(px, inclusive) {
|
||||||
return this.contains(px.x, px.y, inclusive);
|
return this.contains(px.x, px.y, inclusive);
|
||||||
@@ -304,12 +300,12 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* Parameters:
|
* Parameters:
|
||||||
* x - {Float}
|
* x - {Float}
|
||||||
* y - {Float}
|
* y - {Float}
|
||||||
* inclusive - {Boolean} Whether or not to include the border.
|
* inclusive - {Boolean} Whether or not to include the border. Default is
|
||||||
* Default is true.
|
* true.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} Whether or not the passed-in coordinates are within this
|
* {Boolean} Whether or not the passed-in coordinates are within this
|
||||||
* bounds.
|
* bounds.
|
||||||
*/
|
*/
|
||||||
contains:function(x, y, inclusive) {
|
contains:function(x, y, inclusive) {
|
||||||
|
|
||||||
@@ -334,13 +330,13 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* bounds - {<OpenLayers.Bounds>}
|
* bounds - {<OpenLayers.Bounds>}
|
||||||
* inclusive - {<Boolean>} Whether or not to include the border.
|
* inclusive - {<Boolean>} Whether or not to include the border. Default
|
||||||
* Default is true.
|
* is true.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} Whether or not the passed-in OpenLayers.Bounds object
|
* {Boolean} The passed-in OpenLayers.Bounds object intersects this bounds.
|
||||||
* intersects this bounds. Simple math just check if either
|
* Simple math just check if either contains the other, allowing for
|
||||||
* contains the other, allowing for partial.
|
* partial.
|
||||||
*/
|
*/
|
||||||
intersectsBounds:function(bounds, inclusive) {
|
intersectsBounds:function(bounds, inclusive) {
|
||||||
|
|
||||||
@@ -369,16 +365,14 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* APIMethod: containsBounds
|
* APIMethod: containsBounds
|
||||||
*
|
*
|
||||||
* bounds - {<OpenLayers.Bounds>}
|
* bounds - {<OpenLayers.Bounds>}
|
||||||
* partial - {<Boolean>} If true, only part of passed-in
|
* partial - {<Boolean>} If true, only part of passed-in bounds needs be
|
||||||
* <OpenLayers.Bounds> needs be within this bounds.
|
* within this bounds. If false, the entire passed-in bounds must be
|
||||||
* If false, the entire passed-in bounds must be
|
* within. Default is false
|
||||||
* within. Default is false
|
* inclusive - {<Boolean>} Whether or not to include the border. Default is
|
||||||
* inclusive - {<Boolean>} Whether or not to include the border.
|
* true.
|
||||||
* Default is true.
|
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Boolean} Whether or not the passed-in OpenLayers.Bounds object is
|
* {Boolean} The passed-in bounds object is contained within this bounds.
|
||||||
* contained within this bounds.
|
|
||||||
*/
|
*/
|
||||||
containsBounds:function(bounds, partial, inclusive) {
|
containsBounds:function(bounds, partial, inclusive) {
|
||||||
|
|
||||||
@@ -418,8 +412,8 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* lonlat - {<OpenLayers.LonLat>}
|
* lonlat - {<OpenLayers.LonLat>}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {String} The quadrant ("br" "tr" "tl" "bl") of the bounds in which
|
* {String} The quadrant ("br" "tr" "tl" "bl") of the bounds in which the
|
||||||
* the coordinate lies.
|
* coordinate lies.
|
||||||
*/
|
*/
|
||||||
determineQuadrant: function(lonlat) {
|
determineQuadrant: function(lonlat) {
|
||||||
|
|
||||||
@@ -495,7 +489,7 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
* str - {String}Comma-separated bounds string. (ex. <i>"5,42,10,45"</i>)
|
* str - {String}Comma-separated bounds string. (ex. <i>"5,42,10,45"</i>)
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Bounds>} New <OpenLayers.Bounds> object built from the
|
* {<OpenLayers.Bounds>} New bounds object built from the
|
||||||
* passed-in String.
|
* passed-in String.
|
||||||
*/
|
*/
|
||||||
OpenLayers.Bounds.fromString = function(str) {
|
OpenLayers.Bounds.fromString = function(str) {
|
||||||
@@ -512,8 +506,7 @@ OpenLayers.Bounds.fromString = function(str) {
|
|||||||
* bbox - {Array(Float)} Array of bounds values (ex. <i>[5,42,10,45]</i>)
|
* bbox - {Array(Float)} Array of bounds values (ex. <i>[5,42,10,45]</i>)
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Bounds>} New <OpenLayers.Bounds> object built from the
|
* {<OpenLayers.Bounds>} New bounds object built from the passed-in Array.
|
||||||
* passed-in Array.
|
|
||||||
*/
|
*/
|
||||||
OpenLayers.Bounds.fromArray = function(bbox) {
|
OpenLayers.Bounds.fromArray = function(bbox) {
|
||||||
return new OpenLayers.Bounds(parseFloat(bbox[0]),
|
return new OpenLayers.Bounds(parseFloat(bbox[0]),
|
||||||
@@ -531,8 +524,7 @@ OpenLayers.Bounds.fromArray = function(bbox) {
|
|||||||
* size - {<OpenLayers.Size>}
|
* size - {<OpenLayers.Size>}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Bounds>} New <OpenLayers.Bounds> object built from the
|
* {<OpenLayers.Bounds>} New bounds object built from the passed-in size.
|
||||||
* passed-in size.
|
|
||||||
*/
|
*/
|
||||||
OpenLayers.Bounds.fromSize = function(size) {
|
OpenLayers.Bounds.fromSize = function(size) {
|
||||||
return new OpenLayers.Bounds(0,
|
return new OpenLayers.Bounds(0,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -93,7 +93,7 @@ OpenLayers.Control = OpenLayers.Class({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: handler
|
* Property: handler
|
||||||
* {<OpenLayers.Handler}> null
|
* {<OpenLayers.Handler>} null
|
||||||
*/
|
*/
|
||||||
handler: null,
|
handler: null,
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Cpyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Cpyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -31,9 +31,9 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* that is about to be dragged and the pixel location of the mouse.
|
* that is about to be dragged and the pixel location of the mouse.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* feature - {OpenLayers.Feature.Vector} The feature that is about to be
|
* feature - {<OpenLayers.Feature.Vector>} The feature that is about to be
|
||||||
* dragged.
|
* dragged.
|
||||||
* pixel - {OpenLayers.Pixel} The pixel location of the mouse.
|
* pixel - {<OpenLayers.Pixel>} The pixel location of the mouse.
|
||||||
*/
|
*/
|
||||||
onStart: function(feature, pixel) {},
|
onStart: function(feature, pixel) {},
|
||||||
|
|
||||||
@@ -44,8 +44,8 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* feature that is being dragged and the pixel location of the mouse.
|
* feature that is being dragged and the pixel location of the mouse.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* feature - {OpenLayers.Feature.Vector} The feature that was dragged.
|
* feature - {<OpenLayers.Feature.Vector>} The feature that was dragged.
|
||||||
* pixel - {OpenLayers.Pixel} The pixel location of the mouse.
|
* pixel - {<OpenLayers.Pixel>} The pixel location of the mouse.
|
||||||
*/
|
*/
|
||||||
onDrag: function(feature, pixel) {},
|
onDrag: function(feature, pixel) {},
|
||||||
|
|
||||||
@@ -57,26 +57,26 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* mouse.
|
* mouse.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* feature - {OpenLayers.Feature.Vector} The feature that was dragged.
|
* feature - {<OpenLayers.Feature.Vector>} The feature that was dragged.
|
||||||
* pixel - {OpenLayers.Pixel} The pixel location of the mouse.
|
* pixel - {<OpenLayers.Pixel>} The pixel location of the mouse.
|
||||||
*/
|
*/
|
||||||
onComplete: function(feature, pixel) {},
|
onComplete: function(feature, pixel) {},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: layer
|
* Property: layer
|
||||||
* {OpenLayers.Layer.Vector}
|
* {<OpenLayers.Layer.Vector>}
|
||||||
*/
|
*/
|
||||||
layer: null,
|
layer: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: feature
|
* Property: feature
|
||||||
* {OpenLayers.Feature.Vector}
|
* {<OpenLayers.Feature.Vector>}
|
||||||
*/
|
*/
|
||||||
feature: null,
|
feature: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: dragHandler
|
* Property: dragHandler
|
||||||
* {OpenLayers.Handler.Drag}
|
* {<OpenLayers.Handler.Drag>}
|
||||||
*/
|
*/
|
||||||
dragHandler: null,
|
dragHandler: null,
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: featureHandler
|
* Property: featureHandler
|
||||||
* {OpenLayers.Handler.Feature}
|
* {<OpenLayers.Handler.Feature>}
|
||||||
*/
|
*/
|
||||||
featureHandler: null,
|
featureHandler: null,
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: lastPixel
|
* Property: lastPixel
|
||||||
* {OpenLayers.Pixel}
|
* {<OpenLayers.Pixel>}
|
||||||
*/
|
*/
|
||||||
lastPixel: null,
|
lastPixel: null,
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Create a new control to drag features.
|
* Create a new control to drag features.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* layer - {OpenLayers.Layer.Vector} The layer containing features to be
|
* layer - {<OpenLayers.Layer.Vector>} The layer containing features to be
|
||||||
* dragged.
|
* dragged.
|
||||||
* options - {Object} Optional object whose properties will be set on the
|
* options - {Object} Optional object whose properties will be set on the
|
||||||
* control.
|
* control.
|
||||||
@@ -179,7 +179,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* This activates the drag handler.
|
* This activates the drag handler.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* feature - {OpenLayers.Feature.Vector} The selected feature.
|
* feature - {<OpenLayers.Feature.Vector>} The selected feature.
|
||||||
*/
|
*/
|
||||||
overFeature: function(feature) {
|
overFeature: function(feature) {
|
||||||
if(!this.dragHandler.dragging) {
|
if(!this.dragHandler.dragging) {
|
||||||
@@ -202,7 +202,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Called when the drag handler detects a mouse-down.
|
* Called when the drag handler detects a mouse-down.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* pixel - {OpenLayers.Pixel} Location of the mouse event.
|
* pixel - {<OpenLayers.Pixel>} Location of the mouse event.
|
||||||
*/
|
*/
|
||||||
downFeature: function(pixel) {
|
downFeature: function(pixel) {
|
||||||
this.lastPixel = pixel;
|
this.lastPixel = pixel;
|
||||||
@@ -215,7 +215,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* optional onDrag method.
|
* optional onDrag method.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* pixel - {OpenLayers.Pixel} Location of the mouse event.
|
* pixel - {<OpenLayers.Pixel>} Location of the mouse event.
|
||||||
*/
|
*/
|
||||||
moveFeature: function(pixel) {
|
moveFeature: function(pixel) {
|
||||||
var res = this.map.getResolution();
|
var res = this.map.getResolution();
|
||||||
@@ -232,7 +232,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* optional onComplete method.
|
* optional onComplete method.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* pixel - {OpenLayers.Pixel} Location of the mouse event.
|
* pixel - {<OpenLayers.Pixel>} Location of the mouse event.
|
||||||
*/
|
*/
|
||||||
upFeature: function(pixel) {
|
upFeature: function(pixel) {
|
||||||
if(!this.over) {
|
if(!this.over) {
|
||||||
@@ -248,7 +248,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Called when the drag handler is done dragging.
|
* Called when the drag handler is done dragging.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* pixel - {OpenLayers.Pixel} The last event pixel location. If this event
|
* pixel - {<OpenLayers.Pixel>} The last event pixel location. If this event
|
||||||
* came from a mouseout, this may not be in the map viewport.
|
* came from a mouseout, this may not be in the map viewport.
|
||||||
*/
|
*/
|
||||||
doneDragging: function(pixel) {
|
doneDragging: function(pixel) {
|
||||||
@@ -260,7 +260,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Called when the feature handler detects a mouse-out on a feature.
|
* Called when the feature handler detects a mouse-out on a feature.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* feature - {OpenLayers.Feature.Vector} The feature that the mouse left.
|
* feature - {<OpenLayers.Feature.Vector>} The feature that the mouse left.
|
||||||
*/
|
*/
|
||||||
outFeature: function(feature) {
|
outFeature: function(feature) {
|
||||||
if(!this.dragHandler.dragging) {
|
if(!this.dragHandler.dragging) {
|
||||||
@@ -290,7 +290,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Set the map property for the control and all handlers.
|
* Set the map property for the control and all handlers.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* map - {OpenLayers.Map} The control's map.
|
* map - {<OpenLayers.Map>} The control's map.
|
||||||
*/
|
*/
|
||||||
setMap: function(map) {
|
setMap: function(map) {
|
||||||
this.dragHandler.setMap(map);
|
this.dragHandler.setMap(map);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: layer
|
* Property: layer
|
||||||
* {OpenLayers.Layer.Vector}
|
* {<OpenLayers.Layer.Vector>}
|
||||||
*/
|
*/
|
||||||
layer: null,
|
layer: null,
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Create a new modify feature control.
|
* Create a new modify feature control.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* layer - {OpenLayers.Layer.Vector} Layer that contains features that
|
* layer - {<OpenLayers.Layer.Vector>} Layer that contains features that
|
||||||
* will be modified.
|
* will be modified.
|
||||||
* options - {Object} Optional object whose properties will be set on the
|
* options - {Object} Optional object whose properties will be set on the
|
||||||
* control.
|
* control.
|
||||||
@@ -450,7 +450,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* Set the map property for the control and all handlers.
|
* Set the map property for the control and all handlers.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* map - {OpenLayers.Map} The control's map.
|
* map - {<OpenLayers.Map>} The control's map.
|
||||||
*/
|
*/
|
||||||
setMap: function(map) {
|
setMap: function(map) {
|
||||||
this.selectControl.setMap(map);
|
this.selectControl.setMap(map);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -53,7 +53,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* APIProperty: minRatio
|
* APIProperty: minRatio
|
||||||
* {Numver} The ratio of the overview map resolution to the main map
|
* {Float} The ratio of the overview map resolution to the main map
|
||||||
* resolution at which to zoom farther out on the overview map.
|
* resolution at which to zoom farther out on the overview map.
|
||||||
*/
|
*/
|
||||||
minRatio: 8,
|
minRatio: 8,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -15,13 +15,13 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* APIProperty: slideFactor
|
* APIProperty: slideFactor
|
||||||
* {Float}
|
* {Integer}
|
||||||
*/
|
*/
|
||||||
slideFactor: 50,
|
slideFactor: 50,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: buttons
|
* Property: buttons
|
||||||
* Array of Button Divs
|
* {Array(DOMElement)} Array of Button Divs
|
||||||
*/
|
*/
|
||||||
buttons: null,
|
buttons: null,
|
||||||
|
|
||||||
@@ -32,9 +32,12 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
position: null,
|
position: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor: OpenLayers.PanZoom
|
* Constructor: OpenLayers.Control.PanZoom
|
||||||
|
*
|
||||||
|
* Parameters:
|
||||||
|
* options - {Object}
|
||||||
*/
|
*/
|
||||||
initialize: function() {
|
initialize: function(options) {
|
||||||
this.position = new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,
|
this.position = new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,
|
||||||
OpenLayers.Control.PanZoom.Y);
|
OpenLayers.Control.PanZoom.Y);
|
||||||
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
||||||
@@ -61,7 +64,7 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* px - {<OpenLayers.Pixel>}
|
* px - {<OpenLayers.Pixel>}
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {DOMElement} A reference to the container div for the PanZoom control
|
* {DOMElement} A reference to the container div for the PanZoom control.
|
||||||
*/
|
*/
|
||||||
draw: function(px) {
|
draw: function(px) {
|
||||||
// initialize our internal div
|
// initialize our internal div
|
||||||
@@ -100,7 +103,7 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {DOMElement} A Div (an alphaImageDiv, to be precise) that contains the
|
* {DOMElement} A Div (an alphaImageDiv, to be precise) that contains the
|
||||||
* image of the button, and has all the proper event handlers set.
|
* image of the button, and has all the proper event handlers set.
|
||||||
*/
|
*/
|
||||||
_addButton:function(id, img, xy, sz) {
|
_addButton:function(id, img, xy, sz) {
|
||||||
var imgLocation = OpenLayers.Util.getImagesLocation() + img;
|
var imgLocation = OpenLayers.Util.getImagesLocation() + img;
|
||||||
@@ -179,5 +182,14 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
CLASS_NAME: "OpenLayers.Control.PanZoom"
|
CLASS_NAME: "OpenLayers.Control.PanZoom"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constant: X
|
||||||
|
* {Integer}
|
||||||
|
*/
|
||||||
OpenLayers.Control.PanZoom.X = 4;
|
OpenLayers.Control.PanZoom.X = 4;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constant: Y
|
||||||
|
* {Integer}
|
||||||
|
*/
|
||||||
OpenLayers.Control.PanZoom.Y = 4;
|
OpenLayers.Control.PanZoom.Y = 4;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
// TRASH THIS
|
// TRASH THIS
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires OpenLayers/Format/XML.js
|
* @requires OpenLayers/Format/XML.js
|
||||||
* @requires OpenLayers/Feature/Vector.js
|
* @requires OpenLayers/Feature/Vector.js
|
||||||
* @requires OpenLayers/Geometry.js
|
* @requires OpenLayers/Geometry/Point.js
|
||||||
|
* @requires OpenLayers/Geometry/MultiPoint.js
|
||||||
|
* @requires OpenLayers/Geometry/LineString.js
|
||||||
|
* @requires OpenLayers/Geometry/MultiLineString.js
|
||||||
|
* @requires OpenLayers/Geometry/Polygon.js
|
||||||
|
* @requires OpenLayers/Geometry/MultiPolygon.js
|
||||||
*
|
*
|
||||||
* Class: OpenLayers.Format.GML
|
* Class: OpenLayers.Format.GML
|
||||||
* Read/Wite GML. Create a new instance with the <OpenLayers.Format.GML>
|
* Read/Wite GML. Create a new instance with the <OpenLayers.Format.GML>
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires OpenLayers/Format/JSON.js
|
* @requires OpenLayers/Format/JSON.js
|
||||||
|
* @requires OpenLayers/Feature/Vector.js
|
||||||
|
* @requires OpenLayers/Geometry/Point.js
|
||||||
|
* @requires OpenLayers/Geometry/MultiPoint.js
|
||||||
|
* @requires OpenLayers/Geometry/LineString.js
|
||||||
|
* @requires OpenLayers/Geometry/MultiLineString.js
|
||||||
|
* @requires OpenLayers/Geometry/Polygon.js
|
||||||
|
* @requires OpenLayers/Geometry/MultiPolygon.js
|
||||||
*
|
*
|
||||||
* Class: OpenLayers.Format.GeoJSON
|
* Class: OpenLayers.Format.GeoJSON
|
||||||
* Read and write GeoJSON. Create a new parser with the
|
* Read and write GeoJSON. Create a new parser with the
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires OpenLayers/Format.js
|
|
||||||
* @requires OpenLayers/Format/XML.js
|
* @requires OpenLayers/Format/XML.js
|
||||||
|
* @requires OpenLayers/Feature/Vector.js
|
||||||
|
* @requires OpenLayers/Geometry/Point.js
|
||||||
|
* @requires OpenLayers/Geometry/LineString.js
|
||||||
|
* @requires OpenLayers/Geometry/Polygon.js
|
||||||
*
|
*
|
||||||
* Class: OpenLayers.Format.GeoRSS
|
* Class: OpenLayers.Format.GeoRSS
|
||||||
* Read/write GeoRSS parser. Create a new instance with the
|
* Read/write GeoRSS parser. Create a new instance with the
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires OpenLayers/Format.js
|
* @requires OpenLayers/Format/XML.js
|
||||||
* @requires OpenLayers/Feature/Vector.js
|
* @requires OpenLayers/Feature/Vector.js
|
||||||
|
* @requires OpenLayers/Geometry/Point.js
|
||||||
|
* @requires OpenLayers/Geometry/LineString.js
|
||||||
|
* @requires OpenLayers/Geometry/Polygon.js
|
||||||
|
* @requires OpenLayers/Geometry/Collection.js
|
||||||
*
|
*
|
||||||
* Class: OpenLayers.Format.KML
|
* Class: OpenLayers.Format.KML
|
||||||
* Read/Wite KML. Create a new instance with the <OpenLayers.Format.KML>
|
* Read/Wite KML. Create a new instance with the <OpenLayers.Format.KML>
|
||||||
@@ -279,7 +283,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
* node - {DOMElement} A KML MultiGeometry node.
|
* node - {DOMElement} A KML MultiGeometry node.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Geometry.Polygon>} A geometry collection.
|
* {<OpenLayers.Geometry.Collection>} A geometry collection.
|
||||||
*/
|
*/
|
||||||
multigeometry: function(node) {
|
multigeometry: function(node) {
|
||||||
var child, parser;
|
var child, parser;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires OpenLayers/Format.js
|
* @requires OpenLayers/Format.js
|
||||||
|
* @requires OpenLayers/Feature/Vector.js
|
||||||
*
|
*
|
||||||
* Class: OpenLayers.Format.WKT
|
* Class: OpenLayers.Format.WKT
|
||||||
* Class for reading and writing Well-Known Text. Create a new instance
|
* Class for reading and writing Well-Known Text. Create a new instance
|
||||||
@@ -38,8 +39,8 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: read
|
* Method: read
|
||||||
* Deserialize a WKT string and return an OpenLayers.Feature.Vector or an
|
* Deserialize a WKT string and return a vector feature or an
|
||||||
* array of OpenLayers.Feature.Vector. Supports WKT for POINT, MULTIPOINT,
|
* array of vector features. Supports WKT for POINT, MULTIPOINT,
|
||||||
* LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and
|
* LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and
|
||||||
* GEOMETRYCOLLECTION.
|
* GEOMETRYCOLLECTION.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -253,13 +253,8 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
* {Boolean} Let the event propagate.
|
* {Boolean} Let the event propagate.
|
||||||
*/
|
*/
|
||||||
click: function (evt) {
|
click: function (evt) {
|
||||||
// throw away the first left click event that happens after a mouse up
|
// let the click event propagate only if the mouse moved
|
||||||
if (this.dragging) {
|
return (this.start == this.last);
|
||||||
this.dragging = false;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.started = false;
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@ OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
|
|||||||
* Calculate the angle based on settings.
|
* Calculate the angle based on settings.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* point - {OpenLayers.Geometry.Point}
|
* point - {<OpenLayers.Geometry.Point>}
|
||||||
* evt - {Event}
|
* evt - {Event}
|
||||||
*/
|
*/
|
||||||
calculateAngle: function(point, evt) {
|
calculateAngle: function(point, evt) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -736,8 +736,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
* {Integer} The index of the zoomLevel (entry in the resolutions array)
|
* {Integer} The index of the zoomLevel (entry in the resolutions array)
|
||||||
* that still contains the passed-in extent. We do this by calculating
|
* that still contains the passed-in extent. We do this by calculating
|
||||||
* the ideal resolution for the given exteng (based on the map size)
|
* the ideal resolution for the given exteng (based on the map size)
|
||||||
* and then find the smallest resolution that is greater than this
|
* and then find the closest resolution to this ideal resolution.
|
||||||
* ideal resolution.
|
|
||||||
*/
|
*/
|
||||||
getZoomForExtent: function(extent) {
|
getZoomForExtent: function(extent) {
|
||||||
var viewSize = this.map.getSize();
|
var viewSize = this.map.getSize();
|
||||||
@@ -761,23 +760,28 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: getZoomForResolution
|
* APIMethod: getZoomForResolution
|
||||||
|
* Get the index for the closest resolution in the layers resolutions array.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* resolution - {Float}
|
* resolution - {Float} Map units per pixel.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Integer} The index of the zoomLevel (entry in the resolutions array)
|
* {Integer} The index of the zoomLevel (entry in the resolutions array)
|
||||||
* that is the smallest resolution that is greater than the passed-in
|
* that is the closest to the passed-in resolution.
|
||||||
* resolution.
|
|
||||||
*/
|
*/
|
||||||
getZoomForResolution: function(resolution) {
|
getZoomForResolution: function(resolution) {
|
||||||
|
var zoom, diff;
|
||||||
for(var i=1; i < this.resolutions.length; i++) {
|
var minDiff = Number.POSITIVE_INFINITY;
|
||||||
if ( this.resolutions[i] < resolution) {
|
for(var i=0; i < this.resolutions.length; i++) {
|
||||||
|
diff = Math.abs(this.resolutions[i] - resolution);
|
||||||
|
if(diff < minDiff) {
|
||||||
|
zoom = i;
|
||||||
|
minDiff = diff;
|
||||||
|
} else if(diff > minDiff) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (i - 1);
|
return zoom;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -264,18 +264,18 @@ OpenLayers.Layer.Google = OpenLayers.Class(
|
|||||||
* {GPoint} A GPoint specifying gLatLng translated into "Container" coords
|
* {GPoint} A GPoint specifying gLatLng translated into "Container" coords
|
||||||
*/
|
*/
|
||||||
addContainerPxFunction: function() {
|
addContainerPxFunction: function() {
|
||||||
if (typeof GMap2 != "undefined" && !GMap2.fromLatLngToContainerPixel) {
|
if ( (typeof GMap2 != "undefined") &&
|
||||||
|
!GMap2.prototype.fromLatLngToContainerPixel) {
|
||||||
|
|
||||||
GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) {
|
GMap2.prototype.fromLatLngToContainerPixel = function(gLatLng) {
|
||||||
|
|
||||||
// first we translate into "DivPixel"
|
// first we translate into "DivPixel"
|
||||||
var gPoint = this.fromLatLngToDivPixel(gLatLng);
|
var gPoint = this.fromLatLngToDivPixel(gLatLng);
|
||||||
|
|
||||||
// locate the sliding "Div" div
|
// locate the sliding "Div" div
|
||||||
// it seems like "b" is the main div
|
var div = this.getContainer().firstChild.firstChild;
|
||||||
var div = this.b.firstChild.firstChild;
|
|
||||||
|
// adjust by the offset of "Div" and voila!
|
||||||
// adjust by the offset of "Div" and voila!
|
|
||||||
gPoint.x += div.offsetLeft;
|
gPoint.x += div.offsetLeft;
|
||||||
gPoint.y += div.offsetTop;
|
gPoint.y += div.offsetTop;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -186,7 +186,7 @@ OpenLayers.Layer.Image = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
*/
|
*/
|
||||||
setUrl: function(newUrl) {
|
setUrl: function(newUrl) {
|
||||||
this.url = newUrl;
|
this.url = newUrl;
|
||||||
this.draw();
|
this.tile.draw();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD licence.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD licence.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD licence.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD licence.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
@@ -1352,7 +1352,7 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: getZoomForExteng
|
* APIMethod: getZoomForExtent
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* bounds - {<OpenLayers.Bounds>}
|
* bounds - {<OpenLayers.Bounds>}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
|
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license.
|
||||||
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
|
* See http://svn.openlayers.org/trunk/openlayers/release-license.txt
|
||||||
* for the full text of the license. */
|
* for the full text of the license. */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user