Displaying 20 results from an estimated 1000 matches similar to: "Google maps api in ruby/rails"
2006 Aug 16
3
Easiest way to create a google map mashup?
I wanted to add a mash up to my website and was wondering if there were
any recommendations? I saw that there is a cartographer plugin
(http://cartographer.rubyforge.org/) and also something else called YM4R
(http://wiki.rubyonrails.org/rails/pages/YM4R).
I have no idea if they are up to date or not or whether this is
currently the easiest/best way to go about it short of rolling your own.
2006 Aug 04
3
is cartographer recommended for using google maps?
been doing some searches on how to get googlemaps working in a ror app.
seems like cartographer is the main one? is this true?
Thanks
--
Posted via http://www.ruby-forum.com/.
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 Jul 24
3
geocoding addresses with ym4r google maps
Does anyone know how to geocode addresses using the YM4R Google Map
plug-in?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe
2006 Feb 01
2
Weird problem with script/server, lighttpd, and FreeBSD
I installed lighttpd from ports on my FreeBSD-5 system last night, wanting
to play with that instead of WEBrick for development work.
I installed it, and ran script/server, and got this:
[minter@carlton discostu]$ script/server
=> Booting lighttpd (use ''script/server webrick'' to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to
2009 Jun 12
5
Limit Request Body Size (Disallow very large File-uploads)
Hello all,
For the last couple of days I was trying to get my
Apache/mod_proxy/mongrel setup to limit the size of the request body.
The setup is as follows:
1.) Apache acts as a reverse proxy by facilitating mod_rewrite and mod_proxy
2.) Requests for non-static files are passed on to a mongrel_cluster
3.) We use mongrel for our Ruby on Rails application
Note that due to some restrictions we are
2008 Jun 04
2
Can icecast stream a file from disk?
On Jun 4, 2008, at 5:25 AM, Thomas B. Ruecker wrote:
> H. Wade Minter schrieb:
>> I'm in a situation where I have some MP3 files I'd like to stream on-
>> demand, but for various reasons can't just make the MP3 files
>> themselves available.
>>
>> Is there a way, using icecast, to set up a server that would just
>> bind
>> to a port, and
2006 Aug 17
2
how to check if the value is repeated?
hi!
as the subject says, :P how can i check if a value is already in a
table??
ty!!
--
Posted via http://www.ruby-forum.com/.
2009 Jan 07
13
HTTP parse error due to an extra percent sign
If you append an extra percent sign to a URL that gets passed to
mongrel, it will return a Bad Request error. Kind of odd that
"http://localhost/%" causes a "Bad Request" instead of a "Not Found"
error.
Here is the error from the mongrel log:
HTTP parse error, malformed request (127.0.0.1):
#<Mongrel::HttpParserError: Invalid HTTP format, parsing fails.>
2008 May 06
3
expires header for .css
I''m using mongrel as my http server.
I was using yslow to evaluate the performance of my web site and noticed
I was downloading the .css file on every request??? I use one .css file
for the whole site and I though I would be cached?
Yslow indicates that there is no expires date/time set for the css file.
How can I tell mongrel to send an expires header with my static content?
thanks,
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ?
My form looks like this:
<%= form_remote_tag :url => { :action => ''do_image_upload'' },
:html => { :enctype => ''multipart/form-data'' } %>
<%= file_field ''image'', ''file_data'', :size => 32 %>
<%= submit_tag
2006 May 16
5
Google Map problems
I followed the setup from http://cartographer.rubyforge.org/
but keep getting this error -
NoMethodError in Sandbox#map
Showing app/views/layouts/sandbox.rhtml where line #4 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.[]
Extracted source (around line #4):
1: <html>
2: <head>
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
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
2009 Apr 14
2
routes with google maps API
Hi,
I''m using mapstraction with Google Maps api and I want to use routes.
As of now, mapstraction only supports mapquest API to do this, so can I
use the underlying googlemaps API to do this, while using mapstraction?
If yes, how?
Btw, mapquest route demo doesn''t work (Error: MQA is not defined /
Source File: http://mapstraction.com/mapstraction-js/mapstraction.js /
Line: 621)
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 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
2008 Mar 15
3
problem with config file
Hey there all
if i have this in my gmap_api_key.yml file,
production:
ABQIAAAASPzYuwhUCPD9Vz98LPOPDhQXfahRKLczKzlJSy9lXc0oaHHYcxTFTjWleXY7LH-N3IAp9ruoqiU43w
everything works fine but if i have this .....
production:
texaspivot.com:
ABQIAAAASPzYuwhUCPD9Vz98LPOPDhQXfahRKLczKzlJSy9lXc0oaHHYcxTFTjWleXY7LH-N3IAp9ruoqiU43w
i get this
ActionView::TemplateError (texaspivot.com) on line #1 of
2009 Jan 31
4
marker.closeBubble()
Any reason why there''s no closeBubble function in Mapstraction? It''s
supported by at least Yahoo (closeSmartWindow) and Google
(closeInfoWindow).
A related issue, but not as clear-cut: a bubble closed event. I know
Google supports this, but I haven''t investigated further.
--Adam
2007 Jul 25
1
regarding polylines
hi all, i am experimenting with ym4r mapstraction, i am using yahoo api
, when i tried polylines , its not showing up.. the code is
var map;
window.onload = addCodeToFunction(window.onload,function() {
map = new Mapstraction("map_div","yahoo");
map.setCenterAndZoom(new LatLonPoint(37.3853,-122.0172
),12);map.addSmallControls();
map.addMarkerGroup(new