@@ -5912,9 +5912,6 @@ ol.source.GeoFeature.prototype.addFeatures = function (features) {
59125912 var event = {features: features};
59135913 this.dispatchEvent(new ol.Collection.Event('beforefeaturesadded', event));
59145914
5915- if (ret === false) {
5916- return;
5917- }
59185915 features = event.features;
59195916 var featuresFailAdded = [];
59205917 for (var i = 0, len = features.length; i < len; i++) {
@@ -16983,7 +16980,8 @@ SuperMap.Feature.Theme.Circle = SuperMap.Class(SuperMap.Feature.Theme.RankSymbol
1698316980 this.DVBUnitValue = sets.maxR / (codomain[1] - codomain[0]);
1698416981 }
1698516982 else {
16986- this.DVBUnitValue = sets.maxR / maxValue;
16983+ //this.DVBUnitValue = sets.maxR / maxValue;
16984+ this.DVBUnitValue = sets.maxR;
1698716985 }
1698816986
1698916987 var uv = this.DVBUnitValue;
@@ -38270,7 +38268,7 @@ module.exports = ol.Graphic;
3827038268
3827138269__webpack_require__(4);
3827238270
38273- MapvCanvasLayer = function (options) {
38271+ var MapvCanvasLayer = function (options) {
3827438272 this.options = options || {};
3827538273 this.paneName = this.options.paneName || 'mapPane';
3827638274 this.context = this.options.context || '2d';
@@ -38339,12 +38337,11 @@ try {
3833938337} catch (ex) {
3834038338 mapv = {};
3834138339}
38342- var BaiduMapLayer = mapv.baiduMapLayer || Function;
38340+ var BaiduMapLayer = mapv.baiduMapLayer.__proto__ || Function;
3834338341
3834438342class MapvLayer extends BaiduMapLayer {
3834538343
3834638344 constructor(map, dataSet, options) {
38347- MapvLayer.__proto__ = BaiduMapLayer.__proto__;
3834838345 super(map, dataSet, options);
3834938346 this.dataSet = dataSet;
3835038347 var self = this;
@@ -38387,32 +38384,12 @@ class MapvLayer extends BaiduMapLayer {
3838738384
3838838385 clickEvent(e) {
3838938386 var pixel = e.pixel;
38390- var context = this.canvasLayer.canvas.getContext(this.context);
38391- var data = this.dataSet.get();
38392- for (var i = 0; i < data.length; i++) {
38393- context.beginPath();
38394- pathSimple.draw(context, data[i], this.options);
38395- if (context.isPointInPath(pixel[0] * this.canvasLayer.devicePixelRatio, pixel[1] * this.canvasLayer.devicePixelRatio)) {
38396- this.options.methods.click(data[i], e);
38397- return;
38398- }
38399- }
38400- this.options.methods.click(null, e);
38387+ super.clickEvent({x: pixel[0], y: pixel[1]}, e);
3840138388 }
3840238389
3840338390 mousemoveEvent(e) {
3840438391 var pixel = e.pixel;
38405- var context = this.canvasLayer.canvas.getContext(this.context);
38406- var data = this.dataSet.get();
38407- for (var i = 0; i < data.length; i++) {
38408- context.beginPath();
38409- pathSimple.draw(context, data[i], this.options);
38410- if (context.isPointInPath(pixel[0] * this.canvasLayer.devicePixelRatio, pixel[1] * this.canvasLayer.devicePixelRatio)) {
38411- this.options.methods.mousemove(data[i], e);
38412- return;
38413- }
38414- }
38415- this.options.methods.mousemove(null, e);
38392+ super.mousemoveEvent({x: pixel[0], y: pixel[1]}, e);
3841638393 }
3841738394
3841838395 bindEvent() {
@@ -38490,11 +38467,9 @@ class MapvLayer extends BaiduMapLayer {
3849038467 };
3849138468 }
3849238469 var data = self.dataSet.get(dataGetOptions);
38493- if (self.options.unit === 'm' && self.options.size) {
38494- self.options._size = self.options.size / zoomUnit;
38495- } else {
38496- self.options._size = self.options.size;
38497- }
38470+
38471+ self.options._size = self.options.size;
38472+
3849838473 var pixel = map.getPixelFromCoordinate([0, 0]);
3849938474 this.drawContext(context, new mapv.DataSet(data), self.options, {x: pixel[0], y: pixel[1]});
3850038475 self.options.updateCallback && self.options.updateCallback(time);
0 commit comments