我正在使用 rails 3.2.12 中的 gem "gmaps4rails",我在 map_options 中设置了 detect_location = "true",但它没有显示任何带有用户当前位置的标记。
这是代码:
<%= 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"} }
如何使用标记显示用户当前位置。
请帮我。提前致谢