if (browseActive) {
browseActive = false;
- if (browseDataLayer) {
- browseDataLayer.destroy();
- browseDataLayer = null;
- }
-
if (browseSelectControl) {
browseSelectControl.destroy();
browseSelectControl = null;
browseActiveFeature = null;
}
+ if (browseDataLayer) {
+ browseDataLayer.destroy();
+ browseDataLayer = null;
+ }
+
map.dataLayer.setVisibility(false);
map.events.unregister("moveend", map, showData);
}