Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-390: Set the theme for the map to null. The style is already included in the HTML page. OpenLayers was automatically fetching the style again, overriding Worldview's styling

Mike McGann2051b0705fa6
diff --git a/src/js/Worldview/Map/ProductMap.js b/src/js/Worldview/Map/ProductMap.js
index b876966e7..8a7b4cd89 100644
--- a/src/js/Worldview/Map/ProductMap.js
+++ b/src/js/Worldview/Map/ProductMap.js
@@ -412,7 +412,10 @@ Worldview.Map.ProductMap = function(containerId, mapConfig, component) {
var config = $.extend(true, {}, spec);
// Zooming feature is not as fluid as advertised
config.zoomMethod = null;
-
+ // Don't let OpenLayers fetch the stylesheet -- that is included
+ // manually.
+ config.theme = null;
+
var controls = [];
$("<div></div>")