Displaying 20 results from an estimated 10000 matches similar to: "Changing gmap marker icons while onclick"
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
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+
2008 Aug 02
0
thematic maps, missing data, gmap
Running R version 2.6.1 under Gentoo Linux, I'm trying to produce a
thematic map of the USA using the gmap package and its function
USALevelPlot. The variable whose levels are to be plotted is observed
for 49 states but missing for one (Delaware).
I would like to produce a map in which the states for which data exist
are shaded and Delaware is represented only by an outline. In contrast
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)
2010 Oct 23
1
marker.setInfoBubble problem
Hi All,
Having a weird one with Mapstraction & GMAPs v3...
Adding some info bubbles using marker.setInfoBubble(''couple of lines of HTML
here...'') - but they''re not expanding heightwise to handle the text, and
there don''t seem to be any CSS selectors available to try and force the
issue...
There''s an overflow: auto style being applied to the
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
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
2005 Oct 18
0
RE: Error: "onclick() is not a function"
I see what he is saying now. When you assign a click event with the
Event.observe it does not allow you to call it with the
$(''xxx'').onclick(); command as it''s looking for the onclick tag in the a
tag.
I''m stumped on a way to get this to work.
Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
2012 Mar 10
6
Cartographer shows correct info box BUT over wrong marker
Hi guys (and gals),
The code formatting is so nice on SO.com, so I thought I''d just share
my post in hopes that someone from the group can help.
http://stackoverflow.com/questions/9643786/cartographer-shows-correct-info-box-but-over-wrong-marker
Feel free to answer back via email if you don''t have an SO account.
Thanks!
Abram
--
You received this message because you are
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 =>
2008 Feb 19
1
adding an onclick option to link_to method
Hello,
I''m trying to use the rail link_to to open a popup window and then
print the popup window at the same time. Is there a way to add
another "onclick" option to tell the popup to print? I know how to do
this in javascript but not sure how to use the rails help to do it. I
also am aware that the link_to_function method is used to call a
javascript function.
2009 Feb 17
1
How to show div with radio button onclick
I am trying to get a div to show when a radio button is clicked but
the problem is that the div is dynamically named. I am using the
normal html for a radio button:
<input type="radio" name="edit_option" checked="checked"
value="this_appt">
Because observe field does not work well with radio buttons. I have
tried adding an onclick with the div id:
2006 Jun 14
3
sortables and onClick events firing
I have a page that I have been tasked with adding sortable support to, and
the div elements that are being dragged have a <a href> in them with an
onClick handler that opens a new window with a preview. Is there a way to
keep that onCLick from firing when a sortable is dropped?
Sam D
_______________________________________________
Rails-spinoffs mailing list
2013 Mar 06
2
Refresh a partial onClick using ajax call in rails 3.x
Hi All,
I want to refresh a partial onClick, onClick i am making ajax call
and getting the data but i am unable to refresh the partial. here is the
code
IN views: home.html.erb
$(document).ready(function() {
var currentCellText;
$(".inline").click(function() {
currentCellText = $(this).text();
$.ajax({
type: ''GET'',
dataType: "json",
2007 Feb 03
7
Interesting radio button behavior with "onclick"
Hello:
I have radio buttons like this:
<% fields_for :goalhist do |g| %>
<table>
<tr>
<td align=left><%= radio_button_tag (''duedate'', 0, checked = false,
options = {:onclick => ""}) %>
Start now
</td>
</tr>
<tr id="detailed" style="display: none"><td colspan=2>
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
2006 Jan 16
2
ruby embedded code replacement for onclick in link?
Is there a ruby embedded code replacement for something like this?
<a href="#" onclick="window.open(''http://192.168.78.12:3000/portfolio/show/<%=
item.id %>'', ''test'', ''width=660, height=500,resizable=no'')">
<%= image_tag item.image_url, :size => ''200x150'' %></a>
Thanks,
Dan
2012 Jul 10
5
How to add marker in Stacked bar plot?
Hi,
I am working on stacked bar plot and want to add marker(arrow) in stacked
bar plot.
DF=data.frame(names=c("tomato", "potato", "cabbage", "sukuma-wiki",
"terere"), freq=c(7,4,5,8,20))
barplot(as.matrix(DF[,2]), col=heat.colors(length(DF[,2])), legend=DF[,1],
xlim=c(0,9), width=2)
http://r.789695.n4.nabble.com/file/n4635946/Screenshot.png
2006 Jun 23
0
onclick action for submit_to_remote
http://tr.openmonkey.com/articles/2006/01 says that I can''t use :onclick
options for submit_to_remote method in rails from a view.
How do I perform javascript validations for such controls supporting Ajax?
Regards,
Jatinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 20
0
text_field_with_auto_complete onclick show dropdown with all options
How could I implement this ... maybe onclick set the value of the text
field = '' '' then somehow trigger keydown/up event?
Thanks
Bruce