Skip to content

Commit

Permalink
feat: control
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Apr 9, 2021
1 parent 50ae881 commit 5f4979e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/models/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,16 @@ export default class Map{
const mapOptions = {
minZoom: this.minZoom,
center: this.initialCenter,
zoomControl: false,
}
this.map = this.L.map(domElement, mapOptions);

//control
this.control = this.L.control.zoom({
position: 'bottomright'
});
this.control.addTo(this.map);


//google satellite map
this.layerGoogle = this.L.gridLayer.googleMutant({
Expand Down

0 comments on commit 5f4979e

Please sign in to comment.