app/controllers/fixer_controller.rb
def randomMap(type="geometry")
    if params[:type] != nil
      type = params[:type]
    end

    @map = getMap(type)

    if type=="toponym"
      topo_features = toponyms_for_map(@map[:map][:id])

      @map[:toponyms] = topo_features

      consensus_features = toponym_consensus_as_features(@map[:map][:id])

      @map[:consensus] = consensus_features
    end

    respond_with( @map )
  end
# invoked from inspectors for 2..n map
invoked from inspectors for 2..n map
invoked from inspectors for 2 .. n map
def randomMap(type="geometry")
    if params[:type] != nil
      type = params[:type]
    end
    @map = getMap(type)
    if type=="toponym"
      topo_features = toponyms_for_map(@map[:map][:id])
      @map[:toponyms] = topo_features
      consensus_features = toponym_consensus_as_features(@map[:map][:id])
      @map[:consensus] = consensus_features
    end
    respond_with( @map )
  end
def randomMap ( type = "geometry" ) if params [ :type ] != nil type = params [ :type ] end @map = getMap ( type ) if type == "toponym" topo_features = toponyms_for_map ( @map [ :map ] [ :id ] ) @map [ :toponyms ] = topo_features consensus_features = toponym_consensus_as_features ( @map [ :map ] [ :id ] ) @map [ :consensus ] = consensus_features end respond_with ( @map ) end
invoked from inspectors for 2..n map
invoked from inspectors for 2 .. n map
type