diff --git a/files/OpenLayers-js.html b/files/OpenLayers-js.html new file mode 100644 index 0000000000..ac610413b6 --- /dev/null +++ b/files/OpenLayers-js.html @@ -0,0 +1,34 @@ + + +OpenLayers + + + + + + + + + + +

OpenLayers

The OpenLayers object provides a namespace for all things OpenLayers

Summary
The OpenLayers object provides a namespace for all things OpenLayers
{String} Relative path of this script.
Return the path to this script.
+ +

Properties

+ +

_scriptName

{String} Relative path of this script.

+ +

Functions

+ +

_getScriptLocation

_getScriptLocation: function ()

Return the path to this script.

Return

Path to this script

+ +

Constants

+ +

VERSION_NUMBER

+ +
+ +
_getScriptLocation: function ()
Return the path to this script.
+ + \ No newline at end of file diff --git a/files/OpenLayers/BaseTypes-js.html b/files/OpenLayers/BaseTypes-js.html new file mode 100644 index 0000000000..d8384cb708 --- /dev/null +++ b/files/OpenLayers/BaseTypes-js.html @@ -0,0 +1,82 @@ + + +OpenLayers.Class - OpenLayers + + + + + + + + + + +

OpenLayers. Class

Contains functions to create OpenLayers style classes.

Summary
Contains functions to create OpenLayers style classes.
Create an OpenLayers style class
Inherit from one or more OpenLayers style classes
This class represents a screen coordinate, in x and y coordinates
{Number} The x coordinate
{Number} The x coordinate
Create a new OpenLayers.Pixel instance
Cast this object into a string
Return a clone of this pixel object
Determine whether one pixel is equivalent to another
Instances of this class represent a width/height pair
{Number} width
{Number} height
Create an instance of OpenLayers.Size
Return the string representation of a size object
Create a clone of this size object
Instances of this class represent bounding boxes.
{Number}
{Number}
{Number}
{Number}
Construct a new bounds object.
Create a cloned instance of this bounds.
Test a two bounds for equivalence
+ +

Functions

+ +

create

create: function()

Create an OpenLayers style class

Return

An OpenLayers class

+ +

inherit

inherit: function ()

Inherit from one or more OpenLayers style classes

Parameters

classOne or more classes can be provided as arguments

Return

An object prototype

+ +

OpenLayers. Pixel

This class represents a screen coordinate, in x and y coordinates

Summary
{Number} The x coordinate
{Number} The x coordinate
Create a new OpenLayers.Pixel instance
Cast this object into a string
Return a clone of this pixel object
Determine whether one pixel is equivalent to another
+ +

Properties

+ +

x

{Number} The x coordinate

+ +

x

{Number} The x coordinate

+ +

Functions

+ +

OpenLayers. Pixel

Create a new OpenLayers.Pixel instance

Parameters

x{Number} The x coordinate
y{Number} The y coordinate

Return

An instance of OpenLayers.Pixel

+ +

toString

toString:function()

Cast this object into a string

Return

{String} The string representation of Pixel. ex: “x=200.4,y=242.2”

+ +

clone

clone:function()

Return a clone of this pixel object

Return

{OpenLayers.Pixel} A clone pixel

+ +

equals

equals:function(px)

Determine whether one pixel is equivalent to another

Parameters

px{OpenLayers.Pixel}

Return

{Boolean} The point passed in as parameter is equal to this.  Note that if px passed in is null, returns false.

+ +

OpenLayers.Size

Instances of this class represent a width/height pair

Summary
{Number} width
{Number} height
Create an instance of OpenLayers.Size
Return the string representation of a size object
Create a clone of this size object
+ +

Properties

+ +

w

{Number} width

+ +

h

{Number} height

+ +

Functions

+ +

OpenLayers.Size

Create an instance of OpenLayers.Size

Parameters

w{Number} width
h{Number} height
+ +

toString

toString:function()

Return the string representation of a size object

Return

{String} The string representation of OpenLayers.Size object.  (ex.  <i>”w=55,h=66”</i>)

+ +

clone

clone:function()

Create a clone of this size object

Return

{OpenLayers.Size} A new OpenLayers.Size object with the same w and h values

+ +

OpenLayers. Bounds

Instances of this class represent bounding boxes.  Data stored as left, bottom, right, top floats

Summary
{Number}
{Number}
{Number}
{Number}
Construct a new bounds object.
Create a cloned instance of this bounds.
Test a two bounds for equivalence
+ +

Properties

+ +

left

{Number}

+ +

bottom

{Number}

+ +

right

{Number}

+ +

top

{Number}

+ +

Functions

+ +

OpenLayers. Bounds

Construct a new bounds object.

Parameters

left{Number} The left bounds of the box.  Note that for width calculations, this is assumed to be less than the right value.
bottom{Number} The bottom bounds of the box.  Note that for height calculations, this is assumed to be more than the top value.
right{Number} The right bounds.
top{Number} The top bounds.

Return

{OpenLayers.Bounds} A new bounds instance.

+ +

clone

clone:function()

Create a cloned instance of this bounds.

Return

{OpenLayers.Bounds} A fresh copy of the bounds

+ +

equals

equals:function(bounds)

Test a two bounds for equivalence

Parameters

bounds{OpenLayers.Bounds}

Return

{Boolean} The passed-in OpenLayers.Bounds object has the same left, right, top, bottom components as this.  Note that if bounds passed in is null, returns false.

+ +
+ +
create: function()
Create an OpenLayers style class
inherit: function ()
Inherit from one or more OpenLayers style classes
toString:function()
Cast this object into a string
clone:function()
Return a clone of this pixel object
equals:function(px)
Determine whether one pixel is equivalent to another
toString:function()
Return the string representation of a size object
clone:function()
Create a clone of this size object
clone:function()
Create a cloned instance of this bounds.
equals:function(bounds)
Test a two bounds for equivalence
Construct a new bounds object.
+ + \ No newline at end of file diff --git a/files/OpenLayers/Console-js.html b/files/OpenLayers/Console-js.html new file mode 100644 index 0000000000..17b8ebc8e3 --- /dev/null +++ b/files/OpenLayers/Console-js.html @@ -0,0 +1,52 @@ + + +OpenLayers.Console - OpenLayers + + + + + + + + + + +

OpenLayers. Console

The OpenLayers.Console namespace is used for debugging and error logging.  If the Firebug Lite (../Firebug/firebug.js) is included before this script, calls to OpenLayers.Console methods will get redirected to window.console.  This makes use of the Firebug extension where available and allows for cross-browser debugging Firebug style.

Note

Note that behavior will differ with the Firebug extention and Firebug Lite.  Most notably, the Firebug Lite console does not currently allow for hyperlinks to code or for clicking on object to explore their properties.

Summary
The OpenLayers.Console namespace is used for debugging and error logging.
Log an object in the console.
Writes a message to the console, including a hyperlink to the line where it was called.
Writes a message to the console with the visual “info” icon and color coding and a hyperlink to the line where it was called.
Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called.
Writes a message to the console with the visual “error” icon and color coding and a hyperlink to the line where it was called.
Tests that an expression is true.
Prints an interactive listing of all properties of the object.
Prints the XML source tree of an HTML or XML element.
Prints an interactive stack trace of JavaScript execution at the point where it is called.
Writes a message to the console and opens a nested block to indent all future messages sent to the console.
Closes the most recently opened block created by a call to OpenLayers.Console.group
Creates a new timer under the given name.
+ +

Functions

+ +

log

log: function()

Log an object in the console.  The Firebug Lite console logs string representation of objects.  Given multiple arguments, they will be cast to strings and logged with a space delimiter.  If the first argument is a string with printf-like formatting, subsequent arguments will be used in string substitution.  Any additional arguments (beyond the number substituted in a format string) will be appended in a space- delimited line.

Examples

// Firebug Lite logs someObject.toString()
OpenLayers.Console.log(someObject);

// string substitution
OpenLayers.Console.log("%s jumped over %s", cow, moon);

Parameters

object{Object}
+ +

debug

debug: function()

Writes a message to the console, including a hyperlink to the line where it was called.

May be called with multiple arguments as with OpenLayers.Console.log().

Parameters

object{Object}
+ +

info

info: function()

Writes a message to the console with the visual “info” icon and color coding and a hyperlink to the line where it was called.

May be called with multiple arguments as with OpenLayers.Console.log().

Parameters

object{Object}
+ +

warn

warn: function()

Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called.

May be called with multiple arguments as with OpenLayers.Console.log().

Parameters

object{Object}
+ +

error

error: function()

