Displaying 20 results from an estimated 48 matches for "gmap".
Did you mean:
pgmap
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
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 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` tinyin...
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
the comma...
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 t...
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...
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: Go back with report of what we found
redirect_to_index("What the form got: |#{params[:id]}| |#{params[:mapPoint]}|")
if params[:context] == :...
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/...
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...
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)
@map.overlay_init(GMarker.new([59.91122, 10.72217], :title => "Great!",
:info_window => "Hi"))
render :action => ''index''
e...
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+
"<br/>...
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:
<head>
<%= javascript_include_tag :defaults %>
<%= GMap.header %>
<%= @map.to_html %>
</head>
<body>
<...
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(:...
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 does...
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...
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 ove...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...no data will be stored).
I have a controller geokittest.
The controller contains:
class GeokittestController < ApplicationController
require ''geokit''
require ''ym4r_gm''
include ym4r_gm::GoogleMaps
include GeoKit::Geocoders
def index
@map = GMap.new("map_div")
@map.control_init(:large_map => true,:map_type => true)
@map.center_zoom_init([75.5,-42.56],4)
#@map.overlay_init(GMarker.new([75.6,-42.467],:title => "Hello",
:info_window => "Info! Info!"))
end
75.5,-42.56 should be the data fo...
2006 Aug 03
3
Calling/Executing javascript functions from controller
...UT 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
@session[:mode] = ''view''
@map = GMap.new("map")
render :update do |page|
page.call("resizeMap")
end
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([38.539506, -121.757172],13)
store_location
end
end
This as expected does not work, it spits of the try{bla...
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 an...
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...