0
我正在使用rails 3.2.12中的gem「gmaps4rails」,我在map_options中設置了detect_location =「true」,但它沒有在用戶當前位置顯示任何標記。gmaps4rails detect_location沒有顯示標記
這裏是代碼:
<%= gmaps("map_options" => {"auto_adjust" => true, "detect_location" => true, "center_on_user" => true, "auto_zoom" => false, "radius" => 2500},
"markers" => {"data" => @json, "options" => {"list_container" => "markers_list","randomize" => true,"max_random_distance" => 10000, "draggable" => true, "dblclick" => "latLng"} }
如何使用標記爲用戶當前的位置顯示。
請幫幫我。 由於提前