code
stringlengths
1
2.08M
language
stringclasses
1 value
/* ### jQuery XML to JSON Plugin v1.1 - 2008-07-01 ### * http://www.fyneworks.com/ - diego@fyneworks.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html ### Website: http://www.fyneworks.com/jquery/xml-to-json/ *//* ...
JavaScript
/* * jQuery Mobile Framework 1.0.1 * http://jquerymobile.com * * Copyright 2011-2012 (c) jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * */ /*! * jQuery UI Widget @VERSION * * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT ...
JavaScript
/* OpenLayers.js -- OpenLayers Map Viewer Library Copyright (c) 2006-2012 by OpenLayers Contributors Published under the 2-clause BSD license. See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors. Includes compre...
JavaScript
// Use proxy to get same origin URLs for tiles that don't support CORS. OpenLayers.ProxyHost = "proxy.cgi?url="; var map, cacheWrite; function init() { map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", layers: [ new OpenLayers.Layer.WMS("OSGeo", "http://vmap0.ti...
JavaScript
var map; function init() { map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913" }); var osm = new OpenLayers.Layer.OSM(); // If tile matrix identifiers differ from zoom levels (0, 1, 2, ...) // then they must be explicitly provided. var matrixIds = new...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.WMS( "Global Imagery", "http://maps.opengeo.org/geowebcache/service/wms", {layers: "bluemarble"}, {tileOrigin: new OpenLayers.LonLat(-180, -90)} ), new OpenLayers.Lay...
JavaScript
var map; function init() { map = new OpenLayers.Map({ div: "map", projection: new OpenLayers.Projection("EPSG:900913") }); var osm = new OpenLayers.Layer.OSM(); var gmap = new OpenLayers.Layer.Google("Google Streets"); map.addLayers([osm, gmap]); map.addCo...
JavaScript
var map; function init() { map = new OpenLayers.Map({ div: "map", allOverlays: true }); var osm = new OpenLayers.Layer.OSM(); var gmap = new OpenLayers.Layer.Google("Google Streets", {visibility: false}); // note that first layer must be visible map.addLayers([osm, gmap]); ...
JavaScript
var streets = new OpenLayers.Layer.XYZ( "MapBox Streets", [ "http://a.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png", "http://b.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png", "http://c.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png", "...
JavaScript
// allow testing of specific renderers via "?renderer=Canvas", etc var renderer = OpenLayers.Util.getParameters(window.location.href).renderer; renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers; var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.OSM...
JavaScript
OpenLayers.ProxyHost= "proxy.cgi?url="; var map = new OpenLayers.Map('map'); var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"} ); var layer = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new ...
JavaScript
var map; function init() { map = new OpenLayers.Map('map', {allOverlays: true}); map.addControl(new OpenLayers.Control.LayerSwitcher()); // the SATELLITE layer has all 22 zoom level, so we add it first to // become the internal base layer that determines the zoom levels of the // map. var ...
JavaScript
var points = new OpenLayers.Layer.PointGrid({ isBaseLayer: true, dx: 15, dy: 15 }); var map = new OpenLayers.Map({ div: "map", layers: [points], center: new OpenLayers.LonLat(0, 0), zoom: 2 }); var rotation = document.getElementById("rotation"); rotation.value = String(points.rotation); rotation.o...
JavaScript
var map, wfs; OpenLayers.ProxyHost = "proxy.cgi?url="; var DeleteFeature = OpenLayers.Class(OpenLayers.Control, { initialize: function(layer, options) { OpenLayers.Control.prototype.initialize.apply(this, [options]); this.layer = layer; this.handler = new OpenLayers.Handler.Feature( ...
JavaScript
// initialize map when page ready var map; // Get rid of address bar on iphone/ipod var fixSize = function() { window.scrollTo(0,0); document.body.style.height = '100%'; if (!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))) { if (document.body.parentNode) { document.body.paren...
JavaScript
// user custom graphicname OpenLayers.Renderer.symbol.lightning = [0, 0, 4, 2, 6, 0, 10, 5, 6, 3, 4, 5, 0, 0]; OpenLayers.Renderer.symbol.rectangle = [0, 0, 4, 0, 4, 10, 0, 10, 0, 0]; OpenLayers.Renderer.symbol.church = [4, 0, 6, 0, 6, 4, 10, 4, 10, 6, 6, 6, 6, 14, 4, 14, 4, 6, 0, 6, 0, 4, 4, 4, 4, 0]; var map; functi...
JavaScript
// Create 50 random features, and give them a "type" attribute that // will be used for the label text. var features = new Array(50); for (var i=0; i<features.length; i++) { features[i] = new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point( (360 * Math.random()) - 180, (180 * Math.rando...
JavaScript
var osm = new OpenLayers.Layer.XYZ( "MapQuest OSM", [ "http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png", "http://otile2.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png", "http://otile3.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png", "http://otile4.mqcdn.com/tiles/1.0.0/os...
JavaScript
var map = new OpenLayers.Map({ div: "map", resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125], controls: [ new OpenLayers.Control.Navigation( {dragPanOptions: {enableKinetic: true}} ) ] }); var layer = new OpenLayers.Layer.TileCache("TileCache Layer", ...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.OSM(), new OpenLayers.Layer.Vector("Vectors", { projection: new OpenLayers.Projection("EPSG:4326"), strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.Scrip...
JavaScript
var map; function init() { map = new OpenLayers.Map("map"); var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"} ); /** * Create 50 vector features. Your features would typically be fetched * from the ...
JavaScript
var map; (function() { // Set document language for css content document.documentElement.lang = (navigator.userLanguage || navigator.language).split("-")[0]; // A panel for switching between Aerial and Map, and for turning labels // on and off. var layerPanel = new OpenLayers.Control.Panel({ ...
JavaScript
var map; // use proxy if requesting features cross-domain OpenLayers.ProxyHost= "proxy.cgi?url="; function init() { map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.WMS( "Natural Earth", "http://demo.opengeo.org/geoserver/wms", ...
JavaScript
// Start with the map page window.location.replace(window.location.href.split("#")[0] + "#mappage"); var selectedFeature = null; $(document).ready(function() { // fix height of content function fixContentHeight() { var footer = $("div[data-role='footer']:visible"), content = $("div[data-r...
JavaScript
var map = new OpenLayers.Map({ div: "mapDiv", layers: [ new OpenLayers.Layer.WMS( "Single Tile", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"}, {singleTile: true, ratio: 1} ), new OpenLayers.Layer.WMS( "Multiple...
JavaScript
var map, navigationControl, queryControl; function init(){ map = new OpenLayers.Map('map', {controls: []}); var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); map.addLayers([layer]); navigationControl = ne...
JavaScript
var lon = 5; var lat = 40; var zoom = 5; var map, layer; function init() { map = new OpenLayers.Map( 'map', { controls: [] } ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); map.addLayer(layer); vlayer = new OpenLayers.L...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.WMS( "World Map", "http://maps.opengeo.org/geowebcache/service/wms", {layers: "bluemarble"} ), new OpenLayers.Layer.Vector("States", { strategies: [new OpenLayers.Str...
JavaScript
// API key for http://openlayers.org. Please get your own at // http://bingmapsportal.com/ and use that instead. var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf"; var map = new OpenLayers.Map( 'map'); var road = new OpenLayers.Layer.Bing({ key: apiKey, type: "Road", // custo...
JavaScript
var map; OpenLayers.ProxyHost = "proxy.cgi?url="; function init() { // allow testing of specific renderers via "?renderer=Canvas", etc var renderer = OpenLayers.Util.getParameters(window.location.href).renderer; renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers; map = ne...
JavaScript
OpenLayers.ProxyHost = "proxy.cgi?url="; var map, control, popups = {}; function init() { map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913" }); var osm = new OpenLayers.Layer.OSM(); // If tile matrix identifiers differ from zoom levels (0, 1, 2, ...) //...
JavaScript
var map, vector; function init(){ map = new OpenLayers.Map('map', { projection: 'EPSG:31467', maxResolution: 3457.03125, units: 'm', numZoomLevels: 1, controls: [ new OpenLayers.Control.Attribution({ div: $('attribution') }), ...
JavaScript
// global variables var map, map2; // wrap the instanciation code in an anonymous function that gets executed // immedeately (function(){ // style the vectorlayer var styleMap = new OpenLayers.StyleMap({ 'default': new OpenLayers.Style({ strokeColor: "#333333", strokeWidth: 1.2,...
JavaScript
var options = { singleTile: true, ratio: 1, isBaseLayer: true, wrapDateLine: true, getURL: function() { var center = this.map.getCenter().transform("EPSG:3857", "EPSG:4326"), size = this.map.getSize(); return [ this.url, "&center=", center.lat, ",", center.lon...
JavaScript
// a long text that we set as dummy param (makeTheUrlLong) to make the url long var longText = new Array(205).join("1234567890"); var map = new OpenLayers.Map( 'map' ); var base = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic', makeTheUrlLong: longText}, ...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.WMS( "Global Imagery", "http://maps.opengeo.org/geowebcache/service/wms", {layers: "bluemarble"}, {tileOrigin: new OpenLayers.LonLat(-180, -90)} ), new OpenLayers.Lay...
JavaScript
var map; function init() { map = new OpenLayers.Map({ div: "map", theme: null, projection: new OpenLayers.Projection("EPSG:900913"), numZoomLevels: 18, controls: [ new OpenLayers.Control.TouchNavigation({ dragPanOptions: { enab...
JavaScript
var isEventSupported = (function(undef) { var TAGNAMES = { 'select':'input', 'change':'input', 'submit':'form', 'reset':'form', 'error':'img', 'load':'img', 'abort':'img' }; function isEventSupported(eventName, element) { element...
JavaScript
var map, cacheRead; function init() { map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", layers: [ new OpenLayers.Layer.WMS("OSGeo", "http://vmap0.tiles.osgeo.org/wms/vmap0", { layers: "basic" }, { eventListeners: { ...
JavaScript
var map; function init() { map = new OpenLayers.Map("map",{projection:"EPSG:3857"}); var osm = new OpenLayers.Layer.OSM(); var toMercator = OpenLayers.Projection.transforms['EPSG:4326']['EPSG:3857']; var center = toMercator({x:-0.05,y:51.5}); /** * Create 5 random vector features. Your ...
JavaScript
var map, sld, waterBodies; var format = new OpenLayers.Format.SLD(); function init() { map = new OpenLayers.Map('map', {allOverlays: true}); var layers = createLayers(); map.addLayers(layers); waterBodies = layers[2]; map.addControl(new OpenLayers.Control.SelectFeature( waterBodies, {hover...
JavaScript
OpenLayers.ProxyHost = "/proxy/?url="; var map, format; function init() { format = new OpenLayers.Format.WMTSCapabilities({ /** * This particular service is not in compliance with the WMTS spec and * is providing coordinates in y, x order regardless of the CRS. To * work a...
JavaScript
// initialize map when page ready var map; // Get rid of address bar on iphone/ipod var fixSize = function() { window.scrollTo(0, 0); document.body.style.height = '100%'; if (!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))) { if (document.body.parentNode) { document.body.pare...
JavaScript
var osm = new OpenLayers.Layer.OSM(); var population = new OpenLayers.Layer.UTFGrid({ name: "World Population", url: "utfgrid/world_utfgrid/${z}/${x}/${y}.json", utfgridResolution: 4 // default is 2 }); var bioregions = new OpenLayers.Layer.UTFGrid({ name: "World Bioregions", url: "utfgrid/bio_utfg...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.WMS( "WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"} ), new OpenLayers.Layer.Vector("KML", { strategies: [new OpenLayers.Strategy.Fixed()], protoco...
JavaScript
// create some sample features var Feature = OpenLayers.Feature.Vector; var Geometry = OpenLayers.Geometry; var features = [ new Feature(new Geometry.Point(-90, 45)), new Feature( new Geometry.Point(0, 45), {cls: "one"} ), new Feature( new Geometry.Point(90, 45), {cls: "...
JavaScript
function init() { var map = new OpenLayers.Map({ div: "map", projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), layers: [ new OpenLayers.Layer.OSM() ] }); if (!map.getCenter()) map.zoomToMaxExte...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.OSM(), new OpenLayers.Layer.Vector("Vectors", { projection: new OpenLayers.Projection("EPSG:4326"), strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.Scrip...
JavaScript
var map, layer, styleMap; OpenLayers.ProxyHost = "proxy.cgi?url="; function init() { map = new OpenLayers.Map({ div: "map", projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326") }); var g = new OpenLayers.Layer.Google("Googl...
JavaScript
var osm = new OpenLayers.Layer.OSM(); var utfgrid = new OpenLayers.Layer.UTFGrid({ url: "utfgrid/world_utfgrid/${z}/${x}/${y}.json", utfgridResolution: 4, // default is 2 displayInLayerSwitcher: false }); var map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", controls: [], ...
JavaScript
/** * Class: OpenLayers.Strategy.AttributeCluster * Strategy for vector feature clustering based on feature attributes. * * Inherits from: * - <OpenLayers.Strategy.Cluster> */ OpenLayers.Strategy.AttributeCluster = OpenLayers.Class(OpenLayers.Strategy.Cluster, { /** * the attribute to use for comparison...
JavaScript
// make map available for easy debugging var map; function init() { var options = { projection: new OpenLayers.Projection("EPSG:102113"), units: "m", numZoomLevels: 18, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, ...
JavaScript
var map = new OpenLayers.Map({ div: "map", maxExtent: new OpenLayers.Bounds(-130, 30, -80, 55), maxResolution: 360 / 256 / Math.pow(2, 4), numZoomLevels: 12, layers: [ new OpenLayers.Layer.WMS( "Global Imagery", "http://maps.opengeo.org/geowebcache/service/wms", ...
JavaScript
function init() { // create a vector layer for drawing var vector = new OpenLayers.Layer.Vector('Vector Layer', { styleMap: new OpenLayers.StyleMap({ temporary: OpenLayers.Util.applyDefaults({ pointRadius: 16 }, OpenLayers.Feature.Vector.style.temporary) ...
JavaScript
// use a CQL parser for easy filter creation var format = new OpenLayers.Format.CQL(); // this rule will get a filter from the CQL text in the form var rule = new OpenLayers.Rule({ // We could also set a filter here. E.g. // filter: format.read("STATE_ABBR >= 'B' AND STATE_ABBR <= 'O'"), symbolizer: { ...
JavaScript
Ext.ns('App'); /** * The model for the geonames records used in the search */ Ext.regModel('Geonames', { fields: ['countryName', 'toponymName', 'name', 'lat', 'lng'] }); /** * Custom class for the Search */ App.SearchFormPopupPanel = Ext.extend(Ext.Panel, { map: null, floating: true, modal: true,...
JavaScript
var map, layer, styleMap; OpenLayers.ProxyHost = "proxy.cgi?url="; function init() { var geographic = new OpenLayers.Projection("EPSG:4326"); var mercator = new OpenLayers.Projection("EPSG:900913"); map = new OpenLayers.Map('map', { projection: mercator }); var g = new OpenLayers.Layer.G...
JavaScript
var map; function init() { var mercator = new OpenLayers.Projection("EPSG:900913"); var geographic = new OpenLayers.Projection("EPSG:4326"); map = new OpenLayers.Map({ div: "map", projection: mercator, layers: [ new OpenLayers.Layer.OSM(), new OpenLayers.La...
JavaScript
var map, filter, filterStrategy; var animationTimer; var currentDate; var startDate = new Date(1272736800000); // lower bound of when values var endDate = new Date(1272737100000); // upper value of when values var step = 8; // sencods to advance each interval var interval = 0.125; // seconds between each step in the an...
JavaScript
var map; function init() { var mercator = new OpenLayers.Projection("EPSG:900913"); var geographic = new OpenLayers.Projection("EPSG:4326"); map = new OpenLayers.Map({ div: "map", projection: mercator, layers: [ new OpenLayers.Layer.OSM(), new OpenLayers.La...
JavaScript
// Use proxy to get same origin URLs for tiles that don't support CORS. OpenLayers.ProxyHost = "proxy.cgi?url="; var map, cacheWrite, cacheRead1, cacheRead2; function init() { map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", layers: [ new OpenLayers.Layer.OSM("...
JavaScript
// API key for http://openlayers.org. Please get your own at // http://bingmapsportal.com/ and use that instead. var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf"; var map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.Attribution(), new OpenLayers.Co...
JavaScript
// API key for http://openlayers.org. Please get your own at // http://bingmapsportal.com/ and use that instead. var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf"; // initialize map when page ready var map; var gg = new OpenLayers.Projection("EPSG:4326"); var sm = new OpenLayers.Projectio...
JavaScript
var map; function init() { map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", controls: [], fractionalZoom: true }); var osm = new OpenLayers.Layer.OSM(null, null, { resolutions: [156543.03390625, 78271.516953125, 39135.7584765625, ...
JavaScript
var urls = [ "http://a.tile.openstreetmap.org/${z}/${x}/${y}.png", "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png", "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png" ]; var map = new OpenLayers.Map({ div: "map", layers: [ new OpenLayers.Layer.XYZ("OSM (with buffer)", urls, { ...
JavaScript
/* Animator.js 1.1.9 This library is released under the BSD license: Copyright (c) 2006, Bernard Sumption. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code mu...
JavaScript
var map; function init() { map = new OpenLayers.Map('map'); map.addControl(new OpenLayers.Control.LayerSwitcher()); var gphy = new OpenLayers.Layer.Google( "Google Physical", {type: google.maps.MapTypeId.TERRAIN} ); var gmap = new OpenLayers.Layer.Google( "Google Street...
JavaScript
var points = new OpenLayers.Layer.PointGrid({ name: "Snap Grid", dx: 600, dy: 600, styleMap: new OpenLayers.StyleMap({ pointRadius: 1, strokeColor: "#3333ff", strokeWidth: 1, fillOpacity: 1, fillColor: "#ffffff", graphicName: "square" }) }); var lines = n...
JavaScript
var features = [ new OpenLayers.Feature.Vector( OpenLayers.Geometry.fromWKT( "LINESTRING(-90 90, 90 -90)" ), {color: "#0f0000"} ), new OpenLayers.Feature.Vector( OpenLayers.Geometry.fromWKT( "LINESTRING(100 50, -100 -50)" ), {col...
JavaScript
var style = { fillColor: '#000', fillOpacity: 0.1, strokeWidth: 0 }; var map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.OSM( "Simple OSM Map"); var vector = new OpenLayers.Layer.Vector('vector'); map.addLayers([layer, vector]); map.setCenter( new OpenLayers.LonLat(-71.147, 42.472).t...
JavaScript
var map = new OpenLayers.Map("map"); var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"} ); var dm_wms = new OpenLayers.Layer.WMS( "Canadian Data", "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap", { layers: "bathymetry,la...
JavaScript
var map = new OpenLayers.Map({ div: "map", layers: [new OpenLayers.Layer.OSM()], controls: [ new OpenLayers.Control.Navigation({ dragPanOptions: { enableKinetic: true } }), new OpenLayers.Control.Attribution(), new OpenLayers.Control.Zo...
JavaScript
exports.OpenLayers = OpenLayers;
JavaScript
// Requires: /// 0. nodejs // 1. jsdom installed (npm install jsdom) // 2. A build profile with mockdom.js included in [first], and node.js // inclded in [last], at ../../build/OpenLayers.js , like node-tests.js. // 3. Run with node run-tests.js // // Missing: integration with a solid node.js testrunner. var j...
JavaScript
XMLHttpRequest = function() { return { 'open': function() { }, 'send': function() { } } }; navigator = { 'appName': 'mockdom', 'userAgent': 'mockdom', 'appVersion': '0.1', 'language': 'en', 'userLanguage': 'en' } element = function(type) { type = type || ""; return { '...
JavaScript
/** * File: Test.AnotherWay.geom_eq.js * Adds a geom_eq method to AnotherWay test objects. * */ (function() { /** * Function assertEqual * Test two objects for equivalence (based on ==). Throw an exception * if not equivalent. * * Parameters: * got - {Object} * exp...
JavaScript
/* throws.js -- Adds a `throws_` method to AnotherWay test objects. Copyright 2005 OpenLayers Contributors. released under the BSD License. A reference to this file needs to be added to `run-tests.html` in the head element after the AnotherWay classes are created: <script type="text/javascript" src="th...
JavaScript
/** * File: Test.AnotherWay.xml_eq.js * Adds a xml_eq method to AnotherWay test objects. * */ (function() { /** * Function: createNode * Given a string, try to create an XML DOM node. Throws string messages * on failure. * * Parameters: * text - {String} An XML string. ...
JavaScript
// Adding a mode parameter with "build" as value in the run-tests.html will // make usage of the build version of the library. // get the OLLoader.js script location (function() { var r = new RegExp("(^|(.*?\\/))(" + "OLLoader.js" + ")(\\?|$)"), s = document.getElementsByTagName('script'), src, m, ...
JavaScript
var map, vectorLayer, drawFeature, features map = new OpenLayers.Map('map', { eventListeners: { movestart: function() { console.time("move"); }, moveend: function() { console.timeEnd("move"); } } }); // allow testing of specific renderers via "?renderer=...
JavaScript
var caps = '<?xml version="1.0" encoding="UTF-8"?>' + '<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://demo.opengeo.org/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd">' + '<WMT_MS_Capabilities version="1.1.1" updateSequence="145">' + ' <Service>' + ' <Name>OGC:WMS</Name>' + ' <Title>GeoServer Web Map Service...
JavaScript
// total counters Test.AnotherWay._openlayers_sum_total_detail_ok=0; Test.AnotherWay._openlayers_sum_total_detail_fail=0; Test.AnotherWay._startTime = null; // method overwrites // // behaviour (timing) Test.AnotherWay._old_run_all_onclick = Test.AnotherWay._run_all_onclick; Test.AnotherWay._run_all_onclick = function...
JavaScript
var doc = new OpenLayers.Format.XML().read( '<?xml version="1.0" encoding="UTF-8"?>' + '<wps:Capabilities xml:lang="en" service="WPS" version="1.0.0"' + ' xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"' + ' xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:o...
JavaScript
var doc = new OpenLayers.Format.XML().read( '<?xml version="1.0" encoding="UTF-8"?>' + '<sos:Capabilities version="1.0.0" updateSequence="2005-12-14T10:12:39+01" xsi:schemaLocation="http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosAll.xsd" xmlns:sos="http://www.opengis.net/sos/1.0" xmlns:xsi="http...
JavaScript
var csw_request = '<csw:GetDomain xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2">' + '<csw:PropertyName>type</csw:PropertyName>' + '</csw:GetDomain>'; var csw_response = '<?xml version="1.0" encoding="UTF-8"?>' + '<csw:GetDomainResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0....
JavaScript
var csw_request = '<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" startPosition="10" maxRecords="20" xmlns:gmd="http://www.isotc211.org/2005/gmd">' + '<csw:Query typeNames="csw:Record">' + '<csw:ElementSetName>brief</csw:ElementSetName>' + ...
JavaScript
var xml = new OpenLayers.Format.XML(); function readXML(file) { return xml.read(document.getElementById(file).firstChild.nodeValue); } var cases = { "v2/point-coord.xml": new OpenLayers.Geometry.Point(1, 2), "v2/point-coordinates.xml": new OpenLayers.Geometry.Point(1, 2), "v2/linestring-coord.xml":...
JavaScript
/** * Test.AnotherWay version 0.5 * * Copyright (c) 2005 Artem Khodush, http://straytree.org * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including ...
JavaScript
var indexSectionsWithContent = { "General": { "Symbols": true, "Numbers": false, "A": true, "B": true, "C": true, "D": true, "E": true, "F": true, "G": true, "H": true, "I": true, "J": true, "K": true, "L": true, "M": true, ...
JavaScript
var indexSectionsWithContent = { "General": { "Symbols": false, "Numbers": false, "A": true, "B": true, "C": true, "D": true, "E": true, "F": true, "G": true, "H": true, "I": true, "J": true, "K": true, "L": true, "M": true, ...
JavaScript
/* OpenLayers.js -- OpenLayers Map Viewer Library Copyright (c) 2006-2012 by OpenLayers Contributors Published under the 2-clause BSD license. See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors. Includes compre...
JavaScript
/** * @requires OpenLayers/BaseTypes/Class.js * @requires OpenLayers/Util.js * @requires OpenLayers/Control.js * @requires OpenLayers/Format.js * @requires OpenLayers/Request.js * @requires OpenLayers/Layer/WMS.js * @requires OpenLayers/Layer/MapServer.js * @requires OpenLayers/Tile.js * @requires OpenLayers/R...
JavaScript
/** * @requires OpenLayers/Console.js * @requires Rico/Color.js */ /* * This file has been edited substantially from the Rico-released * version by the OpenLayers development team. * * Copyright 2005 Sabre Airline Solutions * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
JavaScript
/** * @requires Rico/license.js * @requires OpenLayers/Console.js * @requires OpenLayers/BaseTypes/Class.js * @requires OpenLayers/BaseTypes/Element.js */ /* * This file has been edited substantially from the Rico-released version by * the OpenLayers development team. */ OpenLayers.Console.warn("OpenLayers....
JavaScript
/** * @license Apache 2 * * Contains portions of Rico <http://openrico.org/> * * Copyright 2005 Sabre Airline Solutions * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * * ...
JavaScript
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/BaseTypes/Class.js * @requires OpenLa...
JavaScript
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/BaseTypes/Class.js * @requires OpenLa...
JavaScript
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/BaseTypes/Class.js */ /** * Class: ...
JavaScript
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/SingleFile.js */ /** * Namespace: Sp...
JavaScript
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/BaseTypes/Class.js * @requires OpenL...
JavaScript