app/controllers/maps_controller.rb
# Returns the OpenLayers version of the masking file.
#
Returns the OpenLayers version of the masking file.
Returns the OpenLayers version of the masking file .
def masking
    if @map.masking && @map.masking.has_or_create_original_ol
      render :json => @map.masking.original_ol
    else
      render :json => {:stat => "not found", :items =>[]}.to_json, :status => 404
    end
  end
def masking if @map . masking && @map . masking . has_or_create_original_ol render :json => @map . masking . original_ol else render :json => { :stat => "not found" , :items => [ ] } . to_json , :status => 404 end end
Returns the OpenLayers version of the masking file.
Returns the OpenLayers version of the masking file .