search for: addcontrol

Displaying 13 results from an estimated 13 matches for "addcontrol".

2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...provider code + if(this.options.enableScrollWheelZoom){ + map.enableScrollWheelZoom(); + } }, resizeTo: function(width, height){ // TODO: Add provider code + this.maps[this.api].checkResize(); }, addControls: function( args ) { var map = this.maps[this.api]; - // TODO: Add provider code + var c = this.addControlsArgs; + switch (c.zoom) { + case ''large'': + this.addLargeControls(); + break; + case ''small'': +...
2006 Jul 28
6
STRFTIME() why is it not defined
I am trying to take the input from a field in wich the user enters a date, and formatting it to my time format if params[:gotcha] != '''' gotc = params[:date].to_a gotc.strftime("%m/%d/%y") end Yet I get this error: NoMethodError in AddController#add undefined method `strftime? for ["00000"] What''s wrong. I''m positive this method is defined. What''s wrong with my code? It''s so odd... Thanks for your help and time. -- Posted via http://www.ruby-forum.com/.
2008 Jun 03
3
OpenSpace support for mapstraction
...it should be ok. The following features are not supported: declutterMarkers() showRoute() addImageOverlay() addOverlay() addTileLayer() toggleTileLayer() Polyline.show() and hide() Marker.setInfoDiv(), setDraggable(), setHoverIcon(), setShadowIcon(), openBubble() Map type control (if requested in addControls() this provides ability to switch on/off layers and markers) setMapType() and getMapType() Everything else should work. Regards Colin Law -------------- next part -------------- A non-text attachment was scrubbed... Name: mapstraction_js_patch.zip Type: application/x-zip-compressed Size: 6564 b...
2007 Jan 18
1
Clusterer generating javascript syntax error
...ap with something like: <%= session[:gmap].div(:width => 600, :height => 400) %> However, I get this Javascript error when I view my page: illegal character 30map.setCenter(new GLatLng(38.134557,-95.537109),4);map.addOverlay(#<Ym4r::MapstractionPlugin::Clusterer:0x9b3d608>);map.addControl(new GLargeMapControl()); It seems pretty obvious that a Ruby object reference is somehow getting inserted into the generated Javascript. Removing the clusterer lines from my controller solves the problem. Any idea what''s going on? Regards, Joseph
2008 May 20
1
AddOverlay for GeoRss Feeds, GeoRSS support
...action'',''google''); > > var myPoint = new LatLonPoint(37.4041960114344,-122.008194923401); > // display the map centered on a latitude and longitude (Google zoom > levels) > mapstraction.setCenterAndZoom(myPoint, 3); > mapstraction.addControls({zoom: ''large''}); > > mapstraction.addOverlay("http://api.flickr.com/services/feeds/groups_pool.gne?id=322338 at N20&format=rss_200&georss=1"); > </script> > > > Regards > > > > > -- Andrew Turner mobile: 248.982.36...
2007 Mar 08
1
map not displayed after Ajax.updater request
...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.... no map displayed ... why any clue ? I already used it in other parts of my app without any problem, but never from an Ajax request... is it the key point ? thanks for your help Yves
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...me.onload[me.api][i](); @@ -77,15 +72,21 @@ addSmallControls: function() { var map = this.maps[this.api]; - showControl("Zoom", args.zoom); - showControl("Legend", args.legend, "open"); + this.addControls({ + zoom: ''small'', + legend: "open" + }); + // showControl("Zoom", args.zoom); + // showControl("Legend", args.legend, "open"); }, addLargeControls: funct...
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+
2007 Mar 09
0
(no subject)
...01696),{title : "sid140",icon : icon_contact}), [new GInfoWindowTab("Membre","Oscar Petard<br />sid140<br />Membre depuis : Ven, 28 Mar 2006 22:10:55 +0000<br / >delphinecroux at yahoo.fr")],{}),"sid140")],icon_cluster, 2,10,2,10));map.addControl(new GSmallMapControl()); } }); </script>
2007 Mar 09
0
Clusterer
...scar Petard<br />sid140<br />Membre depuis : Ven, 28 Mar 2006 22:10:55 +0000<br / >delphinecroux at yahoo.fr")],{}),"sid140")],icon_cluster,2,10,2,10)); 170 map.addOverlay(new GMarker(new GLatLng (47.7377071331,-2.9257965088),{title : "aabe307"}));map.addControl (new GSmallMapControl()); 171 } 172 }); 173 </script>
2009 Sep 20
0
r30 committed - jslint now passing for google and googlev3
...{ @@ -510,7 +511,6 @@ hide: function() { throw ''Not implemented''; } - } }); ======================================= --- /trunk/source/mxn.googlev3.core.js Sun Sep 20 06:07:56 2009 +++ /trunk/source/mxn.googlev3.core.js Sun Sep 20 06:26:44 2009 @@ -41,12 +41,14 @@ addControls: function( args ) { var map = this.maps[this.api]; // remove old controls + // Google has a combined zoom and pan control. if (args.zoom || args.pan) { - (args.zoom == ''large'') - ? this.addLargeControl...
2007 Jun 22
0
[1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now
...sp * \brief Adds any control to the toolbar, typically e.g. a combobox. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param wxControl* -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> bool AddControl(wxControl* control ) ; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del&gt...
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *