diff --git a/examples/mobile-wmts-vienna.js b/examples/mobile-wmts-vienna.js index ca28f1e1e9..183240a81a 100644 --- a/examples/mobile-wmts-vienna.js +++ b/examples/mobile-wmts-vienna.js @@ -88,7 +88,7 @@ var map; map.zoomToExtent(vector.getDataExtent()); } } - }) + }); zoomPanel.addControls([geolocate]); // Fallback layer when outside Vienna @@ -120,6 +120,8 @@ var map; map.addLayer(osm); map.setBaseLayer(osm); } + } else if (map.baseLayer === osm) { + map.removeLayer(osm); } } }