Activate layer when clicked on zoomToLayerExtent. Minor refactorings
Activate layer when clicked on zoomToLayerExtent. Minor refactorings

omniscale/gbi-client,omniscale/gbi-client,omniscale/gbi-client,omniscale/gbi-client