sudo-gmapsmarker-rails
Wrapper for Google Maps Markers (google.maps.Marker) in sudo-js. Taken from Todd E's "backbone-gmapsmarker-rails"
Installation
Add this line to your application's Gemfile:
gem 'sudo-gmapsmarker-rails'
Then require it from a manifest file:
//= require sudo-gmapsmarker-rails
Usage
There are two views available: a basic one meant to be extended (Backbone.GMapsMarker.MarkerView
),
and a more featureful one that extends the basic view (Backbone.GMapsMarker.PrettyMarkerView
).
Feel free to extend either one of these to add your own features, or just use them directly like so:
var myView = new _.GMapsMarker.PrettyMarkerView({
model: myLocation,
mapView: myMapView,
color: 'blue'
});
Check out the inline comments in the .js
file for additional options.