CY_ZZJY.Web/js/RectangleZoom_min.js

(开头部分) 19KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var BMapLib = window.BMapLib = BMapLib || {}; (function () {
    var e = 0;
    var j = 1;
    var c = BMapLib.RectangleZoom = function (n, m) {
        if (!n) {
            return
        }
        this._map = n;
        this._opts = {
            zoomType: e,
            followText: "",
            strokeWeight: 2,
            strokeColor: "#111",
            style: "solid",
            fillColor: "#ccc",
            opacity: 0.4,
            cursor: "crosshair",
            autoClose: false
        };
        this._setOptions(m);
        this._opts.strokeWeight = this._opts.strokeWeight <= 0 ? 1 : this._opts.strokeWeight;
        this._opts.opacity = this._opts.opacity < 0 ? 0 : this._opts.opacity > 1 ? 1 : this._opts.opacity;
        if (this._opts.zoomType < e || this._opts.zoomType > j) {
            this._opts.zoomType = e
        }
        this._isOpen = false;
        this._fDiv = null;
        this._followTitle = null
    };
    c.prototype._setOptions = function (m) {
        if (!m) {
            return
        }
        for (var n in m) {
            if (typeof (m[n]) != "undefined") {
                this._opts[n] = m[n]
            }
        }
    };
    c.prototype.setStrokeColor = function (m) {
        if (typeof m == "string") {
            this._opts.strokeColor = m;
            this._updateStyle()
        }
    };
    c.prototype.setLineStroke = function (m) {
        if (typeof m == "number" && Math.round(m) > 0) {
            this._opts.strokeWeight = Math.round(m);
            this._updateStyle()
        }
    };
    c.prototype.setLineStyle = function (m) {
        if (m == "solid" || m == "dashed") {
            this._opts.style = m;
            this._updateStyle()
        }
    };
    c.prototype.setOpacity = function (m) {
        if (typeof m == "number" && m >= 0 && m <= 1) {
            this._opts.opacity = m;
后面还有 495 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。