search for: gmaps

Displaying 20 results from an estimated 48 matches for "gmaps".

Did you mean: maps
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)...
2006 Jul 08
1
Need Help Understanding Situation with Table Columns
...or 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 Gmap Admin so that I could easily create records in the gmaps table (created with this code): DROP TABLE IF EXISTS `gmaps`; CREATE TABLE `gmaps` ( `id` int(11) NOT NULL auto_increment, `type` tinyint(4) NOT NULL default ''0'', `description` varchar(100) collate latin1_general_cs NOT NULL default '''', `lat` float NOT N...
2008 Aug 02
0
thematic maps, missing data, gmap
...ike there is a bay where Delaware should be. If anyone could suggest a method for drawing in the missing coastline or Delaware's complete boundary, I would be most grateful. My .R code for the map is as follows: ********Code starts here********************************************** library(gmaps) grid.newpage() grid.frame(name="map") # Create a frame for packing objects. statenames <- list("Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "F...
2008 Aug 03
0
gmaps, projection, inset
Running R version 2.6.1 under Gentoo Linux, I'm trying to produce a thematic map of the USA using the gmaps package. The result thus far has two problems from my point of view. First, the projection (Miller cylindrical?) elongates southern states and flattens northern ones unattractively. I'd prefer Albers conic projection or something similar. Second, the inset for Alaska is placed south of th...
2011 Jan 18
1
Changing gmap marker icons while onclick
Is there any way to change gmap marker icon while onclick and get back its original icon while clicking another marker or map. Suppose, In my gmap, I''m showing events in different colors(icon''s). while clicking a marker the icon should change to yellow and should get back its original color when clicking another marker on the map. -- You received this message because you are
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 May 15
5
rake db:migrate sucks
...3 with gems update --system however,when i enter the project directory and input the command rake db:migrate,it sucks with the following errors: rake aborted! uninitialized constant ActionController c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:2028:in `const_missing'' D:/RubyForge/gmaps/config/../app/controllers/application.rb:4 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_re quire'' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' D:/RubyForge/gmaps/config/../lib/tasks/importing_tasks.rake:36 c:/ruby/lib/r...
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 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 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 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 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 May 13
0
MGeoRSS and IE
Hi, Not sure where else to post this since MGeoRSS doesn''t seem to have its own list. I''m using MGeoRSS (http://brainoff.com/gmaps/mgeorss.html) because Google''s GeoRSS API (http://googlemapsapi.blogspot.com/2007/03/kml-and-georss-support-added-to-google.html) doesn''t support local GeoRSS servers (yet - see http://code.google.com/p/gmaps-api-issues/issues/detail?id=300). I discovered today that MGeoRSS doesn...
2008 Aug 12
0
Question about custom images in map
Hi, While browsing the internet for a solution, I found mapstraction and checked out some examples. I wonder if anyone in this group can help me with something. I have created a web page where a custom floor plan is loaded into a Google Maps interface using Gmaps Image Cutter. I am not using the map at all, instead I am using a custom image of mine. I use the Gmaps api functions of adding markers and info windows. Everything works great besides the fact that the page is located in an intranet. So per license terms, I cannot use Google Maps. Is there a way t...
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 over...
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
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
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
2008 Aug 04
2
thematic map of USA
...I would like to include an inset for Alaska in the upper left and an inset for Hawaii in the lower left. If possible, I'd like to use Albers conic projection, or something similar. Thus far I have tried using the maps package with its state database (which omits Alaska and Hawaii) and the gmaps package (which places an inset for Alaska in the lower left and uses a projection [Miller cylindrical?] that distorts states along the northern and southern fringe). I would be very grateful for suggestions about alternative approaches. John -- John P. Burkett Department of Environmental and...
2010 Jan 05
2
Clustering in Mapstraction
Hi All, I''m looking for a good example of client-side marker clustering with Mapstraction. It would be especially valuable if it was easily reusable code, similar to MarkerClusterer for Google Maps: http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/docs/reference.html If no such thing exists for Mapstraction (and I haven''t seen one), what are the opinions on porting this library to Mapstraction? It is open source (Apache 2.0 license), so this seems feasible. A little...