Displaying 20 results from an estimated 700 matches similar to: "[announcement] Google Maps + Rails 3 = gmaps4rails"
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all,
I started to see fun of gmaps4rails gem from
https://github.com/apneadiving/Google-Maps-for-Rails.
After everything done. When visited the locahost, i got the following
error.
undefined local variable or method `acts_as_gmappable'' for #<Class:
0x31a9da8>
the error is due to i have line "acts_as_gmappable" in my model.
Anybody knows how this is
2007 Aug 14
3
diffusing GIS data in maps
Hi-
I am trying to find a way to diffuse GIS data on a European map. I have a
dataset consisting of particular locations scattered across Europe,
along with magnitude and value information. I can plot these as discrete
points with something like the following:
"geocode" is a dataframe with four columns: LAT; LONG; MAGNITUDE;VALUE.
library(maps)
library(mapdata)
2013 Mar 04
2
Model/google maps display
Hi all,
I''m building a ror app and have a model with geo-coordinates would like to
use the info in the model to generate a google map view, does anyone know
what''s the best way to go round this?
is is Google API?, I''ve also seen a gmaps4rails, any comments?
Thank you in advance,
Jax
--
You received this message because you are subscribed to the Google Groups
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All,
just in a spot of bother with this gem, I am trying to create a new
location and get the above msg.
here is my controller:
class LocationsController < ApplicationController
# GET /locations
# GET /locations.json
def index
@locations = Location.all
@json = Location.all.to_gmaps4rails
end
respond_to do |format|
format.html # index.html.erb
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
2007 Jul 13
0
layers of polylines, events building up on map
Hi all,
Here''s my situation:
I have a little route creation app that lets a user create a route.
I''m using the mapstraction version of ym4r...
here is the workflow:
first page has a map displaying the start point of existing routes.
if they click "new route:
creates a route_object
clears all polylines in case there are any
clears all the markers and adds an onclick
2009 Mar 17
0
removeEventListener and polylines
Hello, my name is Mario and I''m new to Mapstraction (and to Javascript too).
I''d like to know how can I remove a listener previously added with the method addEventListener. I found nothing on the documention so I coded a removeEventListener method. If you think it will be useful I can post it (but as i said I''m a newbie to both Javascript and Mapstraction so it can be
2010 May 21
0
r83 committed - Making the geocoder pass JSLint
Revision: 83
Author: dezfowler
Date: Fri May 21 11:57:43 2010
Log: Making the geocoder pass JSLint
http://code.google.com/p/mapstraction/source/detail?r=83
Modified:
/trunk/source/mxn.google.geocoder.js
=======================================
--- /trunk/source/mxn.google.geocoder.js Wed May 19 16:33:35 2010
+++ /trunk/source/mxn.google.geocoder.js Fri May 21 11:57:43 2010
@@ -28,7 +28,7 @@
1999 Apr 17
1
Maps in R
Apologies in advance from an R newbie if this is a dumb question. Is it
possible to produce choropleth maps in R? I gather from some nice research
papers on the AT&T (sorry, Lucent) S web site that in S (and S Plus) there
is a map() function which uses arrays of polylines and regions to draw map
borders and then fill them with patterns or shades according to some scalar
quantity. We currently
2016 Jun 21
2
Problemas con tildes y otros caracteres en R y RStudio
Hola, Carlos.
Pues, efectivamente, me ha ayudado.
Sobre la utilización de la función geocode con ciudades con tilde, me dio
Carlos Gil Bellosta anteriormente la idea de utilizar iconv para
transformar la cadena de búsqueda a UTF-8, y yo lo utilicé para intentar
transformar el output de html_table sin resultado:
capitales <- read_html("
2016 Jun 21
2
Problemas con tildes y otros caracteres en R y RStudio
Hola.
Tengo algún tipo de problema con las tildes, a la hora de trabajar en R o
en RStudio, que no sé resolver.
Intentando reproducir en dos PCs distintos, ambos con Windows 7, uno de los
últimos ejercicios que ha publicado Carlos Gil Bellosta en su blog (
https://www.datanalytics.com/2016/06/20/6602-767-km-alrededor-de-espana-para-visitar-todas-sus-capitales-de-provincia/),
me ocurre que al
2016 Jun 21
2
Problemas con tildes y otros caracteres en R y RStudio
Hola, Carlos.
A mí también me resulta raro, porque no me pasa siempre. Es un poco
aleatorio. Imagino que habrá alguna razón, y que el código de la página
estará relacionado, claro, pero no consigo averiguar a qué se debe.
Además las pruebas que hago me dejan todavía más perplejo.
Esto
Encoding(capitales)
me dice que el encoding es "unknow", pero luego esto
validUTF8(capitales)
me
2012 Nov 25
1
Issue with using geocode
Hello,
A very simple question but I am stuck. I have an excel file each row is an
address. However, I cannot make geocode read each line and come up with the
latitude longitude. Could you please correct my code?
library(ggmap)
X<-c (2 Afxentiou Ampelokipi Thessaloniki Greece, 2 Afxentiou Ampelokipi
Thessaloniki Greece, 4 Afxentiou Ampelokipi Thessaloniki Greece, 55
Agathonos
2005 Dec 14
3
Geocode for Ruby
Hey,
Does anybody know of a good Geocode library for Ruby, similar to Perl''s
Geocode::Postal, that i could use in my rail app? I need to do some "within
5 miles" calculations of zipcodes and i dont have a nice ruby (or gem)
utility to do it.
any help would be appreciated.
thanks
adam
_______________________________________________
Rails mailing list
2007 Dec 01
0
mock feed
Hello generous coders,
I''m having difficulty getting a couple of tests to pass.
I have an address model which takes an address and with a callback on save
and update passes the address to google''s
geocoding service. The returned XML is parsed and saved to the address
object:
protected
def geocode_address
key = "mykey"
url =
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
2009 Feb 23
2
geokit - using :through to connect models
hello..
i am currently trying to use :through to attach two of my models
together using geokit. for some reason, i am running into a problem:
ArgumentError: Unknown key(s): as
i have two models, one that is geocoded, and one that belongs to that
model. the models look like:
,----[ employer.rb ]
| class Employer < ActiveRecord::Base
| acts_as_mappable
| before_validation_on_create
2008 Dec 05
0
Bug in schema.rb generation during db:migrate
I am thinking that I have found a bug in Rails migrations. My app is
using UUIDtools to generate guids for primary keys. To do this I
pass :id=>false and then create my own id column as shown below. Next
I leverage "execute" to create an index. It seems to work fine. The
table in MySql is perfect. However the ID column and primary key on
the ID column are not in the schema.rb file
I
2019 May 15
2
Identificar por coordenadas geográficas una calle de una ciudad
Estimados
Sobre como obtener la geolocalización, aparte de lo aportado por Rubén
Casal, también existe el api de Microsoft, lo que yo descartaría es tomar
una base de datos con geolocalización, teóricamente andarían pero si uno
por casualidad conoce la geografía real, se da cuenta de errores, salvo que
en España los datos estén correctos.
Javier Rubén Marcuzzi
El mié., 15 may. 2019 a las 8:50,
2008 Jun 16
1
Fix for IE6 bug in geocoding
Hi,
I was trying to use the geocoding stuff in Mapstraction and found a
bug with IE6. I couldn''t find a way of submitting it on Trac, so here
it is. Change line 110 of mapstraction-geocode.js from:
place = response.Placemark[0];
to:
var place = response.Placemark[0];
Otherwise IE6 doesn''t declare the variable properly and things break
in obscure ways.
Cheers,
Tom