Writes a message to the console with the visual “error” icon and color coding and a hyperlink to the line where it was called.

May be called with multiple arguments as with OpenLayers.Console.log().

Parameters

object{Object}
+ +

assert

assert: function()

Tests that an expression is true.  If not, it will write a message to the console and throw an exception.

May be called with multiple arguments as with OpenLayers.Console.log().

Parameters

object{Object}
+ +

dir

dir: function()

Prints an interactive listing of all properties of the object.  This looks identical to the view that you would see in the DOM tab.

Parameters

object{Object}
+ +

dirxml

dirxml: function()

Prints the XML source tree of an HTML or XML element.  This looks identical to the view that you would see in the HTML tab.  You can click on any node to inspect it in the HTML tab.

Parameters

object{Object}
+ +

trace

trace: function()

Prints an interactive stack trace of JavaScript execution at the point where it is called.  The stack trace details the functions on the stack, as well as the values that were passed as arguments to each function.  You can click each function to take you to its source in the Script tab, and click each argument value to inspect it in the DOM or HTML tabs.

+ +

group

group: function()

Writes a message to the console and opens a nested block to indent all future messages sent to the console.  Call OpenLayers.Console.groupEnd() to close the block.

May be called with multiple arguments as with OpenLayers.Console.log().

Parameters

object{Object}
+ +

groupEnd

groupEnd: function()

Closes the most recently opened block created by a call to OpenLayers.Console.group

+ +

time

time: function()

Creates a new timer under the given name.  Call OpenLayers.Console.timeEnd(name) with the same name to stop the timer and print the time elapsed.

Parameters

name{String}
+ +

Constants

+ +

CLASS_NAME

+ +
+ +
log: function()
Log an object in the console.
debug: function()
Writes a message to the console, including a hyperlink to the line where it was called.
info: function()
Writes a message to the console with the visual “info” icon and color coding and a hyperlink to the line where it was called.
warn: function()
Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called.
error: function()
Writes a message to the console with the visual “error” icon and color coding and a hyperlink to the line where it was called.
assert: function()
Tests that an expression is true.
dir: function()
Prints an interactive listing of all properties of the object.
dirxml: function()
Prints the XML source tree of an HTML or XML element.
trace: function()
Prints an interactive stack trace of JavaScript execution at the point where it is called.
group: function()
Writes a message to the console and opens a nested block to indent all future messages sent to the console.
groupEnd: function()
Closes the most recently opened block created by a call to OpenLayers.Console.group
time: function()
Creates a new timer under the given name.
+ + \ No newline at end of file diff --git a/files/OpenLayers/Layer-js.html b/files/OpenLayers/Layer-js.html new file mode 100644 index 0000000000..4523f3312e --- /dev/null +++ b/files/OpenLayers/Layer-js.html @@ -0,0 +1,60 @@ + + +OpenLayers.Layer - OpenLayers + + + + + + + + + + +

OpenLayers. Layer

