export function updateURL (store){
  return next => action => {
    // update the current url
    if(action.type !== 'SET_MAP'){
      return next(action)
    } else {
      const results = next(action)
      const state = store.getState()
      window.location.hash = `${state.map.center},${state.map.zoom}`
      if (state.map.active !== '') {
        //window.location.hash += `,${state.map.active}`
      }
      return results
    }
  }
}
@@ -106,17 +106,17 @@
 on.type 
-!
+=
 == 'SET_
@@ -123,48 +123,41 @@
 MAP'
-)%7B%0A      return next(action)%0A    %7D else 
+ %7C%7C action.type === 'SET_ACTIVE')
 %7B%0A  
@@ -297,20 +297,10 @@
 oom%7D
-%60%0A      if (
+$%7B
 stat
@@ -315,57 +315,13 @@
 tive
- !== '') %7B%0A        //window.location.hash += %60,$%7B
+?','+
 stat
@@ -332,16 +332,19 @@
 p.active
+:''
 %7D%60%0A     
@@ -344,17 +344,43 @@
 %60%0A      
-%7D
+return results%0A    %7D else %7B
 %0A      r
@@ -381,31 +381,37 @@
      return 
-results
+next(action)%0A
 %0A    %7D%0A  %7D%0A%7D

set active id