Skip to content

Instantly share code, notes, and snippets.

@FrankyBoy
Created May 12, 2020 13:12
Show Gist options
  • Save FrankyBoy/f5cbbd1ef5a697820832d252f7d9dc3f to your computer and use it in GitHub Desktop.
Save FrankyBoy/f5cbbd1ef5a697820832d252f7d9dc3f to your computer and use it in GitHub Desktop.
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