Class: MapWKT::Overlay::Marker
- Inherits:
-
MapWKT::Overlay
- Object
- MapWKT::Overlay
- MapWKT::Overlay::Marker
- Defined in:
- lib/mapwkt/gmap/marker.rb
Instance Method Summary collapse
Methods inherited from MapWKT::Overlay
#center, #geometry, #initialize, #source
Constructor Details
This class inherits a constructor from MapWKT::Overlay
Instance Method Details
#js_output(map_name = nil) ⇒ Object
4 5 6 |
# File 'lib/mapwkt/gmap/marker.rb', line 4 def js_output (map_name = nil) "new google.maps.Marker({#{" map: #{map_name}," if map_name} position: new google.maps.LatLng(#{self.geometry.latitude_f},#{self.geometry.longitude_f}) })" end |