Skip to content

Commit

Permalink
fix: the aerial image would cover the cluster points
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed May 21, 2021
1 parent 2df2ade commit 45eda86
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/models/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ export default class Map{
maxZoom: this.maxZoom,
//attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, ' +
//'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
subdomains:['mt0','mt1','mt2','mt3']
subdomains:['mt0','mt1','mt2','mt3'],
zIndex: 2,
});
this.layerGoogle.addTo(this.map);
await new Promise((res, _rej) => {
Expand Down Expand Up @@ -283,7 +284,8 @@ export default class Map{
//close to avoid too many requests
updateWhenZooming: false,
//updateWhenIdle: true,
}
zIndex: 99999,
},
);
this.layerTile.addTo(this.map);

Expand All @@ -295,6 +297,7 @@ export default class Map{
//close to avoid too many requests
updateWhenZooming: false,
//updateWhenIdle: false,
zIndex: 9,
}
);
this.layerUtfGrid.on('click', (e) => {
Expand Down Expand Up @@ -815,7 +818,8 @@ export default class Map{
'',
{
maxZoom: this.maxZoom,
tileSize: this.L.point(256, 256)
tileSize: this.L.point(256, 256),
zIndex: 4,
}
).addTo(this.map);

Expand Down

0 comments on commit 45eda86

Please sign in to comment.