37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
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,
|
|
controls: mapOptionsExtern.controls,
|
|
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);
|