end
def edit
- editor = params[:editor] || @user.preferred_editor || DEFAULT_EDITOR
+ editor = preferred_editor
if editor == "remote"
render :action => :index
bbox = Way.find(params[:way]).bbox.to_unscaled
@lat = bbox.centre_lat
@lon = bbox.centre_lon
+ elsif params[:note]
+ note = Note.find(params[:note])
+ @lat = note.lat
+ @lon = note.lon
elsif params[:gpx]
trace = Trace.visible_to(@user).find(params[:gpx])
@lat = trace.latitude