Skip to content

Commit

Permalink
fix: restore village name
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Apr 14, 2021
1 parent c5998f7 commit 546b5e0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/models/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ export default class Map{

async loadGoogleSatellite(){
log.warn("load google satellite map");
this.layerGoogle = this.L.gridLayer.googleMutant({
maxZoom: this.maxZoom,
type: 'satellite'
});
this.layerGoogle = this.L.tileLayer(
'http://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}',{
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']
});
this.layerGoogle.addTo(this.map);
//wait loaded
await new Promise((res, _rej) => {
this.layerGoogle.once("load", async () => {
log.warn("google layer loaded");
Expand Down

0 comments on commit 546b5e0

Please sign in to comment.