@antv/l7-map 2.14.1 → 2.14.3
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/es/camera.js +4 -4
- package/lib/camera.js +4 -4
- package/package.json +3 -3
package/es/camera.js
CHANGED
|
@@ -225,7 +225,7 @@ var Camera = /*#__PURE__*/function (_EventEmitter) {
|
|
|
225
225
|
var bearingChanged = false;
|
|
226
226
|
var pitchChanged = false;
|
|
227
227
|
|
|
228
|
-
if (options.zoom && tr.zoom !== +options.zoom) {
|
|
228
|
+
if (options.zoom !== undefined && tr.zoom !== +options.zoom) {
|
|
229
229
|
zoomChanged = true;
|
|
230
230
|
tr.zoom = +options.zoom;
|
|
231
231
|
}
|
|
@@ -234,17 +234,17 @@ var Camera = /*#__PURE__*/function (_EventEmitter) {
|
|
|
234
234
|
tr.center = LngLat.convert(options.center);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
if (options.bearing && tr.bearing !== +options.bearing) {
|
|
237
|
+
if (options.bearing !== undefined && tr.bearing !== +options.bearing) {
|
|
238
238
|
bearingChanged = true;
|
|
239
239
|
tr.bearing = +options.bearing;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
if (options.pitch && tr.pitch !== +options.pitch) {
|
|
242
|
+
if (options.pitch !== undefined && tr.pitch !== +options.pitch) {
|
|
243
243
|
pitchChanged = true;
|
|
244
244
|
tr.pitch = +options.pitch;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
if (options.padding
|
|
247
|
+
if (options.padding !== undefined && !tr.isPaddingEqual(options.padding)) {
|
|
248
248
|
tr.padding = options.padding;
|
|
249
249
|
}
|
|
250
250
|
|
package/lib/camera.js
CHANGED
|
@@ -243,7 +243,7 @@ var Camera = /*#__PURE__*/function (_EventEmitter) {
|
|
|
243
243
|
var bearingChanged = false;
|
|
244
244
|
var pitchChanged = false;
|
|
245
245
|
|
|
246
|
-
if (options.zoom && tr.zoom !== +options.zoom) {
|
|
246
|
+
if (options.zoom !== undefined && tr.zoom !== +options.zoom) {
|
|
247
247
|
zoomChanged = true;
|
|
248
248
|
tr.zoom = +options.zoom;
|
|
249
249
|
}
|
|
@@ -252,17 +252,17 @@ var Camera = /*#__PURE__*/function (_EventEmitter) {
|
|
|
252
252
|
tr.center = _lng_lat.default.convert(options.center);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
if (options.bearing && tr.bearing !== +options.bearing) {
|
|
255
|
+
if (options.bearing !== undefined && tr.bearing !== +options.bearing) {
|
|
256
256
|
bearingChanged = true;
|
|
257
257
|
tr.bearing = +options.bearing;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
if (options.pitch && tr.pitch !== +options.pitch) {
|
|
260
|
+
if (options.pitch !== undefined && tr.pitch !== +options.pitch) {
|
|
261
261
|
pitchChanged = true;
|
|
262
262
|
tr.pitch = +options.pitch;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
if (options.padding
|
|
265
|
+
if (options.padding !== undefined && !tr.isPaddingEqual(options.padding)) {
|
|
266
266
|
tr.padding = options.padding;
|
|
267
267
|
}
|
|
268
268
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-map",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.3",
|
|
4
4
|
"description": "l7 map",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "thinkinggis <lzx199065@gmail.com>",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/antvis/L7#readme",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@antv/l7-utils": "2.14.
|
|
42
|
+
"@antv/l7-utils": "2.14.3",
|
|
43
43
|
"@babel/runtime": "^7.7.7",
|
|
44
44
|
"@mapbox/point-geometry": "^0.1.0",
|
|
45
45
|
"@mapbox/unitbezier": "^0.0.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"gl-matrix": "^3.1.0",
|
|
48
48
|
"lodash": "^4.17.15"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "1f2a9a2a15b32d0ec72f29d20fc1ac6a622e8c0d"
|
|
51
51
|
}
|