亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? util.js

?? 用來在地圖上做操作GIS,在地圖上做標記
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under the BSD license. * See http://svn.openlayers.org/trunk/openlayers/release-license.txt  * for the full text of the license. *//** * Namespace: Util */OpenLayers.Util = {};/**  * Function: getElement * This is the old $() from prototype */OpenLayers.Util.getElement = function() {    var elements = [];    for (var i = 0; i < arguments.length; i++) {        var element = arguments[i];        if (typeof element == 'string') {            element = document.getElementById(element);        }        if (arguments.length == 1) {            return element;        }        elements.push(element);    }    return elements;};/**  * Maintain $() from prototype */if ($ == null) {    var $ = OpenLayers.Util.getElement;}/** * APIFunction: extend * Copy all properties of a source object to a destination object.  Modifies *     the passed in destination object. * * Parameters: * destination - {Object} The object that will be modified * source - {Object} The object with properties to be set on the destination * * Returns: * {Object} The destination object. */OpenLayers.Util.extend = function(destination, source) {    if(destination && source) {        for(var property in source) {            destination[property] = source[property];        }        /**         * IE doesn't include the toString property when iterating over an object's         * properties with the for(property in object) syntax.  Explicitly check if         * the source has its own toString property.         */        if(source.hasOwnProperty && source.hasOwnProperty('toString')) {            destination.toString = source.toString;        }    }    return destination;};/**  * Function: removeItem * Remove an object from an array. Iterates through the array *     to find the item, then removes it. * * Parameters: * array - {Array} * item - {Object} *  * Return * {Array} A reference to the array */OpenLayers.Util.removeItem = function(array, item) {    for(var i=0; i < array.length; i++) {        if(array[i] == item) {            array.splice(i,1);            //break;more than once??        }    }    return array;};/** * Function: clearArray * *Deprecated*. This function will disappear in 3.0. * Please use "array.length = 0" instead. *  * Parameters: * array - {Array} */OpenLayers.Util.clearArray = function(array) {    var msg = "OpenLayers.Util.clearArray() is Deprecated." +              " Please use 'array.length = 0' instead.";    OpenLayers.Console.warn(msg);    array.length = 0;};/**  * Function: indexOf * Seems to exist already in FF, but not in MOZ. *  * Parameters: * array - {Array} * obj - {Object} *  * Returns: * {Integer} The index at, which the object was found in the array. *           If not found, returns -1.v */OpenLayers.Util.indexOf = function(array, obj) {    for(var i=0; i < array.length; i++) {        if (array[i] == obj) return i;    }    return -1;   };/** * Function: modifyDOMElement *  * Modifies many properties of a DOM element all at once.  Passing in  * null to an individual parameter will avoid setting the attribute. * * Parameters: * id - {String} The element id attribute to set. * px - {<OpenLayers.Pixel>} The left and top style position. * sz - {<OpenLayers.Size>}  The width and height style attributes. * position - {String}       The position attribute.  eg: absolute,  *                           relative, etc. * border - {String}         The style.border attribute.  eg: *                           solid black 2px * overflow - {String}       The style.overview attribute.   * opacity - {Float}         Fractional value (0.0 - 1.0) */OpenLayers.Util.modifyDOMElement = function(element, id, px, sz, position,                                             border, overflow, opacity) {    if (id) {        element.id = id;    }    if (px) {        element.style.left = px.x + "px";        element.style.top = px.y + "px";    }    if (sz) {        element.style.width = sz.w + "px";        element.style.height = sz.h + "px";    }    if (position) {        element.style.position = position;    }    if (border) {        element.style.border = border;    }    if (overflow) {        element.style.overflow = overflow;    }    if (opacity) {        element.style.opacity = opacity;        element.style.filter = 'alpha(opacity=' + (opacity * 100) + ')';    }};/**  * Function: createDiv * Creates a new div and optionally set some standard attributes. * Null may be passed to each parameter if you do not wish to * set a particular attribute.d *  * Note: zIndex is NOT set *  * Parameters: * id - {String} An identifier for this element.  If no id is *               passed an identifier will be created  *               automatically. * px - {<OpenLayers.Pixel>} The element left and top position.  * sz - {<OpenLayers.Size>} The element width and height. * imgURL - {String} A url pointing to an image to use as a  *                   background image. * position - {String} The style.position value. eg: absolute, *                     relative etc. * border - {String} The the style.border value.  *                   eg: 2px solid black * overflow - {String} The style.overflow value. Eg. hidden * opacity - {Float} Fractional value (0.0 - 1.0) *  * Returns:  * {DOMElement} A DOM Div created with the specified attributes. */OpenLayers.Util.createDiv = function(id, px, sz, imgURL, position,                                      border, overflow, opacity) {    var dom = document.createElement('div');    if (imgURL) {        dom.style.backgroundImage = 'url(' + imgURL + ')';    }    //set generic properties    if (!id) {        id = OpenLayers.Util.createUniqueID("OpenLayersDiv");    }    if (!position) {        position = "absolute";    }    OpenLayers.Util.modifyDOMElement(dom, id, px, sz, position,                                      border, overflow, opacity);    return dom;};/** * Function: createImage * Creates an img element with specific attribute values. *   * Parameters: * id - {String} The id field for the img.  If none assigned one will be *               automatically generated. * px - {<OpenLayers.Pixel>} The left and top positions. * sz - {<OpenLayers.Size>} The style.width and style.height values. * imgURL - {String} The url to use as the image source. * position - {String} The style.position value. * border - {String} The border to place around the image. * delayDisplay - {Boolean} If true waits until the image has been *                          loaded. * opacity - {Float} Fractional value (0.0 - 1.0) *  * Returns: * {DOMElement} A DOM Image created with the specified attributes. */OpenLayers.Util.createImage = function(id, px, sz, imgURL, position, border,                                       opacity, delayDisplay) {    var image = document.createElement("img");    //set generic properties    if (!id) {        id = OpenLayers.Util.createUniqueID("OpenLayersDiv");    }    if (!position) {        position = "relative";    }    OpenLayers.Util.modifyDOMElement(image, id, px, sz, position,                                      border, null, opacity);    if(delayDisplay) {        image.style.display = "none";        OpenLayers.Event.observe(image, "load",             OpenLayers.Function.bind(OpenLayers.Util.onImageLoad, image));        OpenLayers.Event.observe(image, "error",             OpenLayers.Function.bind(OpenLayers.Util.onImageLoadError, image));            }        //set special properties    image.style.alt = id;    image.galleryImg = "no";    if (imgURL) {        image.src = imgURL;    }            return image;};/** * Function: setOpacity * Deprecated. * This function has been deprecated. Instead, please use  *     OpenLayers.Util.modifyDOMElement()  *     or  *     OpenLayers.Util.modifyAlphaImageDiv() *  * Set the opacity of a DOM Element *     Note that for this function to work in IE, elements must "have layout" *     according to: *     http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp * * Parameters: * element - {DOMElement} Set the opacity on this DOM element * opacity - {Float} Opacity value (0.0 - 1.0) */OpenLayers.Util.setOpacity = function(element, opacity) {    OpenLayers.Util.modifyDOMElement(element, null, null, null,                                     null, null, null, opacity);}/** * Function: onImageLoad */OpenLayers.Util.onImageLoad = function() {    // The complex check here is to solve issues described in #480.    // Every time a map view changes, it increments the 'viewRequestID'     // property. As the requests for the images for the new map view are sent    // out, they are tagged with this unique viewRequestID.     //     // If an image has no viewRequestID property set, we display it regardless,     // but if it does have a viewRequestID property, we check that it matches     // the viewRequestID set on the map.    //     // If the viewRequestID on the map has changed, that means that the user    // has changed the map view since this specific request was sent out, and    // therefore this tile does not need to be displayed (so we do not execute    // this code that turns its display on).    //    if (!this.viewRequestID ||        (this.map && this.viewRequestID == this.map.viewRequestID)) {         this.style.backgroundColor = null;        this.style.display = "";      }};/** * Property: onImageLoadErrorColor * {String} The color tiles with load errors will turn. *          Default is "pink" */OpenLayers.Util.onImageLoadErrorColor = "pink";/** * Property: onImageLoadErrorColor * {Integer} How many times should we try to reload an image before giving up? *           Default is 0 */OpenLayers.IMAGE_RELOAD_ATTEMPTS = 0;/** * Function: onImageLoadError  */OpenLayers.Util.onImageLoadError = function() {    this._attempts = (this._attempts) ? (this._attempts + 1) : 1;    if(this._attempts <= OpenLayers.IMAGE_RELOAD_ATTEMPTS) {        this.src = this.src;    } else {        this.style.backgroundColor = OpenLayers.Util.onImageLoadErrorColor;    }    this.style.display = "";};/** * Function: alphaHack * Checks whether it's necessary (and possible) to use the png alpha * hack which allows alpha transparency for png images under Internet * Explorer. *  * Returns: * {Boolean} true if alpha has is necessary and possible, false otherwise. */OpenLayers.Util.alphaHack = function() {    var arVersion = navigator.appVersion.split("MSIE");    var version = parseFloat(arVersion[1]);    var filter = false;        // IEs4Lin dies when trying to access document.body.filters, because     // the property is there, but requires a DLL that can't be provided. This    // means that we need to wrap this in a try/catch so that this can    // continue.        try {         filter = document.body.filters;    } catch (e) {    }            return ( filter &&                      (version >= 5.5) && (version < 7) );}/**  * Function: modifyAlphaImageDiv *  * div - {DOMElement} Div containing Alpha-adjusted Image * id - {String} * px - {<OpenLayers.Pixel>} * sz - {<OpenLayers.Size>} * imgURL - {String} * position - {String} * border - {String} * sizing {String} 'crop', 'scale', or 'image'. Default is "scale" * opacity - {Float} Fractional value (0.0 - 1.0) */ OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL,                                                position, border, sizing,                                                opacity) {    OpenLayers.Util.modifyDOMElement(div, id, px, sz);    var img = div.childNodes[0];    if (imgURL) {        img.src = imgURL;    }    OpenLayers.Util.modifyDOMElement(img, div.id + "_innerImage", null, sz,                                      "relative", border);    if (opacity) {        div.style.opacity = opacity;        div.style.filter = 'alpha(opacity=' + (opacity * 100) + ')';    }        if (OpenLayers.Util.alphaHack()) {        div.style.display = "inline-block";        if (sizing == null) {            sizing = "scale";        }                div.style.filter = "progid:DXImageTransform.Microsoft" +                           ".AlphaImageLoader(src='" + img.src + "', " +                           "sizingMethod='" + sizing + "')";        if (div.style.opacity) {            div.style.filter += " alpha(opacity=" + div.style.opacity * 100 + ")";        }        img.style.filter = "progid:DXImageTransform.Microsoft" +                                ".Alpha(opacity=0)";    }};/**  * Function: createAlphaImageDiv *  * id - {String} * px - {<OpenLayers.Pixel>} * sz - {<OpenLayers.Size>} * imgURL - {String} * position - {String} * border - {String} * sizing {String} 'crop', 'scale', or 'image'. Default is "scale" * delayDisplay{Boolean} *  * Returns: * {DOMElement} A DOM Div created with a DOM Image inside it. If the hack is  *              needed for transparency in IE, it is added. */ OpenLayers.Util.createAlphaImageDiv = function(id, px, sz, imgURL,                                                position, border, sizing,                                                opacity, delayDisplay) {        var div = OpenLayers.Util.createDiv();    var img = OpenLayers.Util.createImage(null, null, null, null, null, null,                                           null, false);    div.appendChild(img);    if (delayDisplay) {        img.style.display = "none";        OpenLayers.Event.observe(img, "load",            OpenLayers.Function.bind(OpenLayers.Util.onImageLoad, div));        OpenLayers.Event.observe(img, "error",            OpenLayers.Function.bind(OpenLayers.Util.onImageLoadError, div));    }    OpenLayers.Util.modifyAlphaImageDiv(div, id, px, sz, imgURL, position,                                         border, sizing, opacity);        return div;};/**  * Function: upperCaseObject * Creates a new hashtable and copies over all the keys from the  *     passed-in object, but storing them under an uppercased *     version of the key at which they were stored. *  * Parameters:  * object - {Object} *  * Returns:  * {Object} A new Object with all the same keys but uppercased */OpenLayers.Util.upperCaseObject = function (object) {    var uObject = {};    for (var key in object) {        uObject[key.toUpperCase()] = object[key];    }    return uObject;};/**  * Function: applyDefaults * Takes a hashtable and copies any keys that don't exist from *     another hashtable, by analogy with OpenLayers.Util.extend() from *     Prototype.js.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区爽爽爽爽爽| 亚洲欧美日韩在线不卡| 亚洲免费视频成人| 国产精品影视在线观看| 欧美日韩亚洲综合| 一区二区成人在线| 欧洲精品一区二区| 亚洲成人在线网站| 欧美日韩黄色影视| 亚洲精品第一国产综合野| 色欧美片视频在线观看在线视频| 国产婷婷一区二区| 成人黄色网址在线观看| 国产精品日产欧美久久久久| 99久久国产综合精品女不卡| 国产欧美日本一区二区三区| 国产91精品在线观看| 国产精品国产精品国产专区不蜜 | 色婷婷久久99综合精品jk白丝| 国产精品国产三级国产aⅴ中文| 97超碰欧美中文字幕| 亚洲福利视频三区| 久久综合九色综合97_久久久| 国产一区二区主播在线| 亚洲精品老司机| 欧美一区二区美女| 国产精品18久久久久久久网站| 国产精品短视频| 欧美精品色综合| 成人三级在线视频| 日韩精品欧美成人高清一区二区| 国产视频一区二区在线观看| 欧美在线一区二区| 国产乱码精品一品二品| 性久久久久久久| 久久久久久一二三区| 欧美日韩一卡二卡三卡| 国产精品亚洲第一| 一区二区三区资源| 国产日韩亚洲欧美综合| 日韩欧美国产精品| 欧美日韩大陆在线| 色妹子一区二区| av在线综合网| 粉嫩一区二区三区在线看| 国产一区二三区| 国产在线观看免费一区| 奇米影视在线99精品| 亚洲一区二区三区国产| 一区二区三区在线看| 国产精品久久久久久久久搜平片| 久久久久久久av麻豆果冻| 日韩一级大片在线观看| 欧美一级爆毛片| 精品国产在天天线2019| 欧美成人一级视频| 久久亚洲私人国产精品va媚药| 在线成人免费观看| 日韩欧美成人一区| 精品国产制服丝袜高跟| 国产女人aaa级久久久级| 国产精品网友自拍| 亚洲日本免费电影| 午夜av电影一区| 麻豆成人久久精品二区三区小说| 麻豆91免费看| 成人美女视频在线观看| 在线欧美日韩精品| 日韩欧美国产精品一区| 国产精品色呦呦| 日韩精品午夜视频| 国产福利一区二区三区在线视频| 99久久免费国产| 欧美一区二区三区视频| 国产精品毛片久久久久久 | 欧美一区二区三区视频| 国产免费久久精品| 亚洲18色成人| 丁香五精品蜜臀久久久久99网站 | 国产精品视频九色porn| 亚洲一区二区三区四区五区中文| 天天色天天操综合| 国产成人超碰人人澡人人澡| 欧美午夜一区二区| 欧美经典一区二区三区| 日韩主播视频在线| av激情综合网| 国产精品美女久久久久aⅴ国产馆| 亚洲h精品动漫在线观看| 9i看片成人免费高清| 久久众筹精品私拍模特| 偷拍一区二区三区四区| 91视频一区二区三区| 亚洲国产精品国自产拍av| 蜜桃久久久久久久| 在线成人免费视频| 日本中文一区二区三区| 欧美日韩精品是欧美日韩精品| ...xxx性欧美| 不卡av在线免费观看| 中文字幕中文字幕在线一区 | 免费日韩伦理电影| 欧美精品久久99久久在免费线| 亚洲卡通欧美制服中文| 色综合天天综合在线视频| 亚洲图片激情小说| 91蝌蚪porny| 亚洲成人免费观看| 日韩色在线观看| 精品午夜一区二区三区在线观看| 日韩视频在线观看一区二区| 蜜臀av在线播放一区二区三区| 欧美精三区欧美精三区| 九九视频精品免费| 中文字幕电影一区| 91福利小视频| 麻豆免费看一区二区三区| 国产精品日韩成人| 欧美日韩高清在线播放| 国产精品正在播放| 一区二区三区免费| 91精品国产高清一区二区三区| 国产福利视频一区二区三区| 亚洲欧洲av在线| 日韩欧美在线网站| 成人av免费观看| 日本不卡123| 中文字幕免费一区| 欧美高清视频在线高清观看mv色露露十八| 亚洲aⅴ怡春院| 国产精品国模大尺度视频| 日韩免费一区二区| 91国在线观看| 国产成人免费视| 日韩和欧美的一区| 一区二区三区av电影| 久久精品亚洲麻豆av一区二区| 欧美亚一区二区| 99re在线视频这里只有精品| 国产精品99久久久久久久女警| 亚洲夂夂婷婷色拍ww47| 国产精品人人做人人爽人人添 | 欧洲一区在线观看| 成人深夜视频在线观看| 国产精品1区2区| 丁香婷婷深情五月亚洲| 精品一区二区三区影院在线午夜| 亚洲午夜精品在线| 亚洲一区二区三区三| 亚洲色图视频网| 一区二区激情视频| 亚洲一级二级在线| 亚洲大片在线观看| 日韩成人av影视| 精品一区二区在线免费观看| 国产一区福利在线| 成人18精品视频| 欧美性大战久久久| 欧美精品一二三| 日韩视频中午一区| 精品播放一区二区| 国产精品私人影院| 亚洲成人自拍一区| 久久不见久久见中文字幕免费| 国产在线视频精品一区| 色综合久久综合网97色综合| 欧美中文一区二区三区| 日韩欧美中文字幕公布| 国产精品久久久久三级| 亚洲一区二区三区美女| 韩国理伦片一区二区三区在线播放| 国产成人亚洲综合色影视| 一本大道久久a久久精二百| 日韩一区二区电影在线| 自拍偷拍国产亚洲| 麻豆精品国产传媒mv男同| 91精品福利视频| 欧美激情一区在线| 五月天视频一区| 91在线播放网址| 久久老女人爱爱| 午夜电影网亚洲视频| 北条麻妃一区二区三区| 欧美成人r级一区二区三区| 一区二区三区日韩欧美精品 | 黄色成人免费在线| 欧美日韩高清在线| 亚洲私人影院在线观看| 国产成人免费视频一区| 精品国产一区久久| 久久不见久久见免费视频7| 7777精品伊人久久久大香线蕉最新版 | 欧美日韩高清影院| 亚洲激情欧美激情| 91黄色小视频| 性久久久久久久| 337p亚洲精品色噜噜噜| 五月天视频一区| 日韩欧美亚洲一区二区| 日本午夜精品一区二区三区电影 |