Make ol.control.OverviewMap's view configurable

This is useful for creating an OverviewMap in a different projection than
EPSG:3857.
This commit is contained in:
Andreas Hocevar
2015-09-16 17:28:16 +09:00
parent e88f06b70f
commit ea8ad4fc16
2 changed files with 16 additions and 5 deletions

View File

@@ -99,7 +99,8 @@ ol.control.OverviewMap = function(opt_options) {
this.ovmap_ = new ol.Map({
controls: new ol.Collection(),
interactions: new ol.Collection(),
target: ovmapDiv
target: ovmapDiv,
view: options.view
});
var ovmap = this.ovmap_;