Pointable
Simple google maps helpers to draw map with points.
Installation
Add this line to your application's Gemfile:
gem 'pointable'
Include javascript google maps api by adding line to layout
<%= javascript_include_tag 'https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true' %>
Usage
Add one of map helpers and pass id to customize styles of maps.
By Place:
<%= place_map place: 'New York', id: 'first-example-id' %>
By Coordinates:
<%= coordinates_map latitude: -25.363882, longitude: 131.044922, id: 'second-example-id' %>
Customize styles:
#first-example-id {
width: 1000px;
height: 300px;
}
Contributing
- Fork it ( https://github.com/[my-github-username]/pointable/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request