Displaying 10 results from an estimated 10 matches for "large_map".
Did you mean:
large_ldap
2006 Nov 02
2
Update map
...started playing around with the ym4r-plugin and try to update a
map as explained in 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")...
2007 Oct 16
3
can''t define custom GIcon
Hi,
I am having trouble getting custom GIcons to display. Here is the code in
my controller:
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.icon_global_init(GIcon.new(:image => "images/APBox-20.png
"),"ap_none")
infoString = "Friendly Name: "+result.friendly_name+
"<br/>MAC: "+result.mac.to_s+
"&l...
2006 Jul 25
1
Blank map?
Hey all,
I''m a little frustrated here. The controls for the Google Map show up,
but the map itself seems to either never appear or to briefly flicker
onto screen, then to disappear.
My controller is simply this:
@map = GMap.new("map_div")
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([0, 0], 6)
and my view is this:
<head>
<%= javascript_include_tag :defaults %>
<%= GMap.header %>
<%= @map.to_html %>
</head>
<body>
<h2>Map should be below</h2>
<%= @map.div %...
2006 Aug 03
3
Calling/Executing javascript functions from controller
...ndomController < ApplicationController
before_filter :login_required, :except => [:index, :initialize]
def index
@session[:mode] = ''view''
@map = GMap.new("map")
render :update do |page|
page.call("resizeMap")
end
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([38.539506, -121.757172],13)
store_location
end
end
This as expected does not work, it spits of the try{blah blah} catch
stuff.
Any help is greatly appreciated!
Russ
--
Posted via http://www.ruby-forum.com/.
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
Hi all,
I''m using Ym4r with the Clusterer. The GMaps code in my controller
looks something like this:
# geo is an array of lon/lat points
session[:gmap] = GMap.new(''map_div'')
session[:gmap].control_init(:large_map => true,:map_type => true)
session[:gmap].center_zoom_init([38.134557,-95.537109],4)
markers = Array.new
geodata.each do |geo|
markers.push(GMarker.new([geo[''lon''], geo[''lat'']],
:info_window => "Hello", :title => &q...
2007 Mar 04
0
Event listeners
...I succeeded to do it in an rjs file (called from a form.. whenc
changing a location.. )
but I need to setup a first marker from my index action as I
initialize the map
I wrote
def index
@code_postal = "75018"
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@adresses = []
@adresses = lookup_geocodes(@code_postal << ", france")
@adresses.each do |marker|
@latitude = marker[:latitude]
@longitude = marker[:longitude]
@marker1 = GMarker.new([marker[:latitude],marker
[:...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...st.
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 => "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...
2008 Mar 14
0
problem with rjs and marker group
...have a function that builds a bunch of markers to go on a google
map. I would like to update them with rjs.
Here is what i have so far.
def map_main_layout
@zoom = params[:zoom].to_i
@zoom = 14 if params[:zoom].nil?
@map = GMap.new("map_div")
# @map.control_init(:large_map => true, :map_type => true) #
(inserts map control)
# place the map where we want it ( center and zoom level )
@map.center_zoom_init([@group.group_map_stat.lat.to_f,
@group.group_map_stat.long.to_f], @zoom)
@map.set_map_type_init(GMapType::G_HYBRID_MAP)
@sites = @group...
2006 Aug 03
0
N00b question...but here it goes
...roller < ApplicationController
before_filter :login_required, :except => [:index, :initialize]
def index
@session[:mode] = ''view''
@map = GMap.new("map")
render :update do |page|
page.call("resizeMap")
end
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([38.539506, -121.757172],13)
store_location
end
end
This as expected does not work, it spits of the try{blah blah} catch
stuff.
Any help is greatly appreciated!
Russ
--
Posted via http://www.ruby-forum.com/.