Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Map marker icons of various forms and colors for Rails 3
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
vendor/assets
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
map-marker-icons.gemspec

README.rdoc

Map marker icons

From code.google.com/p/google-maps-icons/

CSS Sprites generated via spritegen.website-performance.org/

Enjoy!

Notes:

Due to file size limitation of the spritegen service, I had to split up the icons into two separate sprite pics.

One option is to use imagemagick or similar to stick the two images together or use some other service to generate the sprites.

www.imagemagick.org/script/convert.php

Another option would be to split it up into multiple icons based on icon category.

The Numeric CSS sprites are not yet complete. Please help complete the remainding colors!

Install

Setup in your application stylesheet manifest file, fx assets/stylesheets/application.css

Here using all the basic marker icons and the green numeric markers

/*

*= require map-marker-icons/icons
*= require map-marker-icons/icons2 
*= require map-marker-icons/color/green

*/

The gem includes some View helper methods also (example in HAML)

map_markers do

= map_marker_list :laboratory => 'Lab', :library => 'The Library'

Note: The view helpers are primitive and could/should be improved!

Contributing to map-marker-icons

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.

  • Fork the project.

  • Start a feature/bugfix branch.

  • Commit and push until you are happy with your contribution.

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright © 2012 Kristian Mandrup. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.