UNPKG

openlayers

Version:

Build tools and sources for developing OpenLayers based mapping applications

24 lines (21 loc) 475 B
goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.layer.Tile'); goog.require('ol.source.BingMaps'); var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.BingMaps({ key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5', imagerySet: 'Aerial' }) }) ], view: new ol.View({ center: [-13553864, 5918250], zoom: 11, minZoom: 9, maxZoom: 13 }) });