I’ve tried: <%= gmaps({“map_options” => @map_options,”markers” => { “data” => @markers}, “libraries” => “drawing”, “circles” => { “data” => ‘[
{“lng”: -87.6355, “lat”: 41.8886, “radius”: 600, “strokeColor”: “#FF0000”}
]’
}}) %>
@map_options is just an instance variable where I pass a lat/lng from user’s location. everything else works fine but can’t load the drawing tools.
Two issues here:
librariesshould be in themaps_optionshashit’s value should be an
ArraySource code.