A plugin for COPRL that provides google maps.
The plugin is based on the standard image component and supports all the same attributes for styling.
Add this line to your application's Gemfile:
gem 'google_maps_presenter_plugin', github: 'coprl/google_maps_presenter_plugin', branch: :main, require: false
And then execute:
$ bundle
Example POM:
Coprl::Presenters.define(:google_maps) do
plugin :google_maps
page_title 'Maps'
subheading 'Static Maps'
address = '125 Park Street, Traverse City, MI'
google_map address: address, height: 300, width: 400 do
event :click do
loads "https://www.google.com/maps/place/#{address}"
end
end
end
Results in the following google map:
Bug reports and pull requests are welcome on GitHub at https://github.com/coprl/chart_presenter_plugin.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the COPRL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.