Created
May 12, 2020 13:12
-
-
Save FrankyBoy/f5cbbd1ef5a697820832d252f7d9dc3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
layer = await this.getWmtsLayer(); // some TileLayer from a WMTS source | |
google = new GoogleLayer({mapTypeId: "terrain"}); | |
this.map = new Map({ | |
interactions: defaults({constrainResolution: true}), | |
target: "map", | |
layers: [google, layer], | |
view: new View({ | |
center: this.project_info.center, | |
zoom: 14 | |
}) | |
}); | |
let olGM = new OLGoogleMaps({ | |
map: this.map, | |
watch: { | |
tile: false | |
} | |
}); | |
olGM.activate(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment