Ajax-based Google Map Not Updating

I am working on building a Google Map application that lets a user
search a database by clicking on several check boxes to filter
results. I have attached an observe_form call that sends the selected
checkboxes to my controller. The controller then searches the
database and re-renders the Google map (rendered as a partial). The
map is rendered and I call the initialize method on the map again.

The issue I am having is that when I perform the new search and update
the map, it update the points that are on the map.

Any help is appreciated.

The search results code and RJS is here:

@tutors = Tutor.find(:all, :conditions => ["work_lat != '' and

work_long != ‘’ and id in (select tutor_id from subjects_tutors where
subject_id in (#{@query}))"])

respond_to do |format|
format.js {
render :update do |page|
  page.replace 'mapresults', :partial => "map", :locals =>

{:tutors => @tutors}
page.call “initialize”
end
}
end

Here’s the map rendering code:

Justin W.
Owner, Second Gear
http://secondgearllc.com/