apneadiving/Google-Maps-for-Rails — Issue #128: replaceMarkers
Author: solasdev
Created: 2011-12-09 17:04:55+00:00
State: open

Am I missing something obvious? Map keeps loading @oldjson which I set in the controller and won't replace with new.

<% @json = Map.find_by_id('39').to_gmaps4rails %>

<%= gmaps("markers" => {"data" => @oldjson, "options" => { "draggable" => true } } ) %>

Thanks.