       @miniMap.addLayer @minifog
 
   onMapChange: (e) =>
+    # console.log "map change"
     # move flags
     for flag, contents of @flags
       latlng = contents.circle.getLatLng()

        # things are slightly different for editable polygon drawing
        @makeEditablePolygon()
      # center on the polygon
      bounds = @geo.getBounds().pad(.1)
      @map.fitBounds( bounds )
      # @map.setZoom( @map.getZoom()-1 ) if @options.tutorialOn
      @resetButtons()

            , 1000
        )
    )
    @map.on('moveend dragend resize', @onMapChange)
    @addButtonListeners()
    # rest should be implemented in the inspector instance

