Skip to content

Commit

Permalink
修改圆点聚合默认累加系数
Browse files Browse the repository at this point in the history
  • Loading branch information
fengluhome committed Jan 31, 2018
1 parent 703009e commit 594aa2a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/DotOverlay-polyme.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<script>
var map = new inMap.Map({
id: 'allmap',
skin: "Blueness",
center: [105.403119, 38.028658],
zoom: {
value: 5,
Expand Down Expand Up @@ -72,7 +73,7 @@
borderWidth: 1,
borderColor: "rgba(255,255,255,1)",
size: 4,
mergeCount: 2,
mergeCount: 1.5,
},
mouseOver: {
backgroundColor: 'rgba(200, 200, 200, 1)',
Expand Down
3 changes: 1 addition & 2 deletions src/config/parameterConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
normal: {
borderWidth: 0.1,
backgroundColor: 'rgba(200, 200, 200, 0.5)',
// borderColor: "rgba(0,0,0,1)",

mergeCount: 1.5,
label: {
show: false,
color: 'rgba(0,0,0,1)',
Expand Down
2 changes: 1 addition & 1 deletion src/overlay/CircuitOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import {
merge
} from "./../common/util"
} from './../common/util';
import {
CanvasOverlay
} from './base/CanvasOverlay';
Expand Down
2 changes: 1 addition & 1 deletion src/overlay/DotOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class DotOverlay extends Parameter {
for (let i = 0, len = pixels.length; i < len; i++) {
let item = pixels[i];
let pixel = item.pixel;
let style = this.setDrawStyle(item);
let style = this.polyme ? this.style.normal : this.setDrawStyle(item);
ctx.beginPath();
ctx.arc(pixel.x, pixel.y, style.size, 0, 2 * Math.PI, true);
ctx.lineWidth = style.borderWidth;
Expand Down
2 changes: 1 addition & 1 deletion src/overlay/MoveLineOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
} from './base/CanvasOverlay.js';
import {
merge
} from './../common/util'
} from './../common/util';
import config from './../config/moveLineConfig';
import BaseClass from './base/BaseClass';

Expand Down

0 comments on commit 594aa2a

Please sign in to comment.