similar to: marker event listeners

Displaying 20 results from an estimated 100 matches similar to: "marker event listeners"

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 Nov 12
0
info window tabs
Hi, I am having some trouble getting the :info_window_tabs option working, and was wondering if anybody else has used this. I am trying this: marker = GMarker.new(latlng, :info_window_tabs => {title => infoString}) The API says that you should pass a hash, so this is what I am trying. Is there something that I''m missing here? It seems like it should be pretty straightforward.
2008 Mar 14
0
problem with rjs and marker group
Lo there all, i have a function that builds a bunch of markers to go on a google map. I would like to update them with rjs. Here is what i have so far. def map_main_layout @zoom = params[:zoom].to_i @zoom = 14 if params[:zoom].nil? @map = GMap.new("map_div") # @map.control_init(:large_map => true, :map_type => true) # (inserts map control) # place
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 17
0
GMarkerGroup center_and_zoom_on_markers problem
Hi, I found the funcitoned mentioned in title (center_and_zoom_on_markers) but am having troubles getting it working. I have several markers being added to an array (@gmap_markers = []) in the following manner: marker = GMarker.new(latlng, :info_window => infoString, :icon => my_icon) @gmap_markers << marker I am then trying to do the following: group = GMarkerGroup.new(true,
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
2007 Mar 04
0
Event listeners
Hello.. I am playing around on a pilot project with this wonderful Rails plugin.... thanks for sharing it w us ! I read in a post , in reply to this subject yjat : Events are possible. Either through the @map.record_init "azeazeae" (for arbitrary events like domlistener) or through the @map.event_init(@map,:click,"function(){alert(''HOYOYO'');}"). The
2008 Mar 04
0
question about updating the map
Hey there all. I have a mapping app that uses ym4r_gm to build with google maps. The markers i generate use the status of a machine to determine their color. This way our customers can pull up the map and see a color coded drawing where their machine is. So, how would i go about making this to where it could update each marker every 10 minutes or so. I would like to allow our customers to leave
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
2007 Mar 09
0
(no subject)
I am trying to use the clusterer as stated in the README ( plugin is running well ...) and I got an error when displaying the map... addDescriptionToMarker is not defined (no name)()22 (line 169) (no name)()ym4r-gm.js (line 67) [Break on this error] map.addOverlay(new GMarker(new GLatLng (47.7377071331,-2.9257965088),{title : "aa... here is the generated script... <script
2007 Mar 09
0
Clusterer
trying to use a Clusterer (other capabilities are running well....) I got an error : addDescriptionToMarker is not defined => line 169 my controller.. clusterer = Clusterer.new(@my_markers, :max_visible_markers => 2, :grid_size => 10, :min_markers_per_cluster => 2, :max_lines_per_info_box => 10, :icon => icons[2])
2014 Oct 16
2
RCharts+Leaflet+Shiny
Daniel, muchas gracias por contestar y tan rápido. Pues puede ser la solución, he hecho el cambio y sigue sin pintarme los puntos -> data_ <- toJSONArray(data_, json = F) map$geoJson( # leafletR::toGeoJSON(data_, # # lat.lon = c('Lat', 'Long'), # dest=output_geofile), data_, onEachFeature =
2014 Oct 15
2
RCharts+Leaflet+Shiny
Hola, Ando un poco desesperado con los mapas interactivos de Rcharts <https://github.com/ramnathv/rCharts>+Leaflet. Estoy intentando pintar en un mapa las cámaras de tráfico de madrid, y las estaciones de calidad del aire, simplemente donde están, es decir, aun no estoy recogiendo los datos de medida. Proyecto -> https://github.com/ADIRSE/maddata He conseguido pintar ambos, con
2008 May 13
0
example of opening info windows in GMarkers
I''m quite enjoying the rapid development using Ym4r! However, I''ve hit a roadblock and would appreciate any pointers. I''ve got a map that has GMarkers on it. When you click on a GMarker a beautiful little window pops up, chock full of information. I also have a set of text links on the bottom of the page where each is associated with a single GMarker. I''d
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 Mar 12
0
Execute custom code when clicking marker
Hello there! :) I''m new to this list and new to Mapstraction. I''m working at ?stfold University College in Norway as part of the Mobile Applications Group (MAG - http://mobapp.hiof.no/) and I''m developing a tool ("Storix") for viewing digital stories with references to time and place. Take a look at http://asia.hiof.no/storix if this sounds interesting
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
2008 Mar 03
0
Routing through LatLng points and other stuff
Hi to all! Well, I''ve been trying to find a solution to route using known LatLng points - I already have the location position, all I needed was the actual route, so I''ve put together an addition to the "mapstraction-route.js". I''ve listed it below, so maybe it would not be a bad idea to merge it to the trunk... Also, I have a few other questions regarding
2010 Nov 08
1
API Google MAPS
Hello everybody, I''m working with Version 3 of Google Maps JavaScript API, and I have the next code: In a layout of my application: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?
2011 Feb 08
0
favorite pattern for adding functionality to an AR?
Do you have a preferred programming pattern for adding functionality to an ActiveRecord? As an example, say I have some gnarly trig functions for distance and bearing between pairs of latitude and longitude: === file: latlng.rb module LatLng def haversine_distance(lat1, lng1, lat2, lng2) ... end def bearing(lat1, lng1, lat2, lng2) ... end === EOF ... and I want to mix in