UNPKG

492 BJavaScriptView Raw
1goog.require('ol.Map');
2goog.require('ol.View');
3goog.require('ol.layer.Tile');
4goog.require('ol.source.OSM');
5
6var map = new ol.Map({
7 layers: [
8 new ol.layer.Tile({
9 source: new ol.source.OSM()
10 })
11 ],
12 target: 'map',
13 view: new ol.View({
14 center: [-8730000, 5930000],
15 rotation: Math.PI / 5,
16 zoom: 8
17 })
18});
19
20
21$('.ol-zoom-in, .ol-zoom-out').tooltip({
22 placement: 'right'
23});
24$('.ol-rotate-reset, .ol-attribution button[title]').tooltip({
25 placement: 'left'
26});