forked from openlayers/openlayers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.js
35 lines (29 loc) · 1.05 KB
/
map.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
goog.require('ol.Map');
/**
* @constructor
* @extends {ol.Map}
* @param {Element} container Container.
* @param {olx.MapOptionsExtern} mapOptionsExtern Map options literal.
*/
ol.MapExport = function(container, mapOptionsExtern) {
goog.base(this, container, {
center: mapOptionsExtern.center,
doubleClickZoom: mapOptionsExtern.doubleClickZoom,
dragPan: mapOptionsExtern.dragPan,
interactions: mapOptionsExtern.interactions,
keyboard: mapOptionsExtern.keyboard,
keyboardPanOffset: mapOptionsExtern.keyboardPanOffset,
layers: mapOptionsExtern.layers,
mouseWheelZoom: mapOptionsExtern.mouseWheelZoom,
projection: mapOptionsExtern.projection,
renderer: mapOptionsExtern.renderer,
renderers: mapOptionsExtern.renderers,
resolution: mapOptionsExtern.resolution,
rotate: mapOptionsExtern.rotate,
shiftDragZoom: mapOptionsExtern.shiftDragZoom,
userProjection: mapOptionsExtern.userProjection,
zoom: mapOptionsExtern.zoom
});
};
goog.inherits(ol.MapExport, ol.Map);
goog.exportSymbol('ol.Map', ol.MapExport);