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 committed 2015-09-16 17:28:16 +09:00
1 parent e88f06b70f
commit ea8ad4fc16
2 files changed
+16 -5

No files matched your search

+2 -1
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_;