search for: overlay_init

Displaying 7 results from an estimated 7 matches for "overlay_init".

2006 Nov 02
2
Update map
...n the README-example... but nothing happens. I can update normal html. Heres my baby-code: class AdminController < ApplicationController def index @map = GMap.new("map_div") @map.control_init(:large_map => true) @map.center_zoom_init([59.91106, 10.72223],16) @map.overlay_init(GMarker.new([59.91122, 10.72217], :title => "Great!", :info_window => "Hi")) render :action => ''index'' end def shift @map = Variable.new("map") @marker = GMarker.new([59.00000, 10.00005], :title => "Update", :info_...
2006 Nov 06
4
Event listeners
Hi! Your plugin is really great! Thanks. One more little question. Is it possible to add event listeners to the maps via your plugin? greetings /till -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ym4r-user/attachments/20061106/6b1c6f4f/attachment.html
2007 Jan 18
1
Clusterer generating javascript syntax error
...ew geodata.each do |geo| markers.push(GMarker.new([geo[''lon''], geo[''lat'']], :info_window => "Hello", :title => "HOYOYO")) end clusterer = Clusterer.new(markers, :max_visible_markers => 2) session[:gmap].overlay_init(clusterer) Then in my view I''m loading in the requisite javascript libraries, including clusterer and mapstraction, and then displaying the map with something like: <%= session[:gmap].div(:width => 600, :height => 400) %> However, I get this Javascript error when I view my p...
2007 Mar 09
0
Clusterer
...er is not defined => line 169 my controller.. clusterer = Clusterer.new(@my_markers, :max_visible_markers => 2, :grid_size => 10, :min_markers_per_cluster => 2, :max_lines_per_info_box => 10, :icon => icons[2]) @map.overlay_init(clusterer) @marker_myself = GMarker.new ([@user.user_lat, at user.user_lng], :title => @user.pseudo) @map.center_zoom_init([@user.user_lat, @user.user_lng],zl) @map.overlay_init(@marker_myself) here is the generated script (with the line numbers) <script type=...
2007 Mar 04
0
Event listeners
...each do |marker| @latitude = marker[:latitude] @longitude = marker[:longitude] @marker1 = GMarker.new([marker[:latitude],marker [:longitude]], :draggable => "true", :title => "myTitlei", :info_window => "myInfo...") end @map.overlay_init @marker1 @map.center_zoom_init([@latitude, @longitude],16) @map.event_init(@map,:click,"function(){alert(''HOYOYO'');}") # this runs well... testing.. @map.event_init(@marker1, :dragend, "function () { point = marker1.getPoint(); map.setCenter(poin...
2007 Mar 04
0
Event listeners.. solved
sorry.. I paid a little bit more attention to your reply.. especially using Firebug extension... (so helpful...) and I got it (maybe not so good writing.. @map.declare_init(@marker1, ''marker1'') @map.overlay_init(@marker1) @map.record_init "GEvent.addListener(marker1, ''dragend'', function () { point = marker1.getPoint(); map.setCenter(point); map.savePosition(); GLog.write(''New position of insert = ''+ point.lat() + '','&...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...''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 => "Hello", :info_window => "Info! Info!")) end 75.5,-42.56 should be the data for the map. In the next step I want to initiate a map. For this, so far I get it from the tutorial, I have to call the map in the view via: <html> &l...