Displaying 12 results from an estimated 12 matches for "map_div".
Did you mean:
a_div
2007 Mar 08
1
map not displayed after Ajax.updater request
...yout header I inserted the standard helper : GMap.header
I built the map in my controller , I build either a standard table
or a map and display it in the corresponding partial
the map is built without any problem with the icons and markers
( @map is correct...)
@map = GMap.new("map_div")
...
@map.icon_global_init(GIcon.new(:image => "/images/gm_contact.png", ....
..
@map.overlay_global_init(GMarkerGroup.new(true, @markers[1]), "contact")
....
from a radio button, an Ajax.Updater request is sent to my
controller to require either table or map buil...
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...
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: "+resul...
2006 Nov 02
2
Update map
Hi!
I''ve just 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...
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'']...
2007 Jul 25
1
regarding polylines
hi all, i am experimenting with ym4r mapstraction, i am using yahoo api
, when i tried polylines , its not showing up.. the code is
var map;
window.onload = addCodeToFunction(window.onload,function() {
map = new Mapstraction("map_div","yahoo");
map.setCenterAndZoom(new LatLonPoint(37.3853,-122.0172
),12);map.addSmallControls();
map.addMarkerGroup(new MarkerGroup([addDataToMarker(new Marker(new
LatLonPoint(37.3853,-122.0172)),{infoBubble : "Maude & Fair Oaks <br/> Next
bus is at 14:19:00"}),a...
2007 Mar 04
0
Event listeners
...39;);}) inserted during initialization.
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 =...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...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 => "Hello",
:info_window => "Info! Info!"))
end
75.5,-42.56 should be the data for the map.
In the...
2008 Mar 14
0
problem with rjs and marker group
Lo there all,
i 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(G...
2007 Mar 09
0
(no subject)
...oint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});var map;
window.onload = addCodeToFunction(window.onload,function() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_div"));
map.setCenter(new GLatLng(47.7377071331,-2.9257965088),10);
map.setCenter(new GLatLng(47.7377071331,-2.9257965088),
10);GEvent.addListener(map,"click",function processMoveEndEvent()
{ var centerPoint = map.getCenter(); });
map.addOverlay(new GMarker(new GLatLng(47.7377071331,-...
2007 Mar 09
0
Clusterer
...shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});var map;
164 window.onload = addCodeToFunction(window.onload,function() {
165 if (GBrowserIsCompatible()) {
166 map = new GMap2(document.getElementById("map_div"));
167 map.setCenter(new GLatLng(47.7377071331,-2.9257965088),10);
168 map.setCenter(new GLatLng(47.7377071331,-2.9257965088),
10);GEvent.addListener(map,"click",function processMoveEndEvent()
{ var centerPoint = map.getCenter(); });
169 map.addOverlay(new Clusterer([addDescripti...