亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩久久精品一区| 日韩一区二区在线看片| 欧美另类久久久品| 国产亚洲精品超碰| 日韩av中文在线观看| eeuss鲁片一区二区三区在线观看| 日韩一区二区三免费高清| 亚洲欧美国产三级| 国产成人在线视频网站| 精品国产91洋老外米糕| 爽好久久久欧美精品| 91免费看`日韩一区二区| 欧美大片一区二区三区| 日韩精彩视频在线观看| 欧美三级一区二区| 中文字幕欧美日韩一区| 久久99精品国产麻豆婷婷| 欧美人妖巨大在线| 亚洲黄色小视频| 成a人片亚洲日本久久| 国产亚洲一本大道中文在线| 五月天婷婷综合| 欧美久久久影院| 亚洲美女免费视频| 99久久精品国产毛片| 欧美精品一区二区三区视频 | 久久在线观看免费| 亚洲综合视频在线| 91高清视频免费看| 亚洲一区二区三区精品在线| 91老师片黄在线观看| 中文字幕亚洲区| 一本色道综合亚洲| 成人欧美一区二区三区在线播放| 处破女av一区二区| 国产精品乱人伦中文| 大尺度一区二区| 最新中文字幕一区二区三区| 99re视频这里只有精品| 亚洲另类春色校园小说| 欧美视频三区在线播放| 亚洲图片欧美一区| 欧美一二三在线| 国产激情一区二区三区四区 | 美女网站视频久久| 91精品国产综合久久久久久漫画| 午夜国产精品影院在线观看| 日韩欧美成人一区二区| 风流少妇一区二区| 精品亚洲aⅴ乱码一区二区三区| 精品久久久久一区| 国产jizzjizz一区二区| 亚洲精品一二三四区| 在线播放91灌醉迷j高跟美女| 免费看黄色91| 国产精品三级视频| 欧美日韩免费电影| 国产一区二区美女| 亚洲欧洲精品一区二区三区不卡| 欧洲另类一二三四区| 久久99久久99精品免视看婷婷| 国产精品沙发午睡系列990531| 欧美唯美清纯偷拍| 国产麻豆9l精品三级站| 曰韩精品一区二区| 精品sm在线观看| 91国偷自产一区二区开放时间 | 亚洲五码中文字幕| 久久久久久久久久久久久久久99| 色综合中文字幕国产| 亚洲高清视频中文字幕| 国产嫩草影院久久久久| 夜夜操天天操亚洲| 国产亚洲人成网站| 91精品免费在线| 91在线精品一区二区三区| 久久精品国产在热久久| 亚洲精品视频在线| 欧美极品另类videosde| 欧美一区二区免费| 色婷婷综合久久久久中文一区二区 | 国产精品综合二区| 日本欧美韩国一区三区| 亚洲人妖av一区二区| 欧美大片在线观看| 欧美日韩精品电影| 91黄色免费看| 成人av片在线观看| 国产精品自拍三区| 蜜桃av一区二区三区| 亚洲午夜一二三区视频| 亚洲欧美色图小说| 国产精品久线在线观看| 久久精品人人做人人爽97| 日韩天堂在线观看| 91精品麻豆日日躁夜夜躁| 欧美日韩在线播放一区| 91蝌蚪porny| 99视频一区二区| 成人亚洲一区二区一| 国产老妇另类xxxxx| 精品国产1区2区3区| 免费看黄色91| 奇米色一区二区三区四区| 亚洲精品ww久久久久久p站| 国产精品天天看| 麻豆精品视频在线观看免费| 五月综合激情日本mⅴ| 亚洲韩国精品一区| 亚洲va在线va天堂| 亚瑟在线精品视频| 偷窥少妇高潮呻吟av久久免费| 一区二区欧美国产| 亚洲一区二区三区不卡国产欧美| 亚洲日本乱码在线观看| 国产精品久久午夜| 亚洲情趣在线观看| 一区二区三区丝袜| 亚洲成人综合视频| 日韩成人精品在线观看| 久久精品国产一区二区三| 另类成人小视频在线| 国产乱国产乱300精品| 粉嫩绯色av一区二区在线观看| 成人精品gif动图一区| www.亚洲在线| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 久久精品夜色噜噜亚洲aⅴ| 国产三级一区二区三区| 中文字幕亚洲在| 亚洲一本大道在线| 免费一级片91| 高清在线观看日韩| 在线亚洲一区二区| 欧美一级艳片视频免费观看| 久久婷婷综合激情| 亚洲激情中文1区| 蜜芽一区二区三区| 国产91精品露脸国语对白| 97精品电影院| 日韩一级精品视频在线观看| 国产精品婷婷午夜在线观看| 亚洲国产精品自拍| 国产成人亚洲综合a∨婷婷| 色综合久久综合| 精品久久久久久久久久久久包黑料| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 97aⅴ精品视频一二三区| 欧美日韩不卡在线| 国产清纯在线一区二区www| 夜夜操天天操亚洲| 国产盗摄视频一区二区三区| 欧美综合色免费| 久久精品这里都是精品| 亚洲一二三级电影| 成人国产视频在线观看| 欧美精品免费视频| 国产日产欧产精品推荐色| 午夜视频一区二区三区| fc2成人免费人成在线观看播放| 欧美精品丝袜中出| 最新国产精品久久精品| 国产一区三区三区| 欧美日韩视频在线一区二区| 中文字幕一区二区三| 国产伦精一区二区三区| 欧美猛男超大videosgay| 成人欧美一区二区三区黑人麻豆| 精品在线视频一区| 在线成人av网站| 一区二区三区波多野结衣在线观看 | 欧美日韩在线播| 亚洲欧美激情小说另类| 成人在线综合网站| 日韩一区二区三区电影| 婷婷成人激情在线网| 色哟哟在线观看一区二区三区| 久久九九全国免费| 久久精品国产网站| 在线成人av影院| 日韩综合在线视频| 亚洲欧美区自拍先锋| 99re热视频这里只精品| 欧美国产综合一区二区| 国产激情91久久精品导航 | 狠狠色狠狠色综合日日91app| 欧美区视频在线观看| 亚洲成国产人片在线观看| 欧洲国内综合视频| 亚洲一区二区三区视频在线播放| 91在线视频播放| 一区二区三区国产精华| 欧美影视一区在线| 五月天婷婷综合| 91精品国产欧美一区二区18| 男人的j进女人的j一区| 精品国产露脸精彩对白| 国内精品伊人久久久久影院对白| 久久久国际精品| 成人久久18免费网站麻豆|