Displaying 16 results from an estimated 16 matches for "gmarker".
Did you mean:
marker
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 type="text/javascript">
var icon_contact = addOptionsToIcon(new GIcon(),{image : "/images/
gm_contact.png",iconAnchor : new GPoint(10,34),shadow : "/images/
g...
2007 Mar 09
0
Clusterer
...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])
@map.overlay_init(clusterer)
@marker_myself = GMarker.new
([@user.user_lat, at user.user_lng], :title => @user.pseudo)
@map.center_zoom_init([@user.user_lat, @user.user_lng],zl)
@map.overlay_init(@marker_myself)
here is the generated script (with the line numbers)
<script type="text/javascript">
161 var icon_c...
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 like those links to cause
the map to recenter around that GMarker and cause it...
2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks
like YM4R GM (and Mapstraction) doesn''t support this. I need an init like:
marker = new GMarker(...
GEvent.addListener(marker, "dragend", function() { })
but the current setup makes "anonymous" markers - never creates variable
that can be used to access them. Has anyone thought about this?
Perhaps we can add a "varname" attribute to the overlays to allow
fu...
2006 Nov 02
2
Update map
...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''
end
def shift
@map = Variable.new("map")
@marker = GMarker.new([59.00000, 10.00005], :title => "Update",
:info_window =...
2007 Oct 16
3
can''t define custom GIcon
...ot;),"ap_none")
infoString = "Friendly Name: "+result.friendly_name+
"<br/>MAC: "+result.mac.to_s+
"<br/><br/><a href=''/stats/table''>Table View</a>"
marker = GMarker.new(latlng, :info_window => infoString, :icon =>
"ap_none")
point = GLatLng.new(latlng)
@gmap_markers << marker
@map.center_zoom_init(bounding_box_center(@gmap_markers), 15)
@map.overlay_global_init(GMarkerGroup.new(true, @gmap_markers),"NOI"...
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 14
0
problem with rjs and marker group
...map_stat.long.to_f], @zoom)
@map.set_map_type_init(GMapType::G_HYBRID_MAP)
@sites = @group.sites
@sites.each do |site|
# draw the circles
site.map_stat.circle_image(@zoom)
end
@all_markers = make_map_markers(@sites, @zoom)
@map.overlay_global_init(GMarkerGroup.new(true, @all_markers), "myGroup")
end
def make_map_markers(sites, zoom)
_all_markers = Hash.new
sites.each_with_index do |site, i|
# load the circles
text = site.map_stat.marker_window_html()
# r = site.map_stat.radius.to_i...
2007 Jan 18
1
Clusterer generating javascript syntax error
...ray 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
geodata.each do |geo|
markers.push(GMarker.new([geo[''lon''], geo[''lat'']],
:info_window => "Hello", :title => "HOYOYO"))
end
clusterer = Clusterer.new(markers, :max_visible_markers => 2)
session[:gmap].overlay_init(clusterer)
Then in my view I''m loadi...
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
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.
Thanks,
Simon
-------------- next part --------------
An HT...
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, @gmap_markers)
@map.overlay_global_init(group,"NOI")
@map.record_init group.center_and_zoom_on_markers
But I get the follow...
2007 Mar 04
0
Event listeners
...")
@map.control_init(:large_map => true,:map_type => true)
@adresses = []
@adresses = lookup_geocodes(@code_postal << ", france")
@adresses.each do |marker|
@latitude = marker[:latitude]
@longitude = marker[:longitude]
@marker1 = GMarker.new([marker[:latitude],marker
[:longitude]], :draggable => "true", :title =>
"myTitlei", :info_window => "myInfo...")
end
@map.overlay_init @marker1
@map.center_zoom_init([@latitude, @longitude],16)
@map.event_init(@map,:click,"f...
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
...kit''
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 for the map.
In the next step I want to initiate a map.
For this, so far I get it from the tutorial, I have to call the map in
the view via:
<html>
<head&g...
2008 Mar 04
0
question about updating the map
...ot;<strong>some text for the marker balloons</strong>"
icon = GIcon.new(:image => "/images/tmp/#{site.id}.png", :icon_size =>
GSize.new((r*2),(r*2)),
:icon_anchor => GPoint.new(r,r),
:info_window_anchor => GPoint.new(r,r))
marker = GMarker.new([site.map_stat.lat.to_f , site.map_stat.long.to_f],
:title => title, :icon => icon, :info_window => text)
the #{site.id},png is the image drawn earlier by RMagick. That is the
main thing i want to update.
thanks for any help,
shawn
2008 Mar 12
0
Execute custom code when clicking marker
...when a marker is clicked. What about
making a function (for example Marker.addListener()) which takes a
function as argument. When (for example) the GEvent is created in the
toGoogle() function, the function added by addListener() could be
assigned to the GEvent instead of the function (which calls
gmarker.openInfoWindowHtml()) that is assigned now.
Further, the addListener() function could take the event type as
argument in addition to the function, but as I do not know which events
are supported by the different map providers, I don''t know if this is a
good idea.
This could possibly elim...