Summary
{Integer} Determines the width (in pixels) of the gutter around image tiles to ignore.
{String} Set in the layer options to override the default projection string this layer - also set maxExtent, maxResolution, and units if appropriate.
{String} The layer map units.
{Array}
{Array}
{OpenLayers.Bounds}
{OpenLayers.Bounds}
{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.
{Number}
{Integer}
{Number}
{Number}
{Boolean} Request map tiles that are completely outside of the max extent for this layer.
{Boolean} #487 for more info.
Destroy is a destructor: this is to alleviate cyclic references which the Javascript garbage cleaner can not take care of on its own.
+ +

Properties

+ +

gutter

{Integer} Determines the width (in pixels) of the gutter around image tiles to ignore.  By setting this property to a non-zero value, images will be requested that are wider and taller than the tile size by a value of 2 x gutter.  This allows artifacts of rendering at tile edges to be ignored.  Set a gutter value that is equal to half the size of the widest symbol that needs to be displayed.  Defaults to zero.  Non-tiled layers always have zero gutter.

+ +

projection

{String} Set in the layer options to override the default projection string this layer - also set maxExtent, maxResolution, and units if appropriate.

+ +

units

{String} The layer map units.  Defaults to ‘degrees’.  Possible values are ‘degrees’ (or ‘dd’), ‘m’, ‘ft’, ‘km’, ‘mi’, ‘inches’.

+ +

scales

{Array}

+ +

resolutions

{Array}

+ +

maxExtent

{OpenLayers.Bounds}

+ +

minExtent

{OpenLayers.Bounds}

+ +

maxResolution

{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.  Specify a different value in the layer options if you are not using a geographic projection and displaying the whole world.

+ +

minResolution

{Number}

+ +

numZoomLevels

{Integer}

+ +

minScale

{Number}

+ +

maxScale

{Number}

+ +

displayOutsideMaxExtent

{Boolean} Request map tiles that are completely outside of the max extent for this layer.  Defaults to false

+ +

wrapDateLine

{Boolean} #487 for more info.

+ +

Functions

+ +

OpenLayers. Layer

Parameters

name{String} The layer name
options{Object} Hashtable of extra options to tag onto the layer

Return

An instance of OpenLayers.Layer

+ +

destroy

destroy: function(setNewBaseLayer)

Destroy is a destructor: this is to alleviate cyclic references which the Javascript garbage cleaner can not take care of on its own.

Parameters

setNewBaseLayer{Boolean} Should a new baselayer be selected when this has been removed?  Default is true.
+ +

clone

clone: function (obj)

Parameters

obj{OpenLayers.Layer} The layer to be cloned

Return

{OpenLayers.Layer} An exact clone of this OpenLayers.Layer

+ +
+ +
destroy: function(setNewBaseLayer)
Destroy is a destructor: this is to alleviate cyclic references which the Javascript garbage cleaner can not take care of on its own.
clone: function (obj)
+ + \ No newline at end of file diff --git a/files/OpenLayers/Layer/Image-js.html b/files/OpenLayers/Layer/Image-js.html new file mode 100644 index 0000000000..84d11ceb0f --- /dev/null +++ b/files/OpenLayers/Layer/Image-js.html @@ -0,0 +1,48 @@ + + +OpenLayers.Layer.Image - OpenLayers + + + + + + + + + + +

OpenLayers. Layer. Image

Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer.  Create a new image layer with the OpenLayers.Layer.Image constructor.  Inherits from OpenLayers.Layer.

Summary
Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer.
{Boolean} The layer is a base layer.
{String} URL of the image to use
{OpenLayers.Bounds} The image bounds in map units
{OpenLayers.Size} The image size in pixels
{OpenLayers.Tile.Image}
{Number} The ratio of height/width represented by a single pixel in the graphic
Create a new image layer
Destroy this layer
Create a clone of this layer
{String} OpenLayers.Layer.Image
+ +

Properties

+ +

isBaseLayer

{Boolean} The layer is a base layer.  Default is true.  Set this property in the layer options

+ +

url

{String} URL of the image to use

+ +

extent

{OpenLayers.Bounds} The image bounds in map units

+ +

size

{OpenLayers.Size} The image size in pixels

+ +

tile

{OpenLayers.Tile.Image}

+ +

aspectRatio

{Number} The ratio of height/width represented by a single pixel in the graphic

+ +

Functions

+ +

OpenLayers. Layer. Image

Create a new image layer

Parameters

name{String} A name for the layer.
url{String} Relative or absolute path to the image
extent{OpenLayers.Bounds} The extent represented by the image
size{OpenLayers.Size} The size (in pixels) of the image
options{Object} Hashtable of extra options to tag onto the layer
+ +

destroy

destroy: function()

Destroy this layer

+ +

clone

clone: function(obj)

Create a clone of this layer

Paramters

obj{Object} An optional layer (is this ever used?)

Return

{OpenLayers.Layer.Image} An exact copy of this layer

+ +

Constants

+ +

CLASS_NAME

{String} OpenLayers.Layer.Image

+ +
+ +
Instances of this class represent bounding boxes.
Instances of this class represent a width/height pair
destroy: function()
Destroy this layer
clone: function(obj)
Create a clone of this layer
Create a new image layer
+ + \ No newline at end of file diff --git a/files/OpenLayers/Layer/Vector-js.html b/files/OpenLayers/Layer/Vector-js.html new file mode 100644 index 0000000000..b19ef74076 --- /dev/null +++ b/files/OpenLayers/Layer/Vector-js.html @@ -0,0 +1,36 @@ + + +OpenLayers.Layer.Vector - OpenLayers + + + + + + + + + + +

OpenLayers. Layer. Vector

Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.  Create a new image layer with the OpenLayers.Layer.Vector constructor.  Inherits from OpenLayers.Layer.

Summary
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.
{Boolean} The layer is a base layer.
Create a new vector layer
Destroy this layer
{String} OpenLayers.Layer.Vector
+ +

Properties

+ +

isBaseLayer

{Boolean} The layer is a base layer.  Default is true.  Set this property in the layer options

+ +

Functions

+ +

OpenLayers. Layer. Vector

Create a new vector layer

Parameters

name{String} A name for the layer
options{Object} options Object with non-default properties to set on the layer.

Return

{OpenLayers.Layer.Vector} A new vector layer

+ +

destroy

destroy: function()

Destroy this layer

+ +

Constants

+ +

CLASS_NAME

{String} OpenLayers.Layer.Vector

+ +
+ +
destroy: function()
Destroy this layer
Create a new vector layer
+ + \ No newline at end of file diff --git a/files/OpenLayers/Layer/WMS-js.html b/files/OpenLayers/Layer/WMS-js.html new file mode 100644 index 0000000000..c867387d03 --- /dev/null +++ b/files/OpenLayers/Layer/WMS-js.html @@ -0,0 +1,44 @@ + + +OpenLayers.Layer.WMS - OpenLayers + + + + + + + + + + +

OpenLayers. Layer.WMS

Instances of OpenLayers.Layer.WMS are used to display data from OGC Web Mapping Services.  Create a new WMS layer with the OpenLayers.Layer.WMS constructor.  Inherits from <OpenLayers.Layer.Grid>.

Summary
Instances of OpenLayers.Layer.WMS are used to display data from OGC Web Mapping Services.
{Object} Hashtable of default parameter key/value pairs
{Boolean} Try to reproject this layer if its coordinate reference system is different than that of the base layer.
Create a new WMS layer object
Destroy this layer
Create a clone of this layer
Return a GetMap query string for this layer
{String} OpenLayers.Layer.WMS
+ +

Constants

+ +

DEFAULT_PARAMS

{Object} Hashtable of default parameter key/value pairs

+ +

Properties

+ +

reproject

{Boolean} Try to reproject this layer if its coordinate reference system is different than that of the base layer.  Default is true.  Set this in the layer options.  Should be set to false in most cases.

+ +

Functions

+ +

OpenLayers. Layer.WMS

Create a new WMS layer object

Example

var wms = new OpenLayers.Layer.WMS("NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});

Parameters

name{String} A name for the layer
url{String} Base url for the WMS (e.g.  http://wms.jpl.nasa.gov/wms.cgi)
params{Object} An object with key/value pairs representing the GetMap query string parameters and parameter values.
options{Ojbect} Hashtable of extra options to tag onto the layer

Return

A new OpenLayers.Layer.WMS instance

+ +

destroy

destroy: function()

Destroy this layer

+ +

clone

clone: function (obj)

Create a clone of this layer

Return

{OpenLayers.Layer.WMS} An exact clone of this layer

+ +

getURL

getURL: function (bounds)

Return a GetMap query string for this layer

Parameters

bounds{OpenLayers.Bounds} A bounds representing the bbox for the request

Return

{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters

+ +

Constants

+ +

CLASS_NAME

{String} OpenLayers.Layer.WMS

+ +
+ +
destroy: function()
Destroy this layer
clone: function (obj)
Create a clone of this layer
getURL: function (bounds)
Return a GetMap query string for this layer
Create a new WMS layer object
Instances of this class represent bounding boxes.
+ + \ No newline at end of file diff --git a/files/OpenLayers/Map-js.html b/files/OpenLayers/Map-js.html new file mode 100644 index 0000000000..9a01cec83c --- /dev/null +++ b/files/OpenLayers/Map-js.html @@ -0,0 +1,102 @@ + + +OpenLayers.Map - OpenLayers + + + + + + + + + + +

OpenLayers.Map

Instances of OpenLayers.Map are interactive maps embedded in a web page.  Create a new map with the OpenLayers.Map constructor.

Summary
Instances of OpenLayers.Map are interactive maps embedded in a web page.
{Integer} 256
{Integer} 256
{Object} Base z-indexes for different classes of thing
{Array} supported application event types
{String} Unique identifier for the map
{<OpenLayers.Events>} An events object that handles all events on the map
Function that is called to destroy the map on page unload.
{DOMElement} The element that contains the map
{OpenLayers.Size} Size of the main div (this.div)
{HTMLDivElement} The element that represents the map viewport
{<OpenLayers.LonLat>} The lonlat at which the later container was re-initialized (on-zoom)
{HTMLDivElement} The element that contains the layers.
{Array(OpenLayers.Layer} Ordered list of layers in the map
{Array(<OpenLayers.Control>) List of controls associated with the map
{Array(<OpenLayers.Popup>) List of popups associated with the map
{<OpenLayers.LonLat>} The current center of the map
{Integer} The current zoom level of the map
{String} Used to store a unique identifier that changes when the map view changes.
{OpenLayers.Size} Set in the map options to override the default tile size for this map.
{String} Set in the map options to override the default projection string this map - also set maxExtent, maxResolution, and units if appropriate.
{String} The map units.
{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.
{Number}
{Number}
{OpenLayers.Bounds} The maximum extent for the map.
{Integer} Number of zoom levels for the map.
{String} Relative path to a CSS file from which to load theme styles.
{Boolean} Should OpenLayers allow events on the map to fall through to other elements on the page, or should it swallow them? 
Constructor for a new OpenLayers.Map instance.
Destroy this map
Change the map options
Get the tile size for the map
Get a layer based on its id
{String} OpenLayers.Map
+ +

Constants

+ +

TILE_WIDTH

{Integer} 256

+ +

TILE_HEIGHT

{Integer} 256

+ +

Z_INDEX_BASE

{Object} Base z-indexes for different classes of thing

+ +

EVENT_TYPES

{Array} supported application event types

+ +

Properties and Functions

+ +

id

{String} Unique identifier for the map

+ +

events

{<OpenLayers.Events>} An events object that handles all events on the map

+ +

unloadDestroy

Function that is called to destroy the map on page unload. stored here so that if map is manually destroyed, we can unregister this.

+ +

div

{DOMElement} The element that contains the map

+ +

size

{OpenLayers.Size} Size of the main div (this.div)

+ +

viewPortDiv

{HTMLDivElement} The element that represents the map viewport

+ +

layerContainerOrigin

{<OpenLayers.LonLat>} The lonlat at which the later container was re-initialized (on-zoom)

+ +

layerContainerDiv

{HTMLDivElement} The element that contains the layers.

+ +

layers

{Array(OpenLayers.Layer} Ordered list of layers in the map

+ +

controls

{Array(<OpenLayers.Control>) List of controls associated with the map

+ +

popups

{Array(<OpenLayers.Popup>) List of popups associated with the map

+ +

baseLayer

{<OpenLayers.Layer>} The currently selected base layerthis determines min/max zoom level, projection, etc.
+ +

center

{<OpenLayers.LonLat>} The current center of the map

+ +

zoom

{Integer} The current zoom level of the map

+ +

viewRequestID

{String} Used to store a unique identifier that changes when the map view changes. viewRequestID should be used when adding data asynchronously to the map: viewRequestID is incremented when you initiate your request (right now during changing of baselayers and changing of zooms).  It is stored here in the map and also in the data that will be coming back asynchronously.  Before displaying this data on request completion, we check that the viewRequestID of the data is still the same as that of the map.  Fix for #480

+ +

tileSize

{OpenLayers.Size} Set in the map options to override the default tile size for this map.

+ +

projection

{String} Set in the map options to override the default projection string this map - also set maxExtent, maxResolution, and units if appropriate.

+ +

units

{String} The map units.  Defaults to ‘degrees’.  Possible values are ‘degrees’ (or ‘dd’), ‘m’, ‘ft’, ‘km’, ‘mi’, ‘inches’.

+ +

maxResolution

{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.  Specify a different value in the map options if you are not using a geographic projection and displaying the whole world.

+ +

minResolution

{Number}

+ +

maxScale

{Number}

+ +

minScale

+ +

maxExtent

{OpenLayers.Bounds} The maximum extent for the map.  Defaults to the whole world in decimal degrees (-180, -90, 180, 90).  Specify a different extent in the map options if you are not using a geographic projection and displaying the whole world.

+ + + +

numZoomLevels

{Integer} Number of zoom levels for the map.  Defaults to 16.  Set a different value in the map options if needed.

+ +

theme

{String} Relative path to a CSS file from which to load theme styles.  Specify null in the map options (e.g.  {theme: null}) if you want to get cascading style declarations - by putting links to stylesheets or style declarations directly in your page.

+ +

fallThrough

{Boolean} Should OpenLayers allow events on the map to fall through to other elements on the page, or should it swallow them?  (#457) Default is to swallow them.

+ +

OpenLayers.Map

Constructor for a new OpenLayers.Map instance.

Parameters

div{String} The id of an element in your page that will contain the map
options{Object} An optional object with properties to tag onto the map

Examples

// create a map with default options in an element with the id "map1"
var map = new OpenLayers.Map("map1");

// create a map with non-default options in an element with id "map2"
var options = {
maxExtent: new OpenLayers.Bounds(-200000, -200000, 200000, 200000),
maxResolution: 156543,
units: 'meters',
projection: "EPSG:41001"
};
var map = new OpenLayers.Map("map2", options);

Return

A new OpenLayers.Map instance

+ +

destroy

destroy:function()

Destroy this map

+ +

setOptions

setOptions: function(options)

Change the map options

Parameters

options{Object} Hashtable of options to tag to the map
+ +

getTileSize

getTileSize: function()

Get the tile size for the map

Return

{OpenLayers.Size}

+ +

getLayer

getLayer: function(id)

Get a layer based on its id

Parameter

id{String} A layer id

Return

{OpenLayers.Layer} The Layer with the corresponding id from the map’s layer collection, or null if not found.

+ +

Constants

+ +

CLASS_NAME

{String} OpenLayers.Map

+ +
+ +
Instances of this class represent a width/height pair
Instances of this class represent bounding boxes.
destroy:function()
Destroy this map
setOptions: function(options)
Change the map options
getTileSize: function()
Get the tile size for the map
getLayer: function(id)
Get a layer based on its id
Constructor for a new OpenLayers.Map instance.
+ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000000..acf03fb4ee --- /dev/null +++ b/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index/Classes.html b/index/Classes.html new file mode 100644 index 0000000000..706eabca91 --- /dev/null +++ b/index/Classes.html @@ -0,0 +1,16 @@ + + +Class Index - OpenLayers + + + + + + +
Class Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
O
 OpenLayers
 OpenLayers. Bounds
 OpenLayers. Class
 OpenLayers. Console
 OpenLayers. Layer
 OpenLayers. Layer. Image
 OpenLayers. Layer. Vector
 OpenLayers. Layer.WMS
 OpenLayers.Map
 OpenLayers. Pixel
 OpenLayers.Size
+ +
The OpenLayers object provides a namespace for all things OpenLayers
Instances of this class represent bounding boxes.
Contains functions to create OpenLayers style classes.
The OpenLayers.Console namespace is used for debugging and error logging.
Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer.
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.
Instances of OpenLayers.Layer.WMS are used to display data from OGC Web Mapping Services.
Instances of OpenLayers.Map are interactive maps embedded in a web page.
This class represents a screen coordinate, in x and y coordinates
Instances of this class represent a width/height pair
+ +
\ No newline at end of file diff --git a/index/Constants.html b/index/Constants.html new file mode 100644 index 0000000000..92dfca9057 --- /dev/null +++ b/index/Constants.html @@ -0,0 +1,36 @@ + + +Constant Index - OpenLayers + + + + + + +
Constant Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
C
 CLASS_NAME
D
 DEFAULT_PARAMS, OpenLayers. Layer.WMS
E
 EVENT_TYPES, OpenLayers.Map
T
 TILE_HEIGHT, OpenLayers.Map
 TILE_WIDTH, OpenLayers.Map
V
 VERSION_NUMBER, OpenLayers
Z
 Z_INDEX_BASE, OpenLayers.Map
+ +
{String} OpenLayers.Layer.Image
{String} OpenLayers.Layer.Vector
{String} OpenLayers.Layer.WMS
{String} OpenLayers.Map
+ + + +
{Object} Hashtable of default parameter key/value pairs
+ + + +
{Array} supported application event types
+ + + +
{Integer} 256
{Integer} 256
+ + + + + + + +
{Object} Base z-indexes for different classes of thing
+ +
\ No newline at end of file diff --git a/index/Functions.html b/index/Functions.html new file mode 100644 index 0000000000..bd889b2fa6 --- /dev/null +++ b/index/Functions.html @@ -0,0 +1,76 @@ + + +Function Index - OpenLayers + + + + + + +
Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _getScriptLocation, OpenLayers
A
 assert, OpenLayers. Console
B
 Bounds, OpenLayers. Bounds. OpenLayers
C
 clone
 create, OpenLayers. Class
D
 debug, OpenLayers. Console
 destroy
 dir, OpenLayers. Console
 dirxml, OpenLayers. Console
E
 equals
 error, OpenLayers. Console
G
 getLayer, OpenLayers.Map
 getTileSize, OpenLayers.Map
 getURL, OpenLayers. Layer.WMS
 group, OpenLayers. Console
 groupEnd, OpenLayers. Console
I
 Image, OpenLayers. Layer. Image. OpenLayers. Layer
 info, OpenLayers. Console
 inherit, OpenLayers. Class
L
 Layer, OpenLayers. Layer. OpenLayers
 log, OpenLayers. Console
M
 Map, OpenLayers. Map. OpenLayers
P
 Pixel, OpenLayers. Pixel. OpenLayers
S
 setOptions, OpenLayers.Map
 Size, OpenLayers. Size. OpenLayers
T
 time, OpenLayers. Console
 toString
 trace, OpenLayers. Console
U
 unloadDestroy, OpenLayers.Map
V
 Vector, OpenLayers. Layer. Vector. OpenLayers. Layer
W
 warn, OpenLayers. Console
 WMS, OpenLayers. Layer. WMS. OpenLayers. Layer
+ +
_getScriptLocation: function ()
Return the path to this script.
+ + + +
assert: function()
Tests that an expression is true.
+ + + +
Construct a new bounds object.
+ + + +
clone:function()
Create a cloned instance of this bounds.
clone: function (obj)
clone: function(obj)
Create a clone of this layer
clone: function (obj)
Create a clone of this layer
clone:function()
Return a clone of this pixel object
clone:function()
Create a clone of this size object
create: function()
Create an OpenLayers style class
+ + + +
debug: function()
Writes a message to the console, including a hyperlink to the line where it was called.
destroy: function(setNewBaseLayer)
Destroy is a destructor: this is to alleviate cyclic references which the Javascript garbage cleaner can not take care of on its own.
destroy: function()
Destroy this layer
destroy: function()
Destroy this layer
destroy: function()
Destroy this layer
destroy:function()
Destroy this map
dir: function()
Prints an interactive listing of all properties of the object.
dirxml: function()
Prints the XML source tree of an HTML or XML element.
+ + + +
equals:function(bounds)
Test a two bounds for equivalence
equals:function(px)
Determine whether one pixel is equivalent to another
error: function()
Writes a message to the console with the visual “error” icon and color coding and a hyperlink to the line where it was called.
+ + + +
getLayer: function(id)
Get a layer based on its id
getTileSize: function()
Get the tile size for the map
getURL: function (bounds)
Return a GetMap query string for this layer
group: function()
Writes a message to the console and opens a nested block to indent all future messages sent to the console.
groupEnd: function()
Closes the most recently opened block created by a call to OpenLayers.Console.group
+ + + +
Create a new image layer
info: function()
Writes a message to the console with the visual “info” icon and color coding and a hyperlink to the line where it was called.
inherit: function ()
Inherit from one or more OpenLayers style classes
+ + + +
log: function()
Log an object in the console.
+ + + +
Constructor for a new OpenLayers.Map instance.
+ + + +
Create a new OpenLayers.Pixel instance
+ + + +
setOptions: function(options)
Change the map options
Create an instance of OpenLayers.Size
+ + + +
time: function()
Creates a new timer under the given name.
toString:function()
Cast this object into a string
toString:function()
Return the string representation of a size object
trace: function()
Prints an interactive stack trace of JavaScript execution at the point where it is called.
+ + + +
Function that is called to destroy the map on page unload.
+ + + +
Create a new vector layer
+ + + +
warn: function()
Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called.
Create a new WMS layer object
+ +
\ No newline at end of file diff --git a/index/General.html b/index/General.html new file mode 100644 index 0000000000..f72e9d1f4c --- /dev/null +++ b/index/General.html @@ -0,0 +1,80 @@ + + +Index - OpenLayers + + + + + + +
Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _getScriptLocation, OpenLayers
 _scriptName, OpenLayers
A
 aspectRatio, OpenLayers. Layer. Image
 assert, OpenLayers. Console
B
 baseLayer, OpenLayers.Map
 bottom, OpenLayers. Bounds
 Bounds, OpenLayers. Bounds. OpenLayers
C
 center, OpenLayers.Map
 CLASS_NAME
 clone
 Constants
 controls, OpenLayers.Map
 create, OpenLayers. Class
D
 debug, OpenLayers. Console
 DEFAULT_PARAMS, OpenLayers. Layer.WMS
 destroy
 dir, OpenLayers. Console
 dirxml, OpenLayers. Console
 displayOutsideMaxExtent, OpenLayers. Layer
 div, OpenLayers.Map
E
 equals
 error, OpenLayers. Console
 EVENT_TYPES, OpenLayers.Map
 events, OpenLayers.Map
 extent, OpenLayers. Layer. Image
F
 fallThrough, OpenLayers.Map
 Functions
G
 getLayer, OpenLayers.Map
 getTileSize, OpenLayers.Map
 getURL, OpenLayers. Layer.WMS
 group, OpenLayers. Console
 groupEnd, OpenLayers. Console
 gutter, OpenLayers. Layer
H
 h, OpenLayers.Size
I
 id, OpenLayers.Map
 Image, OpenLayers. Layer. Image. OpenLayers. Layer
 info, OpenLayers. Console
 inherit, OpenLayers. Class
 isBaseLayer
L
 Layer, OpenLayers. Layer. OpenLayers
 layerContainerDiv, OpenLayers.Map
 layerContainerOrigin, OpenLayers.Map
 layers, OpenLayers.Map
 left, OpenLayers. Bounds
 log, OpenLayers. Console
M
 Map, OpenLayers. Map. OpenLayers
 maxExtent
 maxResolution
 maxScale
 minExtent
 minResolution
 minScale
N
 numZoomLevels
O
 OpenLayers
 OpenLayers. Bounds
 OpenLayers. Class
 OpenLayers. Console
 OpenLayers. Layer
 OpenLayers. Layer. Image
 OpenLayers. Layer. Vector
 OpenLayers. Layer.WMS
 OpenLayers.Map
 OpenLayers. Pixel
 OpenLayers.Size
P
 Pixel, OpenLayers. Pixel. OpenLayers
 popups, OpenLayers.Map
 projection
 Properties
 Properties and Functions, OpenLayers.Map
R
 reproject, OpenLayers. Layer.WMS
 resolutions, OpenLayers. Layer
 right, OpenLayers. Bounds
S
 scales, OpenLayers. Layer
 setOptions, OpenLayers.Map
 size
 Size, OpenLayers. Size. OpenLayers
+ +
_getScriptLocation: function ()
Return the path to this script.
{String} Relative path of this script.
+ + + +
{Number} The ratio of height/width represented by a single pixel in the graphic
assert: function()
Tests that an expression is true.
+ + + +
{Number}
Construct a new bounds object.
+ + + +
{OpenLayers.LonLat} The current center of the map
{String} OpenLayers.Layer.Image
{String} OpenLayers.Layer.Vector
{String} OpenLayers.Layer.WMS
{String} OpenLayers.Map
clone:function()
Create a cloned instance of this bounds.
clone: function (obj)
clone: function(obj)
Create a clone of this layer
clone: function (obj)
Create a clone of this layer
clone:function()
Return a clone of this pixel object
clone:function()
Create a clone of this size object
{Array(OpenLayers.Control) List of controls associated with the map
create: function()
Create an OpenLayers style class
+ + + +
debug: function()
Writes a message to the console, including a hyperlink to the line where it was called.
{Object} Hashtable of default parameter key/value pairs
destroy: function(setNewBaseLayer)
Destroy is a destructor: this is to alleviate cyclic references which the Javascript garbage cleaner can not take care of on its own.
destroy: function()
Destroy this layer
destroy: function()
Destroy this layer
destroy: function()
Destroy this layer
destroy:function()
Destroy this map
dir: function()
Prints an interactive listing of all properties of the object.
dirxml: function()
Prints the XML source tree of an HTML or XML element.
{Boolean} Request map tiles that are completely outside of the max extent for this layer.
{DOMElement} The element that contains the map
+ + + +
equals:function(bounds)
Test a two bounds for equivalence
equals:function(px)
Determine whether one pixel is equivalent to another
error: function()
Writes a message to the console with the visual “error” icon and color coding and a hyperlink to the line where it was called.
{Array} supported application event types
{OpenLayers.Events} An events object that handles all events on the map
{OpenLayers.Bounds} The image bounds in map units
+ + + +
{Boolean} Should OpenLayers allow events on the map to fall through to other elements on the page, or should it swallow them? 
+ + + +
getLayer: function(id)
Get a layer based on its id
getTileSize: function()
Get the tile size for the map
getURL: function (bounds)
Return a GetMap query string for this layer
group: function()
Writes a message to the console and opens a nested block to indent all future messages sent to the console.
groupEnd: function()
Closes the most recently opened block created by a call to OpenLayers.Console.group
{Integer} Determines the width (in pixels) of the gutter around image tiles to ignore.
+ + + +
{Number} height
+ + + +
{String} Unique identifier for the map
Create a new image layer
info: function()
Writes a message to the console with the visual “info” icon and color coding and a hyperlink to the line where it was called.
inherit: function ()
Inherit from one or more OpenLayers style classes
{Boolean} The layer is a base layer.
{Boolean} The layer is a base layer.
+ + + +
{HTMLDivElement} The element that contains the layers.
{OpenLayers.LonLat} The lonlat at which the later container was re-initialized (on-zoom)
{Array(OpenLayers.Layer} Ordered list of layers in the map
{Number}
log: function()
Log an object in the console.
+ + + +
Constructor for a new OpenLayers.Map instance.
{OpenLayers.Bounds}
{OpenLayers.Bounds} The maximum extent for the map.
{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.
{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.
{Number}
{Number}
{OpenLayers.Bounds}
{OpenLayers.Bounds}
{Number}
{Number}
{Number}
+ + + +
{Integer}
{Integer} Number of zoom levels for the map.
+ + + +
The OpenLayers object provides a namespace for all things OpenLayers
Instances of this class represent bounding boxes.
Contains functions to create OpenLayers style classes.
The OpenLayers.Console namespace is used for debugging and error logging.
Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer.
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.
Instances of OpenLayers.Layer.WMS are used to display data from OGC Web Mapping Services.
Instances of OpenLayers.Map are interactive maps embedded in a web page.
This class represents a screen coordinate, in x and y coordinates
Instances of this class represent a width/height pair
+ + + +
Create a new OpenLayers.Pixel instance
{Array(OpenLayers.Popup) List of popups associated with the map
{String} Set in the layer options to override the default projection string this layer - also set maxExtent, maxResolution, and units if appropriate.
{String} Set in the map options to override the default projection string this map - also set maxExtent, maxResolution, and units if appropriate.
+ + + +
{Boolean} Try to reproject this layer if its coordinate reference system is different than that of the base layer.
{Array}
{Number}
+ + + +
{Array}
setOptions: function(options)
Change the map options
{OpenLayers.Size} The image size in pixels
{OpenLayers.Size} Size of the main div (this.div)
Create an instance of OpenLayers.Size
+ +
\ No newline at end of file diff --git a/index/General2.html b/index/General2.html new file mode 100644 index 0000000000..1d83b0cb47 --- /dev/null +++ b/index/General2.html @@ -0,0 +1,36 @@ + + +Index - OpenLayers + + + + + + +
Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
T
 theme, OpenLayers.Map
 tile, OpenLayers. Layer. Image
 TILE_HEIGHT, OpenLayers.Map
 TILE_WIDTH, OpenLayers.Map
 tileSize, OpenLayers.Map
 time, OpenLayers. Console
 top, OpenLayers. Bounds
 toString
 trace, OpenLayers. Console
U
 units
 unloadDestroy, OpenLayers.Map
 url, OpenLayers. Layer. Image
V
 Vector, OpenLayers. Layer. Vector. OpenLayers. Layer
 VERSION_NUMBER, OpenLayers
 viewPortDiv, OpenLayers.Map
 viewRequestID, OpenLayers.Map
W
 w, OpenLayers.Size
 warn, OpenLayers. Console
 WMS, OpenLayers. Layer. WMS. OpenLayers. Layer
 wrapDateLine, OpenLayers. Layer
X
 x, OpenLayers. Pixel
Z
 Z_INDEX_BASE, OpenLayers.Map
 zoom, OpenLayers.Map
+ +
{String} Relative path to a CSS file from which to load theme styles.
{OpenLayers.Tile.Image}
{Integer} 256
{Integer} 256
{OpenLayers.Size} Set in the map options to override the default tile size for this map.
time: function()
Creates a new timer under the given name.
{Number}
toString:function()
Cast this object into a string
toString:function()
Return the string representation of a size object
trace: function()
Prints an interactive stack trace of JavaScript execution at the point where it is called.
+ + + +
{String} The layer map units.
{String} The map units.
Function that is called to destroy the map on page unload.
{String} URL of the image to use
+ + + +
Create a new vector layer
{HTMLDivElement} The element that represents the map viewport
{String} Used to store a unique identifier that changes when the map view changes.
+ + + +
{Number} width
warn: function()
Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called.
Create a new WMS layer object
{Boolean} #487 for more info.
+ + + +
{Number} The x coordinate
+ + + +
{Object} Base z-indexes for different classes of thing
{Integer} The current zoom level of the map
+ +
\ No newline at end of file diff --git a/index/Properties.html b/index/Properties.html new file mode 100644 index 0000000000..ca271a37b0 --- /dev/null +++ b/index/Properties.html @@ -0,0 +1,100 @@ + + +Property Index - OpenLayers + + + + + + +
Property Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _scriptName, OpenLayers
A
 aspectRatio, OpenLayers. Layer. Image
B
 baseLayer, OpenLayers.Map
 bottom, OpenLayers. Bounds
C
 center, OpenLayers.Map
 controls, OpenLayers.Map
D
 displayOutsideMaxExtent, OpenLayers. Layer
 div, OpenLayers.Map
E
 events, OpenLayers.Map
 extent, OpenLayers. Layer. Image
F
 fallThrough, OpenLayers.Map
G
 gutter, OpenLayers. Layer
H
 h, OpenLayers.Size
I
 id, OpenLayers.Map
 isBaseLayer
L
 layerContainerDiv, OpenLayers.Map
 layerContainerOrigin, OpenLayers.Map
 layers, OpenLayers.Map
 left, OpenLayers. Bounds
M
 maxExtent
 maxResolution
 maxScale
 minExtent
 minResolution
 minScale
N
 numZoomLevels
P
 popups, OpenLayers.Map
 projection
R
 reproject, OpenLayers. Layer.WMS
 resolutions, OpenLayers. Layer
 right, OpenLayers. Bounds
S
 scales, OpenLayers. Layer
 size
T
 theme, OpenLayers.Map
 tile, OpenLayers. Layer. Image
 tileSize, OpenLayers.Map
 top, OpenLayers. Bounds
U
 units
 url, OpenLayers. Layer. Image
V
 viewPortDiv, OpenLayers.Map
 viewRequestID, OpenLayers.Map
W
 w, OpenLayers.Size
 wrapDateLine, OpenLayers. Layer
X
 x, OpenLayers. Pixel
Z
 zoom, OpenLayers.Map
+ +
{String} Relative path of this script.
+ + + +
{Number} The ratio of height/width represented by a single pixel in the graphic
+ + + +
{Number}
+ + + +
{OpenLayers.LonLat} The current center of the map
{Array(OpenLayers.Control) List of controls associated with the map
+ + + +
{Boolean} Request map tiles that are completely outside of the max extent for this layer.
{DOMElement} The element that contains the map
+ + + +
{OpenLayers.Events} An events object that handles all events on the map
{OpenLayers.Bounds} The image bounds in map units
+ + + +
{Boolean} Should OpenLayers allow events on the map to fall through to other elements on the page, or should it swallow them? 
+ + + +
{Integer} Determines the width (in pixels) of the gutter around image tiles to ignore.
+ + + +
{Number} height
+ + + +
{String} Unique identifier for the map
{Boolean} The layer is a base layer.
{Boolean} The layer is a base layer.
+ + + +
{HTMLDivElement} The element that contains the layers.
{OpenLayers.LonLat} The lonlat at which the later container was re-initialized (on-zoom)
{Array(OpenLayers.Layer} Ordered list of layers in the map
{Number}
+ + + +
{OpenLayers.Bounds}
{OpenLayers.Bounds} The maximum extent for the map.
{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.
{Number} Default max is 360 deg / 256 px, which corresponds to zoom level 0 on gmaps.
{Number}
{Number}
{OpenLayers.Bounds}
{OpenLayers.Bounds}
{Number}
{Number}
{Number}
+ + + +
{Integer}
{Integer} Number of zoom levels for the map.
+ + + +
{Array(OpenLayers.Popup) List of popups associated with the map
{String} Set in the layer options to override the default projection string this layer - also set maxExtent, maxResolution, and units if appropriate.
{String} Set in the map options to override the default projection string this map - also set maxExtent, maxResolution, and units if appropriate.
+ + + +
{Boolean} Try to reproject this layer if its coordinate reference system is different than that of the base layer.
{Array}
{Number}
+ + + +
{Array}
{OpenLayers.Size} The image size in pixels
{OpenLayers.Size} Size of the main div (this.div)
+ + + +
{String} Relative path to a CSS file from which to load theme styles.
{OpenLayers.Tile.Image}
{OpenLayers.Size} Set in the map options to override the default tile size for this map.
{Number}
+ + + +
{String} The layer map units.
{String} The map units.
{String} URL of the image to use
+ + + +
{HTMLDivElement} The element that represents the map viewport
{String} Used to store a unique identifier that changes when the map view changes.
+ + + +
{Number} width
{Boolean} #487 for more info.
+ + + +
{Number} The x coordinate
+ + + +
{Integer} The current zoom level of the map
+ +
\ No newline at end of file diff --git a/javascript/main.js b/javascript/main.js new file mode 100644 index 0000000000..8db5d2e874 --- /dev/null +++ b/javascript/main.js @@ -0,0 +1,276 @@ +// This file is part of Natural Docs, which is Copyright (C) 2003-2005 Greg Valure +// Natural Docs is licensed under the GPL + +// +// Browser Styles +// ____________________________________________________________________________ + +var agt=navigator.userAgent.toLowerCase(); +var browserType; +var browserVer; + +if (agt.indexOf("opera") != -1) + { + browserType = "Opera"; + + if (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1) + { browserVer = "Opera5"; } + else if (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1) + { browserVer = "Opera6"; } + else if (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1) + { browserVer = "Opera7"; } + } + +else if (agt.indexOf("khtml") != -1 || agt.indexOf("konq") != -1 || agt.indexOf("safari") != -1) + { + browserType = "KHTML"; + } + +else if (agt.indexOf("msie") != -1) + { + browserType = "IE"; + + if (agt.indexOf("msie 4") != -1) + { browserVer = "IE4"; } + else if (agt.indexOf("msie 5") != -1) + { browserVer = "IE5"; } + else if (agt.indexOf("msie 6") != -1) + { browserVer = "IE6"; } + } + +else if (agt.indexOf("gecko") != -1) + { + browserType = "Gecko"; + } + +// Opera already taken care of. +else if (agt.indexOf("mozilla") != -1 && agt.indexOf("compatible") == -1 && agt.indexOf("spoofer") == -1 && + agt.indexOf("webtv") == -1 && agt.indexOf("hotjava") == -1) + { + browserType = "Netscape"; + + if (agt.indexOf("mozilla/4") != -1) + { browserVer = "Netscape4"; } + } + + +// +// Menu +// ____________________________________________________________________________ + + +function ToggleMenu(id) + { + if (!window.document.getElementById) + { return; }; + + var display = window.document.getElementById(id).style.display; + + if (display == "none") + { display = "block"; } + else + { display = "none"; } + + window.document.getElementById(id).style.display = display; + } + + +// +// Tooltips +// ____________________________________________________________________________ + + +var tooltipTimer = 0; + +function ShowTip(event, tooltipID, linkID) + { + if (tooltipTimer) + { clearTimeout(tooltipTimer); }; + + var docX = event.clientX + window.pageXOffset; + var docY = event.clientY + window.pageYOffset; + + var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")"; + + // KHTML cant handle showing on a timer right now. + + if (browserType != "KHTML") + { tooltipTimer = setTimeout(showCommand, 1000); } + else + { eval(showCommand); }; + } + +function ReallyShowTip(tooltipID, linkID, docX, docY) + { + tooltipTimer = 0; + + var tooltip; + var link; + + if (document.getElementById) + { + tooltip = document.getElementById(tooltipID); + link = document.getElementById(linkID); + } + else if (document.all) + { + tooltip = eval("document.all['" + tooltipID + "']"); + link = eval("document.all['" + linkID + "']"); + } + + if (tooltip) + { + var left = 0; + var top = 0; + + // Not everything supports offsetTop/Left/Width, and some, like Konqueror and Opera 5, think they do but do it badly. + + if (link && link.offsetWidth != null && browserType != "KHTML" && browserVer != "Opera5") + { + var item = link; + while (item != document.body) + { + left += item.offsetLeft; + item = item.offsetParent; + } + + item = link; + while (item != document.body) + { + top += item.offsetTop; + item = item.offsetParent; + } + top += link.offsetHeight; + } + + // The fallback method is to use the mouse X and Y relative to the document. We use a separate if and test if its a number + // in case some browser snuck through the above if statement but didn't support everything. + + if (!isFinite(top) || top == 0) + { + left = docX; + top = docY; + } + + // Some spacing to get it out from under the cursor. + + top += 10; + + // Make sure the tooltip doesnt get smushed by being too close to the edge, or in some browsers, go off the edge of the + // page. We do it here because Konqueror does get offsetWidth right even if it doesnt get the positioning right. + + if (tooltip.offsetWidth != null) + { + var width = tooltip.offsetWidth; + var docWidth = document.body.clientWidth; + + if (left + width > docWidth) + { left = docWidth - width - 1; } + } + + // Opera 5 chokes on the px extension, so it can use the Microsoft one instead. + + if (tooltip.style.left != null && browserVer != "Opera5") + { + tooltip.style.left = left + "px"; + tooltip.style.top = top + "px"; + } + else if (tooltip.style.pixelLeft != null) + { + tooltip.style.pixelLeft = left; + tooltip.style.pixelTop = top; + } + + tooltip.style.visibility = "visible"; + } + } + +function HideTip(tooltipID) + { + if (tooltipTimer) + { + clearTimeout(tooltipTimer); + tooltipTimer = 0; + } + + var tooltip; + + if (document.getElementById) + { tooltip = document.getElementById(tooltipID); } + else if (document.all) + { tooltip = eval("document.all['" + tooltipID + "']"); } + + if (tooltip) + { tooltip.style.visibility = "hidden"; } + } + + +// +// Event Handlers +// ____________________________________________________________________________ + + +function NDOnLoad() + { + if (browserType == "IE") + { + var scrollboxes = document.getElementsByTagName('blockquote'); + + if (scrollboxes.item(0)) + { + var width = scrollboxes.item(0).parentNode.offsetWidth - scrollboxes.item(0).offsetLeft; + + var i = 0; + var item; + + while (item = scrollboxes.item(i)) + { + item.style.width = width; + i++; + }; + + window.onresize=NDOnResize; + }; + }; + } + + +var resizeTimer = 0; + +function NDOnResize() + { + if (browserType == "IE") + { + if (resizeTimer != 0) + { clearTimeout(resizeTimer); }; + + resizeTimer = setTimeout(NDDoResize, 500); + }; + }; + +function NDDoResize() + { + var scrollboxes = document.getElementsByTagName('blockquote'); + + var i; + var item; + + i = 0; + while (item = scrollboxes.item(i)) + { + item.style.width = "100px"; + i++; + }; + + var width = scrollboxes.item(0).parentNode.offsetWidth - scrollboxes.item(0).offsetLeft; + + i = 0; + while (item = scrollboxes.item(i)) + { + item.style.width = width; + i++; + }; + + clearTimeout(resizeTimer); + resizeTimer = 0; + } diff --git a/styles/main.css b/styles/main.css new file mode 100644 index 0000000000..9bda71dc21 --- /dev/null +++ b/styles/main.css @@ -0,0 +1,541 @@ +/* + IMPORTANT: If you're editing this file in the output directory of one of + your projects, your changes will be overwritten the next time you run + Natural Docs. Instead, copy this file to your project directory, make your + changes, and you can use it with -s. Even better would be to make a CSS + file in your project directory with only your changes, which you can then + use with -s [original style] [your changes]. + + On the other hand, if you're editing this file in the Natural Docs styles + directory, the changes will automatically be applied to all your projects + that use this style the next time Natural Docs is run on them. + + This file is part of Natural Docs, which is Copyright (C) 2003-2005 Greg Valure + Natural Docs is licensed under the GPL +*/ + +body { + font-family: Verdana, Arial, sans-serif; + color: #000000; + margin: 0px; padding: 0px } + +body.UnframedPage { + background-color: #E8E8E8 } + + +a:link, +a:visited { color: #900000; text-decoration: none } +a:hover { color: #900000; text-decoration: underline } +a:active { color: #FF0000; text-decoration: underline } + +td { + vertical-align: top } + +/* + Comment out this line to use web-style paragraphs (blank line between + paragraphs, no indent) instead of print-style paragraphs (no blank line, + indented.) +*/ +p { + text-indent: 5ex; margin: 0 } + + +/* Can't use something like display: none or it won't break. */ +.HB { + font-size: 1px; + visibility: hidden; + } + +/* Blockquotes are used as containers for things that may need to scroll. */ +blockquote { + padding: 0; + margin: 0; + overflow: auto; + } +/* This will be fixed in JavaScript. We just need a default if it's turned off. */ +.IE blockquote { + width: 400px; } + +.Gecko blockquote { + padding-bottom: .5em; + } + +/* Turn off scrolling when printing. */ +@media print { + blockquote { + overflow: visible; + } + .IE blockquote { + width: auto; + } + } + + + + +body.FramedMenuPage, +.MenuSection { + font-size: 8pt; + background-color: #E8E8E8; + padding: 10px 0 0 0 } + +.MenuSection { + width: 27ex } + + + .MTitle { + font-size: 16pt; font-weight: bold; font-variant: small-caps; + text-align: center; + padding: 5px 10px 15px 10px; + border-bottom: 1px dotted #000000; + margin-bottom: 15px } + + .MSubTitle { + font-size: 9pt; font-weight: normal; font-variant: normal; + margin-top: 1ex; margin-bottom: 5px } + + + .MEntry a:link, + .MEntry a:hover, + .MEntry a:visited { color: #606060; margin-right: 0 } + .MEntry a:active { color: #A00000; margin-right: 0 } + + + .MGroup { + font-variant: small-caps; font-weight: bold; + margin: 1em 0 1em 10px } + + /* Konqueror just can't do margins. */ + .KHTML .MGroup { + margin-bottom: 0; padding-bottom: 1em } + + .MGroupContent { + font-variant: normal; font-weight: normal } + + .MGroup a:link, + .MGroup a:hover, + .MGroup a:visited { color: #545454; margin-right: 10px } + .MGroup a:active { color: #A00000; margin-right: 10px } + + + .MFile, + .MText, + .MLink, + .MIndex { + padding: 1px 17px 2px 10px; + margin: .25em 0 .25em 0 } + + .MText { + font-size: 8pt; font-style: italic } + + .MLink { + font-style: italic } + + #MSelected { + color: #000000; background-color: #FFFFFF; + /* Replace padding with border. */ + padding: 0 10px 0 10px; + border-width: 1px 2px 2px 0; border-style: solid; border-color: #000000; + margin-right: 5px } + + /* Close off the left side when its in a group. */ + .MGroup #MSelected { + padding-left: 9px; border-left-width: 1px } + + /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */ + .Gecko #MSelected { + -moz-border-radius-topright: 10px; + -moz-border-radius-bottomright: 10px } + .Gecko .MGroup #MSelected { + -moz-border-radius-topleft: 10px; + -moz-border-radius-bottomleft: 10px } + + + + +body.FramedContentPage, +.ContentSection { + background-color: #FFFFFF; + padding-bottom: 15px } + +.ContentSection { + border-width: 0 0 1px 1px; border-style: solid; border-color: #000000 } + + + .CTopic { + font-size: 8pt; + /* This should be a margin but Konq 3.1.1 sucks. */ + padding-bottom: 3em } + + + .CTitle { + font-size: 11pt; font-weight: bold; + border-width: 0 0 1px 0; border-style: solid; border-color: #A0A0A0; + margin: 0 15px .5em 15px } + + .CGroup .CTitle { + font-size: 16pt; font-variant: small-caps; + padding-left: 15px; padding-right: 15px; + border-width: 0 0 2px 0; border-color: #000000; + margin-left: 0; margin-right: 0 } + + .CClass .CTitle, + .CInterface .CTitle, + .CDatabase .CTitle, + .CDatabaseTable .CTitle, + .CSection .CTitle { + font-size: 18pt; + color: #FFFFFF; background-color: #A0A0A0; + padding: 10px 15px 10px 15px; + border-width: 2px 0; border-color: #000000; + margin-left: 0; margin-right: 0 } + + #MainTopic .CTitle { + font-size: 20pt; + color: #FFFFFF; background-color: #7070C0; + padding: 10px 15px 10px 15px; + border-width: 0 0 3px 0; border-color: #000000; + margin-left: 0; margin-right: 0 } + + .CBody { + margin-left: 15px; margin-right: 15px } + + + .CToolTip { + position: absolute; visibility: hidden; + left: 0; top: 0; max-width: 50%; + background-color: #FFFFE0; + padding: 5px; + border-width: 1px 2px 2px 1px; border-style: solid; border-color: #000000; + font-size: 8pt } + + /* Opera 6 gives it a huge height otherwise. */ + .Opera6 .CTooltip, .Opera5 .CTooltip { + max-width: 100% } + + /* Scrollbars would be useless. */ + .CToolTip blockquote { + overflow: hidden; + } + + .CHeading { + font-weight: bold; font-size: 9pt; + margin-top: 1.5em; margin-bottom: .5em } + + .CCode { + font: 8pt "Courier New", Courier, monospace; + } + + .CBulletList { + /* I don't know why CBody's margin doesn't apply, but it's consistent across browsers so whatever. + Reapply it here as padding. */ + padding-left: 15px; padding-right: 15px; + margin: .5em 5ex .5em 5ex; + } + + .CDescriptionList { + margin: .5em 5ex 0 5ex } + + /* IE 4 and Konqueror always makes it too long. */ + .IE4 .CDescriptionList, + .KHTML .CDescriptionList { + width: 85% } + + .CDLEntry { + font: 8pt "Courier New", Courier, monospace; color: #808080; + padding-bottom: .25em; + white-space: nowrap } + + .CDLDescription { + font-size: 8pt; /* For browsers that don't inherit correctly, like Opera 5. */ + padding-bottom: .5em; padding-left: 5ex } + + + + + +.Prototype { + font: 8pt "Courier New", Courier, monospace; + padding: 5px 3ex; + border-width: 1px; border-style: solid; + margin: 0 5ex 1.5em 5ex; + } + + .Prototype td { + font-size: 8pt; + } + + .PDefaultValue, + .PDefaultValuePrefix, + .PTypePrefix { + color: #8F8F8F; + } + .PTypePrefix { + text-align: right; + } + .PAfterParameters { + vertical-align: bottom; + } + + .IE .Prototype table { + padding: 0; + } + + .CFunction .Prototype { + background-color: #F4F4F4; border-color: #D0D0D0 } + .CProperty .Prototype { + background-color: #F4F4FF; border-color: #C0C0E8 } + .CVariable .Prototype { + background-color: #FFFFF0; border-color: #E0E0A0 } + + .CDatabaseIndex .Prototype, + .CConstant .Prototype { + background-color: #D0D0D0; border-color: #000000 } + .CType .Prototype { + background-color: #FFF8F8; border-color: #E8C8C8 } + .CDatabaseTrigger .Prototype, + .CEvent .Prototype, + .CDelegate .Prototype { + background-color: #F0FCF0; border-color: #B8E4B8 } + + .CToolTip .Prototype { + margin: 0 0 .5em 0; + white-space: nowrap; + } + + + + + +.Summary { + margin: 1.5em 5ex 0 5ex } + + .STitle { + font-size: 11pt; font-weight: bold; + margin-bottom: .5em } + + + .SBorder { + background-color: #FFFFF0; + padding: 15px; + border: 1px solid #C0C060 } + + /* Let's observe the evolution of IE's brokeness, shall we? + IE 4 always makes them too long, there's no way around it. */ + .IE4 .SBorder { + width: 85% } + /* IE 5 will make them too long unless you set the width to 100%. Isn't this implied for a div? */ + .IE5 .SBorder { + width: 100% } + /* IE 6 behaves like 5 when it's in a frame, but without frames it will be correct without a width or slightly too long + (but not enough to scroll) with a width. This arbitrary weirdness simply astounds me. */ + body.FramedContentPage .IE6 .SBorder { + width: 100% } + + /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */ + .Gecko .SBorder { + -moz-border-radius: 20px } + + + .STable { + font-size: 8pt; width: 100% } + + .SEntrySize { + width: 30% } + .SDescriptionSize { + width: 70% } + + + .SMarked { + background-color: #F8F8D8 } + + + .SEntry .SIndent1 { + margin-left: 1.5ex } + .SEntry .SIndent2 { + margin-left: 3ex } + .SEntry .SIndent3 { + margin-left: 4.5ex } + .SEntry .SIndent4 { + margin-left: 6ex } + .SEntry .SIndent5 { + margin-left: 7.5ex } + + .SDescription { + padding-left: 3ex } + + .SDescription a { color: #800000} + .SDescription a:active { color: #A00000 } + + + .SGroup { + margin-top: .5em; margin-bottom: .25em } + + .SGroup .SEntry { + font-weight: bold; font-variant: small-caps } + + .SGroup .SEntry a { color: #800000 } + .SGroup .SEntry a:active { color: #F00000 } + + + .SMain .SEntry, + .SClass .SEntry, + .SDatabase .SEntry, + .SDatabaseTable .SEntry, + .SSection .SEntry { + font-weight: bold; font-size: 9pt; + margin-bottom: .25em } + + .SClass, + .SDatabase, + .SDatabaseTable, + .SSection { + margin-top: 1em } + + .SMain .SEntry a, + .SClass .SEntry a, + .SDatabase .SEntry a, + .SDatabaseTable .SEntry a, + .SSection .SEntry a { color: #000000 } + + .SMain .SEntry a:active, + .SClass .SEntry a:active, + .SDatabase .SEntry a:active, + .SDatabaseTable .SEntry a:active, + .SSection .SEntry a:active { color: #A00000 } + + + + + +.ClassHierarchy { + margin: 0 15px 1em 15px } + + .CHEntry { + border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0; + margin-bottom: 3px; + padding: 2px 2ex; + font-size: 8pt; + background-color: #F4F4F4; color: #606060; + } + + .Gecko .CHEntry { + -moz-border-radius: 4px; + } + + .CHCurrent .CHEntry { + font-weight: bold; + border-color: #000000; + color: #000000; + } + + .CHChildNote .CHEntry { + font-style: italic; + font-size: 8pt; + } + + .CHIndent { + margin-left: 3ex; + } + + .CHEntry a:link, + .CHEntry a:visited, + .CHEntry a:hover { + color: #606060; + } + .CHEntry a:active { + color: #800000; + } + + + + + +body.FramedIndexPage, +.IndexSection { + background-color: #FFFFFF; + font-size: 8pt; + padding: 15px } + +.IndexSection { + border-width: 0 0 1px 1px; border-style: solid; border-color: #000000 } + + .IPageTitle { + font-size: 20pt; font-weight: bold; + color: #FFFFFF; background-color: #7070C0; + padding: 10px 15px 10px 15px; + border-width: 0 0 3px 0; border-color: #000000; border-style: solid; + margin: -15px -15px 0 -15px } + + .INavigationBar { + text-align: center; + background-color: #FFFFF0; + padding: 5px; + border-bottom: solid 1px black; + margin: 0 -15px 15px -15px } + + .INavigationBar a { + font-weight: bold } + + .IHeading { + font-size: 14pt; font-weight: bold; + padding: 2.5em 0 .5em 0; + text-align: center; + width: 3.5ex; + } + #IFirstHeading { + padding-top: 0; + } + + .IEntry { + padding-left: 1ex; } + + .ISubIndex { + padding-left: 3ex; padding-bottom: .5em } + + /* While it may cause some entries to look like links when they aren't, I found it's much easier to read the + index if everything's the same color. */ + .ISymbol { + font-weight: bold; color: #900000 } + + .ISymbolPrefix { + text-align: right; + color: #C47C7C; + background-color: #F8F8F8; + border-right: 3px solid #E0E0E0; + border-left: 1px solid #E0E0E0; + padding: 0 1px 0 2px; + } + #IFirstSymbolPrefix { + border-top: 1px solid #E0E0E0; + } + #ILastSymbolPrefix { + border-bottom: 1px solid #E0E0E0; + } + #IOnlySymbolPrefix { + border-top: 1px solid #E0E0E0; + border-bottom: 1px solid #E0E0E0; + } + + a.IParent, + a.IFile { + display: block; + } + + + +.Footer { + font-size: 8pt; color: #909090 } + +body.UnframedPage .Footer { + text-align: right; + margin: 2px } + +body.FramedMenuPage .Footer { + text-align: center; + margin: 5em 10px 0 10px} + + .Footer a:link, + .Footer a:hover, + .Footer a:visited { color: #909090 } + .Footer a:active { color: #A00000 }