search for: ym4r_gm

Displaying 6 results from an estimated 6 matches for "ym4r_gm".

2008 Sep 04
3
Moving HTML out of a model
G''day folks. My RentalMap model uses ym4r_gm to generate a Google map and plot markers on the map. However, a marker''s body contains HTML. It feels dirty to put HTML in the model, but the markers should be plotted by the model. Any suggestions for how I can move the marker HTML template out of the RentalMap model? Cheers, Ni...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...e plugins Geokit and Ym4r (vendor/plugins). So far I understood Ym4r require Geokit? I have no model (no data will be stored). I have a controller geokittest. The controller contains: class GeokittestController < ApplicationController require ''geokit'' require ''ym4r_gm'' include ym4r_gm::GoogleMaps include GeoKit::Geocoders def index @map = GMap.new("map_div") @map.control_init(:large_map => true,:map_type => true) @map.center_zoom_init([75.5,-42.56],4) #@map.overlay_init(GMarker.new([75.6,-42.467],:title => &qu...
2008 Mar 04
0
question about updating the map
Hey there all. I have a mapping app that uses ym4r_gm to build with google maps. The markers i generate use the status of a machine to determine their color. This way our customers can pull up the map and see a color coded drawing where their machine is. So, how would i go about making this to where it could update each marker every 10 minutes or so...
2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks like YM4R GM (and Mapstraction) doesn''t support this. I need an init like: marker = new GMarker(... GEvent.addListener(marker, "dragend", function() { }) but the current setup makes "anonymous" markers - never creates variable that can be used to access them. Has anyone thought about
2008 Jan 15
0
Problem with ruby-debug and rspec
...I''m kind of stumped on this one... any ideas? -rabble I''ve got the following plugins installed: active_record_base_without_table annotate_models asset_packager exception_logger fixture_replacement query_reviewer rspec rspec_on_rails spatial_adapter svn white_list will_paginate ym4r_gm and am using the following gems: GeoRuby-1.3.2 RedCloth-3.0.4 has_finder-0.1.5 json-1.1.1 mocha-0.5.5 oauth ruby-hmac-0.3.1 brickhouse:~/code/fireeagle-rails/core/trunk rabble$ spec spec/controllers/account_controller_spec.rb /Users/rabble/code/fireeagle-rails/core/trunk/lib/sso_authentication/te...
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all, I started to see fun of gmaps4rails gem from https://github.com/apneadiving/Google-Maps-for-Rails. After everything done. When visited the locahost, i got the following error. undefined local variable or method `acts_as_gmappable'' for #<Class: 0x31a9da8> the error is due to i have line "acts_as_gmappable" in my model. Anybody knows how this is