Initially expanded OverviewMap is blank
See original GitHub issueDescribe the bug Using openlayer 4.6.5
When the map is displayed with an initially expanded (collapsed: false) OverviewMap control added, the overview map is blank and is it only shows the layer after it is collapsed and then expanded again.
var overviewMap = new ol.control.OverviewMap({
collapsed: false.
layers: new ol.layer.Tile({
source: new ol.source.OSM()
}),
view: new ol.View(),
});
map.addControl(overviewMap);
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
OpenLayers v7.2.2 API - Class: Map
Works only if a projection is used that can be wrapped. Returns: The detected features or an empty array if none were found....
Read more >MapView | API Reference | ArcGIS Maps SDK for JavaScript ...
You can set the initial extent (or visible portion of the map) by using either a combination of center and scale or zoom,...
Read more >Node Group Maps - ITOM Practitioner Portal - Micro Focus
The Network Overview map in the Topology Maps workspace is similar to the Initial Discovery Progress map with the following exceptions:.
Read more >Global Enhanced GEOINT Delivery (G-EGD) User Guide
The overview map in the bottom right corner of the screen shows your current location on the globe at ... By default, thumbnails...
Read more >Maps JavaScript API Release Notes - Google Developers
Maps that are created within the page's initial viewport should see no ... Removes a non-allowed aria-expanded attribute from a default map type...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @ahocevar. As you can see in the previously linked code snippets, the command to set the map view extent (generated by the QGIS/qgis2web plugin) is in fact:
It works fine if it’s executed before the control is added to the map
but not if it’s executed after the control is added to the map
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.