search for: addlistener

Displaying 20 results from an estimated 32 matches for "addlistener".

Did you mean: add_listener
2010 Apr 30
6
addListener
I am trying to use the marker method addlistener(). A simplified version of what I''m trying to do: var map; var marker; map = new mxn.Mapstraction(''myMap'',''google''); map.setCenterAndZoom(new mxn.LatLonPoint(45.559242,-122.636467), 15); mark...
2008 Mar 12
0
Execute custom code when clicking marker
...not changes that are urgent to me nor my work). The thing that is most important for me is to be able to fire a function when a marker is clicked. The way Mapstraction seems to work at the moment, is to open an info bubble when a marker is clicked. What about making a function (for example Marker.addListener()) which takes a function as argument. When (for example) the GEvent is created in the toGoogle() function, the function added by addListener() could be assigned to the GEvent instead of the function (which calls gmarker.openInfoWindowHtml()) that is assigned now. Further, the addListener() functi...
2009 Nov 06
0
r54 committed - ...
...ptions.map = this.map; @@ -322,19 +359,33 @@ }); var event_action = "click"; - if(this.hover) { - event_action = "mouseover"; + if (this.hover) { + event_action = "mouseover"; } google.maps.event.addListener(marker, event_action, function() { infowindow.open(this.map,marker); }); } if (this.hoverIconUrl){ - var hIcon = this.hoverIconUrl; - var Icon = this.iconUrl; + var hIcon = new google.maps.MarkerImage( + this.hoverIconUrl, +...
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
2010 Sep 22
3
how to remote function to get info from url in a javascript function
...get new html for it. ( the html is a table that displays weather data) here is what i have so far function replace_weather_table(){ zoomy = map.getZoom(); weather_table_one.setContents(new Ajax.Request(''/weather/ update_weather_tables?zoom=''+zoomy)); }; GEvent.addListener(map,"moveend", replace_weather_table); i would like to have the contents be those of a partial, but when executed, the display only shows "[object Object]" would appreciate any help, thanks sk -- You received this message because you are subscribed to the Google Groups &quo...
2007 Mar 08
1
map not displayed after Ajax.updater request
.../gm_shadow.png" ,infoWindowAnchor : new GPoint(9,2)}); .......... var map; window.onload = addCodeToFunction(window.onload,function() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_div")); map.setCenter(new GLatLng(47.7500161647,-2.916641656), 8);GEvent.addListener(map,"click",function processMoveEndEvent () { var centerPoint = map.getCenter(); if (map.getZoom() <= 18) { processNewMapMovement()} }); map.addOverlay(contact); map.addOverlay(reference);map.addControl(new GSmallMapControl()); } }); </script> but that''s all.......
2006 Aug 17
3
[MARKABY] Multiline text?
Anybody know if it''s possible to have multiline text in Markaby without resorting to a bunch of text statements or putting the text block in another file and using render :file ? I need to add chunks of HTMLized javascript to my templates. Joe -- Posted via http://www.ruby-forum.com/.
2009 Jun 06
0
loglikelihood and AIC
...getElementById("chk_pop_error") || document.getElementById("option_bad_folder") || document.getElementById("folders_options_spam") || document.getElementById("folders_options_sent") || document.getElementById("spam_edit_options")) {YAHOO.util.Event.addListener(YAHOO.mc.optionsID, "click", displayOptions, optionObj);}YAHOO.namespace("fcue"); YAHOO.mc.FCUE_METADATA = {imInit:"",imSent:"",fcElap:"",fcEcap:"",fcNag:"",inEcap:"&...
2009 Nov 04
0
r53 committed - applied patch from John McKerrell
...0:15 2009 +++ /trunk/source/mxn.cloudmade.core.js Wed Nov 4 08:34:55 2009 @@ -7,6 +7,21 @@ var cloudmade = new CM.Tiles.CloudMade.Web({key: cloudmade_key}); this.maps[api] = new CM.Map(element, cloudmade); this.loaded[api] = true; + + CM.Event.addListener(this.maps[api], ''click'', function(location,marker) { + if ( marker && marker.mapstraction_marker ) { + marker.mapstraction_marker.click.fire(); + } + else if ( location ) { + me.click.fire...
2007 Mar 04
0
Event listeners
...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 latter will give you: GEvent.addListener(map,"click", function(){alert(''HOYOYO'');}) 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...
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() + '',''+ point.lng()); });" it runs... could not fin...
2008 Mar 01
0
event model
Hi, The only event related method I see is Mapstraction.addListener(..) and there is no documentation on the supported events. Can you provide a few examples, ans also is there''s a place to get an complete list of supported events. The google maps API for example has a rich event model on not just the map, but also the overlays, info widow and such. http...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...amp;end, 10); if (input == end || (*end != '\0' && !g_ascii_isspace (*end))) diff-tree f1457b93b4d9cb43650b0e595bbe41096230281f (from c37787b576447a80f90421643ffdf4dfbeae9350) Author: Benjamin Otte <otte@gnome.org> Date: Tue Feb 20 15:02:29 2007 +0100 implement Mouse.addListener() and Mouse.removeListener() diff --git a/libswfdec/swfdec_js_mouse.c b/libswfdec/swfdec_js_mouse.c index dfea1c2..2a31248 100644 --- a/libswfdec/swfdec_js_mouse.c +++ b/libswfdec/swfdec_js_mouse.c @@ -23,9 +23,33 @@ #include "swfdec_js.h" #include "swfdec_debug.h" +#includ...
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 this? Perhaps we can add a "varname" attribute to the overlays to allow further use of them? The...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...e/asbroadcaster-properties-6.swf.trace b/test/trace/asbroadcaster-properties-6.swf.trace new file mode 100644 index 0000000..85afed4 --- /dev/null +++ b/test/trace/asbroadcaster-properties-6.swf.trace @@ -0,0 +1,27 @@ +_global.AsBroadcaster = function + __proto__ (hp) = _global.Object.__proto__ + addListener (hp) = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor + prototype (hp) = object + __proto__ (hp) = _global.Object.prototype + constructor (hp) = _global.AsBroadcaster.addListener + broadcastMessage (hp) = function + __prot...
2007 Mar 09
0
(no subject)
...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,-2.9257965088), {title : "aabe307"})); map.addOverlay(new Clusterer([addDescriptionToMarker (addInfoWindowTabsToMarker(new GMarker(new GLa...
2007 Mar 09
0
Clusterer
...4 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([addDescriptionToMarker (addInfoWindowTabsToMarker(new GMarker(new GLatLng (47.6666508055,-2.9833339433),{title : "aad725",icon : icon_contact}), [new GInfoW...
2009 Sep 20
0
r30 committed - jslint now passing for google and googlev3
...;']) { + if(options && options.pan) { map.panTo(pt); } else { @@ -357,7 +359,7 @@ mousePosition: function(element) { var locDisp = document.getElementById(element); - if (locDisp != null) { + if (locDisp !== null) { var map = this.maps[this.api]; GEvent.addListener(map, ''mousemove'', function (point) { var loc = point.lat().toFixed(4) + '' / '' + point.lng().toFixed(4); @@ -496,11 +498,10 @@ gpoints.push(this.points[i].toProprietary(''google'')); } if (this.closed || gpoints[0].equals(gpoints...
2010 Nov 08
1
API Google MAPS
...n: google.maps.ControlPosition.TOP_LEFT }, }; var map = new google.maps.Map(document.getElementById("mapilla"), myOptions); // add the marker itself var marker = new google.maps.Marker({ position: point, map: mapilla, draggable: true }); google.maps.event.addListener(marker, ''position_changed'', function() { var darwin = new google.maps.LatLng(marker.getPosition()); $(''input:text[name=event[lng]]'').val(marker.getPosition().lng()); $(''input:text[name=event[lat]]'').val(marker.getPosition().lat());...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...wfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as index 0741314..b153c7a 100644 --- a/libswfdec/swfdec_initialize.as +++ b/libswfdec/swfdec_initialize.as @@ -49,9 +49,10 @@ AsBroadcaster.initialize = function (o) o._listeners = new Array (); ASSetPropFlags(o, "broadcastMessage,addListener,removeListener,_listeners", 131); }; -ASSetPropFlags(o, null, 131); +ASSetPropFlags(AsBroadcaster, null, 131); /*** MOUSE ***/ + Mouse = new Object (); Mouse.show = ASnative (5, 0); Mouse.hide = ASnative (5, 1); diff --git a/libswfdec/swfdec_initialize.h b/libswfdec/swfdec_initialize.h...