Adds a tile to the cache.
cache: function( obj )
Cache features before they are added to the layer.
cacheFeatures: function( event )
Cache features before they are added to the layer.
cacheFeatures: function( event )
Calculate the angle based on settings.
calculateAngle: function( point, evt )
Recalculate the bounds for the geometry.
calculateBounds: function()
Recalculate the bounds by iterating through the components and calling calling extendBounds() on each item.
calculateBounds: function()
Create a new Bounds based on the lon/lat
calculateBounds: function ()
Recalculate the bounds for the geometry.
calculateBounds: function()
calculateBounds: function( center, resolution )
calculateBounds: function( mapBounds )
{Number} Calculates the feature offset in x direction.
calculateFeatureDx: function( bounds, worldBounds )
Generate parameters for the grid layout.
calculateGridLayout: function( bounds, origin, resolution )
Generate parameters for the grid layout.
calculateGridLayout: function( bounds, origin, resolution )
{Boolean} The layer is displayable at the current map’s current resolution.
calculateInRange: function()
calculateNewPx:function( px )
Besides the standard offset as determined by the Anchored class, our Framed popups have a special ‘offset’ property for each of their positions, which is used to offset the popup relative to its anchor.
calculateNewPx:function( px )
calculateRelativePosition:function( px )
Calculate resolutions based on the provided properties.
calculateResolutions: function( props )
Trigger the control’s named callback with the given arguments
callback: function ( name, args )
Trigger the control’s named callback with the given arguments
callback: function ( name, args )
This method is used from within the commit method each time an an HTTP response is received from the server, it is responsible for calling the user-supplied callbacks.
callUserCallback: function( resp, options )
Camel-case a hyphenated string.
camelize: function( str )
Finish the geometry and call the “cancel” callback.
cancel: function()
Called when the drag handler detects a mouse-out (from the map viewport).
cancel: function ()
Called when the drag handler detects a mouse-out (from the map viewport).
cancel: function()
Cancel the current sketch.
cancel: function()
Stop the control from measuring.
cancel: function()
Finish the geometry and call the “cancel” callback.
cancel: function()
Finish the geometry and call the “cancel” callback.
cancel: function()
Cancels the delay measurement that measurePartial began.
cancelDelay: function()
Callback from the handlers.hover set up when hover selection is on
cancelHover: function()
This function takes care to recenter the layerContainerDiv.
centerLayerContainer: function ( lonlat )
Used to switch map styles.
changeStyle: function( style )
Check the keyMask on the handler.
checkModifiers: function ( evt )
Checks if the layer state has changed since the last redraw() call.
checkRedraw: function()
Removes the iframe from DOM (avoids back-button problems).
clear: function()
Clear history.
clear: function()
clear: function()
Clear any rendered features on the temporary layer.
clear: function()
Clear all vectors from the renderer.
clear: function()
Clear all vectors from the renderer.
clear: function()
Remove all the elements from the root
clear: function()
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
clear: function( draw )
Remove the tile from the DOM, clear it of any image related data so that it can be reused in a new location.
clear: function()
Nullify this components bounds and that of its parent as well.
clearBounds: function()
Clears all tiles cached with ALKMaps.Control.CacheWrite from the cache.
ALKMaps.Control.CacheWrite.clearCache = function()
Clear out the cached features.
clearCache: function()
Clear out the cached features.
clearCache: function()
Destroy all features in this layer.
clearFeatures: function()
clearFeatures: function()
Go through and remove all tiles from the grid, calling destroy() on each of them to kill circular references
clearGrid:function()
User specifies either “base” or “data”.
clearLayersArray: function( layersType )
This method removes all markers from a layer.
clearMarkers: function()
Clear cached data about the mouse position.
clearMouseCache: function()
Clears the animation queue
clearTileQueue: function()
Clear the timer and set timerId to null.
clearTimer: function()
Clear the timer and set timerId to null.
clearTimer: function()
Handle click events from the browser.
click: function( evt )
The drag handler captures the click event.
click: function ( evt )
Handle click.
click: function( evt )
Handle clicks.
click: function( evt )
Called when the feature handler detects a click-in on a feature.
clickFeature: function ( feature )
Called when the feature handler detects a click-in on a feature.
clickFeature: function( feature )
Called on click in a feature Only responds if this.hover is false.
clickFeature: function( feature )
Called when the feature handler detects a click-out on a feature.
clickoutFeature: function ( feature )
Called when the feature handler detects a click-out on a feature.
clickoutFeature: function( feature )
Called on click outside a previously clicked (selected) feature.
clickoutFeature: function( feature )
Given two points (one inside the valid range, and one outside), clips the line betweeen the two points so that the new points are both inside the valid range.
clipLine: function( badComponent, goodComponent )
Create a cloned instance of this bounds.
clone:function()
Create a clone of this vector feature.
clone: function ()
Clones this filter.
clone: function()
Clones this filter.
clone: function()
Clones this filter.
clone: function()
Clones this filter.
clone: function()
Clones this filter.
clone: function()
Create a clone of this geometry.
clone: function()
Clone this geometry.
clone: function()
{ALKMaps.Geometry.Point} An exact clone of this ALKMaps.Geometry.Point
clone: function( obj )
{ALKMaps.Icon} A fresh copy of the icon.
clone: function()
clone: function ( obj )
Create a clone of this layer
clone: function( obj )
Create a clone of this layer
clone: function( obj )
Create a clone of this layer
clone: function ( obj )
clone: function ( obj )
Create a clone of this layer
clone: function( obj )
Create a clone of this layer
clone: function( obj )
Create a clone of this layer.
clone: function ( obj )
Create a clone of this layer
clone: function( obj )
Create a clone of this layer
clone: function ( obj )
clone: function ( obj )
{ALKMaps.LonLat} New ALKMaps.LonLat object with the same lon and lat values
clone:function()
Return a clone of this pixel object
clone:function()
Clones this rule.
clone: function()
Create a clone of this size object
clone:function()
Clones this style.
clone: function()
Clones this style.
clone: function()
Create a copy of this symbolizer.
clone: function()
Clones the base map layer with some modifications.
cloneOverlayLayer: function()
Cluster features based on some threshold distance.
cluster: function( event )
Determine whether calculated clusters are already on the layer.
clustersExist: function()
Collect the drag handle for the selected geometry.
collectDragHandle: function()
Collect the radius handle for the selected geometry.
collectRadiusHandle: function()
Collects the root nodes of all layers this control is configured with and moveswien the nodes to this control’s layer
collectRoots: function()
Collect the vertices from the modifiable feature’s geometry and push them on to the control’s vertices array.
collectVertices: function()
Go over the features and for each take action based on the feature state.
commit: function()
Iterate over each feature and take action based on the feature state.
commit: function( features, options )
Computes the distance between two LonLats.
ALKMaps.Spherical.computeDistanceBetween = function( from, to, radius )
Computes the heading from one LonLat to another LonLat.
ALKMaps.Spherical.computeHeading = function( from, to )
As soon as all the layers are loaded, cycle through them and hide or show them.
configureLayers: function()
considerSnapping: function( point, loc )
Decide whether or not to split target features with the supplied feature.
considerSplit: function( feature )
contains:function( x, y, inclusive )
Test whether a string contains another string.
contains: function( str, sub )
Determine whether the target bounds is contained within this bounds.
containsBounds:function( bounds, partial, inclusive )
containsLonLat: function( ll, options )
containsPixel:function( px, inclusive )
Test if a point is inside a linear ring.
containsPoint: function( point )
Test if a point is inside a polygon.
containsPoint: function( point )
Determine the content type for a given node.
contentType: function( node )
Create a map given a context object.
contextToMap: function( context, options )
Writes the number of times that the line of code where count was called was executed.
count: function()
Construct a request for writing newly created features.
create: function()
Construct a request for writing newly created features.
create: function( features, options )
ALKMaps.Util.createAlphaImageDiv = function ( id, px, sz, imgURL, position, border, sizing, opacity, delayDisplay )
Create a back buffer.
createBackBuffer: function()
Create a backbuffer for this tile.
createBackBuffer: function()
createBlocks: function()
Creates the box with all handles and transformation handles.
createBox: function()
Returns a function that applies the given public method with resp and options arguments.
createCallback: function( method, response, options )
Given a feature, create a cluster.
createCluster: function( feature )
Creates a DragFeature control for this control.
createControl: function()
This function just creates a div for the control.
createControlMarkup: function( control )
Create the CRS object for an object.
createCRSObject: function( object )
{DOMElement} The element to which we’ll add the symbol definitions
createDefs: function()
{DOMElement} The element to which we’ll add the symbol definitions
createDefs: function()
Creates a new div and optionally set some standard attributes.
ALKMaps.Util.createDiv = function ( id, px, sz, imgURL, position, border, overflow, opacity )
Create a new element with namespace.
createElementNS: function( uri, name )
Shorthand for creating namespaced elements with optional attributes and child text nodes.
createElementNSPlus: function( name, options )
Add temporary geometries
createFeature: function( pixel )
Add temporary features
createFeature: function( pixel )
Return a feature from a GeoRSS Item.
createFeatureFromItem: function( item )
Accept an ALKMaps.Feature.Vector, and build a geometry for it.
createFeatureXML: function( feature )
Creates a spatial BBOX filter.
createFilter: function()
Creates and returns a KML folder node
createFolderXML: function()
Create the new polygon geometry.
createGeometry: function()
Return a geometry from a GeoRSS Item.
createGeometryFromItem: function( item )
Create the IFrame which shows the image.
createIFrame: function()
Creates an img element with specific attribute values.
ALKMaps.Util.createImage = function ( id, px, sz, imgURL, position, border, opacity, delayDisplay )
converts a style value holding a combination of PropertyName and Literal into a Literal, taking the property values from the passed features.
ALKMaps.Style.createLiteral = function( value, context, feature, property )
creates literals for all style properties that have an entry in this.propertyStyles.
createLiterals: function( style, feature )
Construct the map that this control contains
createMap: function()
Based on the data associated with the Feature, create and return a marker object.
createMarker: function()
createMarker: function()
createNode: function( type, id )
createNode: function( type, id )
createNode: function( type, id )
Create a new node
createNode: function( type, id )
Creates the parameters that need to be encoded into the permalink url.
createParams: function( center, zoom, layers )
Creates and returns a KML placemark node representing the given feature.
createPlacemarkXML: function( feature )
Creates a popup object created from the ‘lonlat’, ‘popupSize’, and ‘popupContentHTML’ properties set in this.data.
createPopup: function( closeBox )
createPopup: function()
Create a regular polygon around a radius.
ALKMaps.Geometry.Polygon.createRegularPolygon = function( origin, radius, sides, rotation )
{DOMElement} The specific render engine’s root element
createRenderRoot: function()
{DOMElement} The specific render engine’s root element
createRenderRoot: function()
Create the renderer root
createRenderRoot: function()
Issues a request for features by creating injecting a script in the document head.
createRequest: function( url, params, callback )
Create the html form element with width, height, bbox and all parameters specified in the layer params.
createRequestForm: function()
createRoot: function( suffix )
createRoot: function( suffix )
Create the main root element
createRoot: function( suffix )
creates a style by applying all feature-dependent rules to the base style.
createSymbolizer: function( feature )
Creates the symbolizer for a feature for a render intent.
createSymbolizer: function( feature, intent )
Create a text node.
createTextNode: function( text )
ALKMaps.Util.createUrlObject = function ( url, options )