Displaying 20 results from an estimated 400 matches similar to: "Clusterer generating javascript syntax error"
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+
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
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)
2007 Mar 08
1
map not displayed after Ajax.updater request
In my layout 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 =>
2007 Mar 09
0
Clusterer
trying to use a Clusterer (other capabilities are running well....) I
got an error :
addDescriptionToMarker 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])
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:
2007 Mar 09
1
error in clusterer.js (need patch)
there is an error line 348 Clusterer.popUp( poppedUpCluster )
Clusterer.rePop = function ( clusterer ){
if ( clusterer.poppedUpCluster != null )
Clusterer.popUp( poppedUpCluster );
};
should be
Clusterer.rePop = function ( clusterer ){
if ( clusterer.poppedUpCluster != null )
Clusterer.popUp( clusterer.poppedUpCluster );
};
-------------- next part --------------
An HTML
2007 Mar 04
0
Event listeners
Hello.. I am playing around on a pilot project with this wonderful
Rails plugin.... thanks for sharing it w us !
I read in a post , in reply to this subject yjat :
Events are possible. Either through the @map.record_init "azeazeae" (for
arbitrary events like domlistener) or through the
@map.event_init(@map,:click,"function(){alert(''HOYOYO'');}").
The
2007 Mar 10
1
clusterer - click infowindow
Clicking on the icon of a clusterer opens an infowindow with a list
of markers , ech one has an icon and a description...
Is it possible to click on the marker icon (how to change its
image ?) to zoom directly to that marker ? or should I write a link
in the description
yhanks for your help
Note :additional question : what is the origin of the error message :
'' too many
2006 Aug 03
3
Calling/Executing javascript functions from controller
Hey all,
How can I call a javascript function from my controller?
Is it possible to simply call a javascript function
from directly in the controller WITHOUT needing an AJAX
request to come through via link_to_remote or remote form?
As an example I''ve tried:
class RandomController < ApplicationController
before_filter :login_required, :except => [:index, :initialize]
def index
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
Hi,
after spending hours on getting geokit and ym4r running I don''t know how
to do or how to getting a test running. I have try the tutorial from
http://www.railslodge.com/plugins/179-ym4r but I don''t get it :(.
Has sone one other tutorials he can recommend?
Maybe someone knows were I did my mistake (I only want to show a fixed
address, no database connection so far, pure
2008 Feb 29
1
Using ym4r/mapstraction''s cluster.js with RJS
Hey all,
This is a little OT but ...
I''m trying to use this the YM4R/mapstraction clusterer with RJS but
having a hard time, I can create a working cluster when i initiate it in
a controller, but not from RJS.
For the proper flow in my app it would be very helpful to be able to do
it from RJS.
Thanks for the help,
Chuck
--
*Chuck Fletcher*
Email: chuck at chuckfletcher.com
2007 Mar 09
0
(no subject)
I am trying to use the clusterer as stated in the README ( plugin is
running well ...)
and I got an error when displaying the map...
addDescriptionToMarker is not defined
(no name)()22 (line 169)
(no name)()ym4r-gm.js (line 67)
[Break on this error] map.addOverlay(new GMarker(new GLatLng
(47.7377071331,-2.9257965088),{title : "aa...
here is the generated script...
<script
2011 Jul 14
1
rails 3.0.9 ArgumentError (redundant UTF-8 sequence):
Hi guys,
I have a simple controller
def gmap
@intentsearches = Intentsearch.all
logger.info @intentsearches
respond_to do |format|
format.html {render :gmap}
format.xml {render :xml => @intentsearches }
format.json { render :json => @intentsearches }
end
end
and want a json response, but i do get the following error
Completed 500 Internal
2006 Aug 16
3
Easiest way to create a google map mashup?
I wanted to add a mash up to my website and was wondering if there were
any recommendations? I saw that there is a cartographer plugin
(http://cartographer.rubyforge.org/) and also something else called YM4R
(http://wiki.rubyonrails.org/rails/pages/YM4R).
I have no idea if they are up to date or not or whether this is
currently the easiest/best way to go about it short of rolling your own.
2006 Aug 12
2
Anyone up for this? Maps...Bounty...
Community,
Bounty? I should know better than to post on Friday night - they
usually go unanswered! But I''ll give it a shot...
I need google maps integrated with rails in such a way that I can:
1) Give it (something) a set of records from an ActiveRecord search
2) Have it take those records, and do the following:
a) Plot origin and destination location(s)
b) Add a line
2008 Mar 15
3
problem with config file
Hey there all
if i have this in my gmap_api_key.yml file,
production:
ABQIAAAASPzYuwhUCPD9Vz98LPOPDhQXfahRKLczKzlJSy9lXc0oaHHYcxTFTjWleXY7LH-N3IAp9ruoqiU43w
everything works fine but if i have this .....
production:
texaspivot.com:
ABQIAAAASPzYuwhUCPD9Vz98LPOPDhQXfahRKLczKzlJSy9lXc0oaHHYcxTFTjWleXY7LH-N3IAp9ruoqiU43w
i get this
ActionView::TemplateError (texaspivot.com) on line #1 of
2006 Jul 08
1
Need Help Understanding Situation with Table Columns
I am trying to create an application loosely based on the Depot application
presented in Agile Web Development with Rails (AWDwR). I am using InstantRails
for the server. In my app I have the folowing controllers:
admin_controller
application_controller
city_map_controller (with method: displayGMap)
The admin_controller was created with the following command:
ruby script/generate scaffold
2006 Jul 02
1
Subject: Trying to Get Results from Form Element
I am trying to create an application loosely based on the Depot application
presented in Agile Web Development with Rails (AWDwR). I am using the folowing controllers:
admin_Controller
application_Controller
city_map_controller (with method: displayGMap)
== Code Extract from city_map_controller ==
# Show a Google Map on a new page
def displayGMap
# @mapPoint = Gmap.find(params[:id])
# DBUG:
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