@antv/l7-component 2.5.35 → 2.5.37-mini11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/control/BaseControl.js +1 -1
- package/lib/control/logo.js +6 -2
- package/lib/control/logo.js.map +1 -1
- package/lib/control/scale.js +6 -2
- package/lib/control/scale.js.map +1 -1
- package/lib/control/zoom.js +6 -2
- package/lib/control/zoom.js.map +1 -1
- package/lib/index.js +10 -10
- package/lib/marker.js +1 -1
- package/lib/markerlayer.js +1 -1
- package/lib/popup.js +1 -1
- package/lib/utils/anchor.js +1 -1
- package/package.json +4 -4
- package/CHANGELOG.md +0 -325
- package/LICENSE.md +0 -21
- package/es/control/BaseControl.d.ts +0 -27
- package/es/control/BaseControl.js +0 -155
- package/es/control/BaseControl.js.map +0 -1
- package/es/control/layer.d.ts +0 -44
- package/es/control/layer.js +0 -355
- package/es/control/layer.js.map +0 -1
- package/es/control/logo.d.ts +0 -9
- package/es/control/logo.js +0 -58
- package/es/control/logo.js.map +0 -1
- package/es/control/scale.d.ts +0 -30
- package/es/control/scale.js +0 -153
- package/es/control/scale.js.map +0 -1
- package/es/control/zoom.d.ts +0 -30
- package/es/control/zoom.js +0 -128
- package/es/control/zoom.js.map +0 -1
- package/es/index.d.ts +0 -10
- package/es/index.js +0 -45
- package/es/index.js.map +0 -1
- package/es/marker.d.ts +0 -47
- package/es/marker.js +0 -427
- package/es/marker.js.map +0 -1
- package/es/markerlayer.d.ts +0 -68
- package/es/markerlayer.js +0 -309
- package/es/markerlayer.js.map +0 -1
- package/es/popup.d.ts +0 -35
- package/es/popup.js +0 -316
- package/es/popup.js.map +0 -1
- package/es/utils/anchor.d.ts +0 -22
- package/es/utils/anchor.js +0 -36
- package/es/utils/anchor.js.map +0 -1
|
@@ -33,7 +33,7 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
33
33
|
|
|
34
34
|
var _eventemitter = require("eventemitter3");
|
|
35
35
|
|
|
36
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
36
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
37
37
|
|
|
38
38
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
39
39
|
|
package/lib/control/logo.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -23,6 +23,10 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
23
23
|
|
|
24
24
|
var _BaseControl = _interopRequireWildcard(require("./BaseControl"));
|
|
25
25
|
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
26
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
27
31
|
|
|
28
32
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
package/lib/control/logo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/control/logo.ts"],"names":["Logo","position","PositionType","BOTTOMLEFT","name","className","container","DOM","create","anchor","target","rel","href","setAttribute","appendChild","Control"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;AACA
|
|
1
|
+
{"version":3,"sources":["../../src/control/logo.ts"],"names":["Logo","position","PositionType","BOTTOMLEFT","name","className","container","DOM","create","anchor","target","rel","href","setAttribute","appendChild","Control"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;;;;;;;;;IACqBA,I;;;;;;;;;;;;WACnB,sBAAoB;AAClB,aAAO;AACLC,QAAAA,QAAQ,EAAEC,0BAAaC,UADlB;AAELC,QAAAA,IAAI,EAAE;AAFD,OAAP;AAID;;;WACD,iBAAe;AACb,UAAMC,SAAS,GAAG,iBAAlB;;AACA,UAAMC,SAAS,GAAGC,aAAIC,MAAJ,CAAW,KAAX,EAAkBH,SAAlB,CAAlB;;AACA,UAAMI,MAAuB,GAAGF,aAAIC,MAAJ,CAC9B,GAD8B,EAE9B,cAF8B,CAAhC;;AAIAC,MAAAA,MAAM,CAACC,MAAP,GAAgB,QAAhB;AACAD,MAAAA,MAAM,CAACE,GAAP,GAAa,mBAAb;AACAF,MAAAA,MAAM,CAACG,IAAP,GAAc,4BAAd;AACAH,MAAAA,MAAM,CAACI,YAAP,CAAoB,YAApB,EAAkC,WAAlC;AACAJ,MAAAA,MAAM,CAACI,YAAP,CAAoB,KAApB,EAA2B,mBAA3B;AACAP,MAAAA,SAAS,CAACQ,WAAV,CAAsBL,MAAtB;AACA,aAAOH,SAAP;AACD;;;WAED,oBAAkB;AAChB,aAAO,IAAP;AACD;;;EAzB+BS,oB","sourcesContent":["import { IControlOption } from '@antv/l7-core';\nimport { DOM } from '@antv/l7-utils';\nimport Control, { PositionType } from './BaseControl';\nexport default class Logo extends Control {\n public getDefault() {\n return {\n position: PositionType.BOTTOMLEFT,\n name: 'logo',\n };\n }\n public onAdd() {\n const className = 'l7-control-logo';\n const container = DOM.create('div', className);\n const anchor: HTMLLinkElement = DOM.create(\n 'a',\n 'l7-ctrl-logo',\n ) as HTMLLinkElement;\n anchor.target = '_blank';\n anchor.rel = 'noopener nofollow';\n anchor.href = 'https://antv.alipay.com/l7';\n anchor.setAttribute('aria-label', 'AntV logo');\n anchor.setAttribute('rel', 'noopener nofollow');\n container.appendChild(anchor);\n return container;\n }\n\n public onRemove() {\n return null;\n }\n}\n"],"file":"logo.js"}
|
package/lib/control/scale.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -27,6 +27,10 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
27
27
|
|
|
28
28
|
var _BaseControl = _interopRequireWildcard(require("./BaseControl"));
|
|
29
29
|
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
30
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
31
35
|
|
|
32
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
package/lib/control/scale.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/control/scale.ts"],"names":["Scale","cfg","position","PositionType","BOTTOMLEFT","maxWidth","metric","updateWhenIdle","imperial","name","className","container","DOM","create","addScales","controlOption","mapsService","on","update","off","y","getSize","p1","containerToLngLat","p2","maxMeters","lng","lat","updateScales","updateMetric","updateImperial","meters","getRoundNum","label","updateScale","mScale","maxFeet","maxMiles","miles","feet","iScale","scale","text","ratio","style","width","Math","round","innerHTML","num","pow10","pow","floor","length","d","Control"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AAEA
|
|
1
|
+
{"version":3,"sources":["../../src/control/scale.ts"],"names":["Scale","cfg","position","PositionType","BOTTOMLEFT","maxWidth","metric","updateWhenIdle","imperial","name","className","container","DOM","create","addScales","controlOption","mapsService","on","update","off","y","getSize","p1","containerToLngLat","p2","maxMeters","lng","lat","updateScales","updateMetric","updateImperial","meters","getRoundNum","label","updateScale","mScale","maxFeet","maxMiles","miles","feet","iScale","scale","text","ratio","style","width","Math","round","innerHTML","num","pow10","pow","floor","length","d","Control"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AAEA;;;;;;;;;;IAOqBA,K;;;;;AAGnB,iBAAYC,GAAZ,EAAgD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AJ,EAAY;AACV,aAAK6B,MAAL,GAAcvB,aAAIC,MAAJ,CAAW,KAAX,EAAkBH,SAAlB,EAA6BC,SAA7B,CAAd;AACD;;AACD,UAAIH,QAAJ,EAAc;AACZ,aAAKgC,MAAL,GAAc5B,aAAIC,MAAJ,CAAW,KAAX,EAAkBH,SAAlB,EAA6BC,SAA7B,CAAd;AACD;AACF;;;EApGgC4C,oB","sourcesContent":["import { IControlOption } from '@antv/l7-core';\nimport { bindAll, DOM, lnglatDistance } from '@antv/l7-utils';\n\nimport Control, { PositionType } from './BaseControl';\nexport interface IScaleControlOption extends IControlOption {\n maxWidth: number;\n metric: boolean;\n updateWhenIdle: boolean;\n imperial: boolean;\n}\nexport default class Scale extends Control {\n private mScale: HTMLElement;\n private iScale: HTMLElement;\n constructor(cfg?: Partial<IScaleControlOption>) {\n super(cfg);\n bindAll(['update'], this);\n }\n\n public getDefault() {\n return {\n position: PositionType.BOTTOMLEFT,\n maxWidth: 100,\n metric: true,\n updateWhenIdle: false,\n imperial: false,\n name: 'scale',\n };\n }\n\n public onAdd() {\n const className = 'l7-control-scale';\n const container = DOM.create('div', className);\n this.addScales(className + '-line', container);\n const { updateWhenIdle } = this.controlOption;\n // TODO: 高德地图和MapBox地图事件不一致问题\n // 高德zoomchange\n this.mapsService.on(updateWhenIdle ? 'moveend' : 'mapmove', this.update);\n this.mapsService.on(updateWhenIdle ? 'zoomend' : 'zoomchange', this.update);\n this.update();\n\n return container;\n }\n public onRemove() {\n const { updateWhenIdle } = this.controlOption;\n this.mapsService.off(\n updateWhenIdle ? 'zoomend' : 'zoomchange',\n this.update,\n );\n this.mapsService.off(updateWhenIdle ? 'moveend' : 'mapmove', this.update);\n }\n public update() {\n const mapsService = this.mapsService;\n const { maxWidth } = this.controlOption;\n const y = mapsService.getSize()[1] / 2;\n\n const p1 = mapsService.containerToLngLat([0, y]);\n const p2 = mapsService.containerToLngLat([maxWidth, y]);\n const maxMeters = lnglatDistance([p1.lng, p1.lat], [p2.lng, p2.lat]);\n this.updateScales(maxMeters);\n }\n public updateScales(maxMeters: number) {\n const { metric, imperial } = this.controlOption;\n if (metric && maxMeters) {\n this.updateMetric(maxMeters);\n }\n if (imperial && maxMeters) {\n this.updateImperial(maxMeters);\n }\n }\n private updateMetric(maxMeters: number) {\n const meters = this.getRoundNum(maxMeters);\n const label = meters < 1000 ? meters + ' m' : meters / 1000 + ' km';\n this.updateScale(this.mScale, label, meters / maxMeters);\n }\n private updateImperial(maxMeters: number) {\n const maxFeet = maxMeters * 3.2808399;\n let maxMiles: number;\n let miles: number;\n let feet: number;\n\n if (maxFeet > 5280) {\n maxMiles = maxFeet / 5280;\n miles = this.getRoundNum(maxMiles);\n this.updateScale(this.iScale, miles + ' mi', miles / maxMiles);\n } else {\n feet = this.getRoundNum(maxFeet);\n this.updateScale(this.iScale, feet + ' ft', feet / maxFeet);\n }\n }\n private updateScale(scale: HTMLElement, text: string, ratio: number) {\n const { maxWidth } = this.controlOption;\n scale.style.width = Math.round(maxWidth * ratio) + 'px';\n scale.innerHTML = text;\n }\n private getRoundNum(num: number) {\n const pow10 = Math.pow(10, (Math.floor(num) + '').length - 1);\n let d = num / pow10;\n\n d = d >= 10 ? 10 : d >= 5 ? 5 : d >= 3 ? 3 : d >= 2 ? 2 : 1;\n\n return pow10 * d;\n }\n private addScales(className: string, container: HTMLElement) {\n const { metric, imperial } = this.controlOption;\n if (metric) {\n this.mScale = DOM.create('div', className, container);\n }\n if (imperial) {\n this.iScale = DOM.create('div', className, container);\n }\n }\n}\n"],"file":"scale.js"}
|
package/lib/control/zoom.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -27,6 +27,10 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
27
27
|
|
|
28
28
|
var _BaseControl = _interopRequireWildcard(require("./BaseControl"));
|
|
29
29
|
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
+
|
|
30
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
31
35
|
|
|
32
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
package/lib/control/zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/control/zoom.ts"],"names":["Zoom","cfg","position","PositionType","TOPLEFT","zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","name","zoomName","container","DOM","create","zoomInButton","createButton","controlOption","zoomIn","zoomOutButton","zoomOut","mapsService","on","updateDisabled","off","disabled","getZoom","getMaxZoom","getMinZoom","html","tile","className","fn","link","innerHTML","title","href","addEventListener","removeClass","addClass","Control"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA
|
|
1
|
+
{"version":3,"sources":["../../src/control/zoom.ts"],"names":["Zoom","cfg","position","PositionType","TOPLEFT","zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","name","zoomName","container","DOM","create","zoomInButton","createButton","controlOption","zoomIn","zoomOutButton","zoomOut","mapsService","on","updateDisabled","off","disabled","getZoom","getMaxZoom","getMinZoom","html","tile","className","fn","link","innerHTML","title","href","addEventListener","removeClass","addClass","Control"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;;;;;;;;;IAOqBA,I;;;;;AAKnB,gBAAYC,GAAZ,EAA+C;AAAA;;AAAA;AAC7C,8BAAMA,GAAN;AAD6C;AAAA;AAAA;AAE7C,0BAAQ,CAAC,gBAAD,EAAmB,QAAnB,EAA6B,SAA7B,CAAR;AAF6C;AAG9C;;;;WACD,sBAAoB;AAClB,aAAO;AACLC,QAAAA,QAAQ,EAAEC,0BAAaC,OADlB;AAELC,QAAAA,UAAU,EAAE,GAFP;AAGLC,QAAAA,WAAW,EAAE,SAHR;AAILC,QAAAA,WAAW,EAAE,UAJR;AAKLC,QAAAA,YAAY,EAAE,UALT;AAMLC,QAAAA,IAAI,EAAE;AAND,OAAP;AAQD;;;WAED,iBAA4B;AAC1B,UAAMC,QAAQ,GAAG,iBAAjB;;AACA,UAAMC,SAAS,G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E;AACA,aAAKP,WAAL,CAAiBD,OAAjB;AACD;AACF;;;WACD,sBACES,IADF,EAEEC,IAFF,EAGEC,SAHF,EAIEnB,SAJF,EAKEoB,EALF,EAME;AACA,UAAMC,IAAI,GAAGpB,aAAIC,MAAJ,CAAW,GAAX,EAAgBiB,SAAhB,EAA2BnB,SAA3B,CAAb;;AACAqB,MAAAA,IAAI,CAACC,SAAL,GAAiBL,IAAjB;AACAI,MAAAA,IAAI,CAACE,KAAL,GAAaL,IAAb;AACAG,MAAAA,IAAI,CAACG,IAAL,GAAY,oBAAZ;AACAH,MAAAA,IAAI,CAACI,gBAAL,CAAsB,OAAtB,EAA+BL,EAA/B;AACA,aAAOC,IAAP;AACD;;;WACD,0BAAyB;AACvB,UAAMZ,WAAW,GAAG,KAAKA,WAAzB;AACA,UAAMU,SAAS,GAAG,aAAlB;;AACAlB,mBAAIyB,WAAJ,CAAgB,KAAKvB,YAArB,EAAmCgB,SAAnC;;AACAlB,mBAAIyB,WAAJ,CAAgB,KAAKnB,aAArB,EAAoCY,SAApC;;AACA,UAAI,KAAKN,QAAL,IAAiBJ,WAAW,CAACK,OAAZ,MAAyBL,WAAW,CAACO,UAAZ,EAA9C,EAAwE;AACtEf,qBAAI0B,QAAJ,CAAa,KAAKpB,aAAlB,EAAiCY,SAAjC;AACD;;AACD,UAAI,KAAKN,QAAL,IAAiBJ,WAAW,CAACK,OAAZ,MAAyBL,WAAW,CAACM,UAAZ,EAA9C,EAAwE;AACtEd,qBAAI0B,QAAJ,CAAa,KAAKxB,YAAlB,EAAgCgB,SAAhC;AACD;AACF;;;EAtG+BS,oB","sourcesContent":["import { IControlOption } from '@antv/l7-core';\nimport { bindAll, DOM } from '@antv/l7-utils';\nimport Control, { PositionType } from './BaseControl';\nexport interface IZoomControlOption extends IControlOption {\n zoomInText: string;\n zoomInTitle: string;\n zoomOutText: string;\n zoomOutTitle: string;\n}\nexport default class Zoom extends Control {\n private disabled: boolean;\n private zoomInButton: HTMLElement;\n private zoomOutButton: HTMLElement;\n\n constructor(cfg?: Partial<IZoomControlOption>) {\n super(cfg);\n bindAll(['updateDisabled', 'zoomIn', 'zoomOut'], this);\n }\n public getDefault() {\n return {\n position: PositionType.TOPLEFT,\n zoomInText: '+',\n zoomInTitle: 'Zoom in',\n zoomOutText: '−',\n zoomOutTitle: 'Zoom out',\n name: 'zoom',\n };\n }\n\n public onAdd(): HTMLElement {\n const zoomName = 'l7-control-zoom';\n const container = DOM.create('div', zoomName + ' l7-bar');\n\n this.zoomInButton = this.createButton(\n this.controlOption.zoomInText,\n this.controlOption.zoomInTitle,\n zoomName + '-in',\n container,\n this.zoomIn,\n );\n this.zoomOutButton = this.createButton(\n this.controlOption.zoomOutText,\n this.controlOption.zoomOutTitle,\n zoomName + '-out',\n container,\n this.zoomOut,\n );\n this.mapsService.on('zoomend', this.updateDisabled);\n this.mapsService.on('zoomchange', this.updateDisabled);\n this.updateDisabled();\n return container;\n }\n\n public onRemove() {\n this.mapsService.off('zoomend', this.updateDisabled);\n this.mapsService.off('zoomchange', this.updateDisabled);\n }\n\n public disable() {\n this.disabled = true;\n this.updateDisabled();\n return this;\n }\n\n public enable() {\n this.disabled = false;\n this.updateDisabled();\n return this;\n }\n\n private zoomIn() {\n if (\n !this.disabled &&\n this.mapsService.getZoom() < this.mapsService.getMaxZoom()\n ) {\n this.mapsService.zoomIn();\n }\n }\n private zoomOut() {\n if (\n !this.disabled &&\n this.mapsService.getZoom() > this.mapsService.getMinZoom()\n ) {\n this.mapsService.zoomOut();\n }\n }\n private createButton(\n html: string,\n tile: string,\n className: string,\n container: HTMLElement,\n fn: (...arg: any[]) => any,\n ) {\n const link = DOM.create('a', className, container) as HTMLLinkElement;\n link.innerHTML = html;\n link.title = tile;\n link.href = 'javascript:void(0)';\n link.addEventListener('click', fn);\n return link;\n }\n private updateDisabled() {\n const mapsService = this.mapsService;\n const className = 'l7-disabled';\n DOM.removeClass(this.zoomInButton, className);\n DOM.removeClass(this.zoomOutButton, className);\n if (this.disabled || mapsService.getZoom() <= mapsService.getMinZoom()) {\n DOM.addClass(this.zoomOutButton, className);\n }\n if (this.disabled || mapsService.getZoom() >= mapsService.getMaxZoom()) {\n DOM.addClass(this.zoomInButton, className);\n }\n }\n}\n"],"file":"zoom.js"}
|
package/lib/index.js
CHANGED
|
@@ -23,34 +23,34 @@ Object.defineProperty(exports, "Logo", {
|
|
|
23
23
|
return _logo.default;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "Marker", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return
|
|
29
|
+
return _marker.default;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "MarkerLayer", {
|
|
33
33
|
enumerable: true,
|
|
34
34
|
get: function get() {
|
|
35
|
-
return
|
|
35
|
+
return _markerlayer.default;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
38
|
+
Object.defineProperty(exports, "Popup", {
|
|
39
39
|
enumerable: true,
|
|
40
40
|
get: function get() {
|
|
41
|
-
return
|
|
41
|
+
return _popup.default;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "Scale", {
|
|
45
45
|
enumerable: true,
|
|
46
46
|
get: function get() {
|
|
47
|
-
return
|
|
47
|
+
return _scale.default;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
Object.defineProperty(exports, "
|
|
50
|
+
Object.defineProperty(exports, "Zoom", {
|
|
51
51
|
enumerable: true,
|
|
52
52
|
get: function get() {
|
|
53
|
-
return
|
|
53
|
+
return _zoom.default;
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
package/lib/marker.js
CHANGED
|
@@ -27,7 +27,7 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
27
27
|
|
|
28
28
|
var _eventemitter = require("eventemitter3");
|
|
29
29
|
|
|
30
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
30
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31
31
|
|
|
32
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
33
33
|
|
package/lib/markerlayer.js
CHANGED
|
@@ -33,7 +33,7 @@ var _supercluster = _interopRequireDefault(require("supercluster/dist/superclust
|
|
|
33
33
|
|
|
34
34
|
var _marker = _interopRequireDefault(require("./marker"));
|
|
35
35
|
|
|
36
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
36
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
37
37
|
|
|
38
38
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
39
39
|
|
package/lib/popup.js
CHANGED
|
@@ -27,7 +27,7 @@ var _l7Utils = require("@antv/l7-utils");
|
|
|
27
27
|
|
|
28
28
|
var _eventemitter = require("eventemitter3");
|
|
29
29
|
|
|
30
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
30
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31
31
|
|
|
32
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
33
33
|
|
package/lib/utils/anchor.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.anchorType = exports.anchorTranslate = void 0;
|
|
6
7
|
exports.applyAnchorClass = applyAnchorClass;
|
|
7
|
-
exports.anchorTranslate = exports.anchorType = void 0;
|
|
8
8
|
var anchorType;
|
|
9
9
|
exports.anchorType = anchorType;
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-component",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.37-mini11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"author": "lzxue",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@antv/l7-core": "^2.5.
|
|
29
|
-
"@antv/l7-utils": "^2.5.
|
|
28
|
+
"@antv/l7-core": "^2.5.37-mini11",
|
|
29
|
+
"@antv/l7-utils": "^2.5.37-mini11",
|
|
30
30
|
"@babel/runtime": "^7.7.7",
|
|
31
31
|
"eventemitter3": "^4.0.0",
|
|
32
32
|
"inversify": "^5.0.1",
|
|
33
33
|
"reflect-metadata": "^0.1.13"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "684ba4eb806a798713496d3fc0b4d1e17517dc31",
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [2.1.12](https://github.com/antvis/L7/compare/v2.1.11...v2.1.12) (2020-04-10)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [2.1.11](https://github.com/antvis/L7/compare/v2.1.10...v2.1.11) (2020-04-07)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [2.1.8](https://github.com/antvis/L7/compare/v2.1.7...v2.1.8) (2020-03-26)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [2.1.7](https://github.com/antvis/L7/compare/v2.1.6...v2.1.7) (2020-03-26)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [2.1.5](https://github.com/antvis/L7/compare/v2.1.4...v2.1.5) (2020-03-20)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## [2.1.3](https://github.com/antvis/L7/compare/v2.0.36...v2.1.3) (2020-03-17)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
### Bug Fixes
|
|
50
|
-
|
|
51
|
-
* mapbox 光照问题 ([20d2a6d](https://github.com/antvis/L7/commit/20d2a6d8b803ca3ad87cc1ef69a59d1e3d348cef))
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [2.1.2](https://github.com/antvis/L7/compare/v2.0.36...v2.1.2) (2020-03-15)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* mapbox 光照问题 ([20d2a6d](https://github.com/antvis/L7/commit/20d2a6d8b803ca3ad87cc1ef69a59d1e3d348cef))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## [2.1.1](https://github.com/antvis/L7/compare/v2.0.36...v2.1.1) (2020-03-15)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Bug Fixes
|
|
72
|
-
|
|
73
|
-
* mapbox 光照问题 ([20d2a6d](https://github.com/antvis/L7/commit/20d2a6d8b803ca3ad87cc1ef69a59d1e3d348cef))
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## [2.0.34](https://github.com/antvis/L7/compare/v2.0.32...v2.0.34) (2020-03-02)
|
|
80
|
-
|
|
81
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
# [2.0.0-beta.28](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.28) (2020-01-02)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
### Bug Fixes
|
|
91
|
-
|
|
92
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Features
|
|
96
|
-
|
|
97
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
# [2.0.0-beta.27](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.27) (2020-01-01)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### Bug Fixes
|
|
107
|
-
|
|
108
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### Features
|
|
112
|
-
|
|
113
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
# [2.0.0-alpha.28](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-alpha.28) (2020-01-01)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### Bug Fixes
|
|
123
|
-
|
|
124
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
### Features
|
|
128
|
-
|
|
129
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
# [2.0.0-alpha.27](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-alpha.27) (2019-12-31)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
### Bug Fixes
|
|
139
|
-
|
|
140
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Features
|
|
144
|
-
|
|
145
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
# [2.0.0-beta.26](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.26) (2019-12-30)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
### Bug Fixes
|
|
155
|
-
|
|
156
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### Features
|
|
160
|
-
|
|
161
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
# [2.0.0-beta.25](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.25) (2019-12-27)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Bug Fixes
|
|
171
|
-
|
|
172
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Features
|
|
176
|
-
|
|
177
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
# [2.0.0-beta.24](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.24) (2019-12-23)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
### Bug Fixes
|
|
187
|
-
|
|
188
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
### Features
|
|
192
|
-
|
|
193
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
# [2.0.0-beta.23](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.23) (2019-12-23)
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
### Bug Fixes
|
|
203
|
-
|
|
204
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
### Features
|
|
208
|
-
|
|
209
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
# [2.0.0-beta.21](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.21) (2019-12-18)
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
### Bug Fixes
|
|
219
|
-
|
|
220
|
-
* merge master fix conflict ([652e5d1](https://github.com/antvis/L7/commit/652e5d1cafc350fe98d569f32bf6c592c6a79b89))
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### Features
|
|
224
|
-
|
|
225
|
-
* **layer:** add setSelect setActive 方法 & refactor color util ([5c27d66](https://github.com/antvis/L7/commit/5c27d66a6401192f5e0406a2f4c3e0983dc2867c))
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
# [2.0.0-beta.20](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.20) (2019-12-12)
|
|
232
|
-
|
|
233
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
# [2.0.0-beta.19](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.19) (2019-12-08)
|
|
240
|
-
|
|
241
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
# [2.0.0-beta.18](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.18) (2019-12-08)
|
|
248
|
-
|
|
249
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
# [2.0.0-beta.17](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.17) (2019-12-08)
|
|
256
|
-
|
|
257
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
# [2.0.0-beta.16](https://github.com/antvis/L7/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2019-11-29)
|
|
264
|
-
|
|
265
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
# [2.0.0-beta.15](https://github.com/antvis/L7/compare/v2.0.0-beta.14...v2.0.0-beta.15) (2019-11-29)
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
### Bug Fixes
|
|
275
|
-
|
|
276
|
-
* **control:** lint error ([c863d7c](https://github.com/antvis/L7/commit/c863d7c8d15e560e3dfaf39d0ea3fac3242d776a))
|
|
277
|
-
* **map:** temporarily closed amap offset coordinate ([9a20f64](https://github.com/antvis/L7/commit/9a20f6480321c9297ff27fe4cfe6af9032fcb969))
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
# [2.0.0-beta.13](https://github.com/antvis/L7/compare/v2.0.0-beta.12...v2.0.0-beta.13) (2019-11-28)
|
|
284
|
-
|
|
285
|
-
**Note:** Version bump only for package @antv/l7-component
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
# [2.0.0-beta.12](https://github.com/antvis/L7/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2019-11-28)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### Bug Fixes
|
|
295
|
-
|
|
296
|
-
* **component:** fix marker ([14d4818](https://github.com/antvis/L7/commit/14d48184a1579241b077110ed51a8358de25e010))
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
# 2.0.0-beta.11 (2019-11-28)
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Bug Fixes
|
|
306
|
-
|
|
307
|
-
* **doc:** file name lowercase ([3cbdc9c](https://github.com/antvis/L7/commit/3cbdc9c7f1d9be34e9c917f05531323946993eb4))
|
|
308
|
-
* **fix confilict:** conflict ([8a09ae2](https://github.com/antvis/L7/commit/8a09ae24bef7ba845e5b16759b3ecac210e472c5))
|
|
309
|
-
* **fix css:** fix css png ([f7e5376](https://github.com/antvis/L7/commit/f7e5376b7d6c64b2b078dca8f2a230f4fce14c68))
|
|
310
|
-
* **fix css:** fix css png ([da604e2](https://github.com/antvis/L7/commit/da604e266f36b70fcc7faa23fa7fe3359d3a1318))
|
|
311
|
-
* **layerservice:** fix init bugs in layer service ([8cbbf7b](https://github.com/antvis/L7/commit/8cbbf7b28d63f4df16f061a4ae21726f243e7108))
|
|
312
|
-
* **layerservice:** fix init bugs in layer service ([8844243](https://github.com/antvis/L7/commit/8844243050f619b28043c4e9ed1942fe172f561e))
|
|
313
|
-
* **merge:** fix conflict ([07e8505](https://github.com/antvis/L7/commit/07e85059ebd40506623253feb624ee3083f393ae))
|
|
314
|
-
* **merge branch:** fix confilt ([e7a46a6](https://github.com/antvis/L7/commit/e7a46a691d9e67a03d733fd565c6b152ee8715b6))
|
|
315
|
-
* **rm cache:** rm cache ([51ea07e](https://github.com/antvis/L7/commit/51ea07ea664229f775b7c191cfde68299cc8c2d5))
|
|
316
|
-
* **site:** megre conflict ([1b5619b](https://github.com/antvis/L7/commit/1b5619b3945e97919e0c616a48ba2265a2a95c22))
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### Features
|
|
320
|
-
|
|
321
|
-
* **chart:** add chart demo ([2a19b07](https://github.com/antvis/L7/commit/2a19b07c1bca7dfbf191618f15ab06a18c262148))
|
|
322
|
-
* **component:** add layer control ([7f4646e](https://github.com/antvis/L7/commit/7f4646efd3b0004fde4e9f6860e618c7668af1a7))
|
|
323
|
-
* **component:** add scale ,zoom, popup, marker map method ([a6baef4](https://github.com/antvis/L7/commit/a6baef4954c11d9c6582c27de2ba667f18538460))
|
|
324
|
-
* **demo:** add point chart demo ([8c2e4a8](https://github.com/antvis/L7/commit/8c2e4a82bf7a49b29004d5e261d8e9c46cd0bd9d))
|
|
325
|
-
* **map:** adjust Scene API, use @antv/l7-maps instead ([77b8f21](https://github.com/antvis/L7/commit/77b8f21b0bcf8b06e88d8e0bef213935bf32b957)), closes [#86](https://github.com/antvis/L7/issues/86)
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017 Alipay.inc
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|