Only set map.srs with non-PBF sources

Why? GeoJSON and PBF layers both effectively have SRIDs of 4326, so they
should be interchangeable...
Remove debugging info