Transformed
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
goog.require('ol.Geolocation');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.source.BingMaps');
|
||||
import _ol_Geolocation_ from '../src/ol/Geolocation.js';
|
||||
import _ol_Map_ from '../src/ol/Map.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
|
||||
import _ol_source_BingMaps_ from '../src/ol/source/BingMaps.js';
|
||||
|
||||
|
||||
var view = new ol.View({
|
||||
var view = new _ol_View_({
|
||||
center: [0, 0],
|
||||
zoom: 2
|
||||
});
|
||||
|
||||
var map = new ol.Map({
|
||||
var map = new _ol_Map_({
|
||||
layers: [
|
||||
new ol.layer.Tile({
|
||||
source: new ol.source.BingMaps({
|
||||
new _ol_layer_Tile_({
|
||||
source: new _ol_source_BingMaps_({
|
||||
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
|
||||
imagerySet: 'Road'
|
||||
})
|
||||
@@ -23,7 +23,7 @@ var map = new ol.Map({
|
||||
view: view
|
||||
});
|
||||
|
||||
var geolocation = new ol.Geolocation({
|
||||
var geolocation = new _ol_Geolocation_({
|
||||
projection: view.getProjection(),
|
||||
tracking: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user