search for: glatlng

Displaying 7 results from an estimated 7 matches for "glatlng".

Did you mean: latlng
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/ gm_shadow.png...
2007 Mar 09
0
Clusterer
...quot;,infoWindowAnchor : new GPoint(9,2),shadowSize : new GSize(37,34),iconSize : new GSize(20,34)});var map; 164 window.onload = addCodeToFunction(window.onload,function() { 165 if (GBrowserIsCompatible()) { 166 map = new GMap2(document.getElementById("map_div")); 167 map.setCenter(new GLatLng(47.7377071331,-2.9257965088),10); 168 map.setCenter(new GLatLng(47.7377071331,-2.9257965088), 10);GEvent.addListener(map,"click",function processMoveEndEvent() { var centerPoint = map.getCenter(); }); 169 map.addOverlay(new Clusterer([addDescriptionToMarker (addInfoWindowTabsToMarker(...
2007 Dec 22
1
Ajax.Updater and JavaScript functions
...the second call does not seem to "refresh" that in the first call. The Javascript has something along the lines of : <script type="text/javascript"> splitInfo = function(splitNumber) { var splitJSON = <? echo json_encode($m_array); ?>; var latlng1 = new GLatLng(splitJSON.data[splitNumber].start_lat, splitJSON.data[splitNumber].start_lon); var latlng2 = new GLatLng(splitJSON.data[splitNumber].fin_lat, splitJSON.data[splitNumber].fin_lon); addSplitMarker(latlng1,latlng2); } </script> As you can see there is some PHP in there to insert a JS...
2007 Oct 16
3
can''t define custom GIcon
..."<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") In my view I simply have: <%= @map.div(:width => 600,:height => 400) %> When I don&...
2007 Jan 18
1
Clusterer generating javascript syntax error
...ading in the requisite javascript libraries, including clusterer and mapstraction, and then displaying the map with something like: <%= session[:gmap].div(:width => 600, :height => 400) %> However, I get this Javascript error when I view my page: illegal character 30map.setCenter(new GLatLng(38.134557,-95.537109),4);map.addOverlay(#<Ym4r::MapstractionPlugin::Clusterer:0x9b3d608>);map.addControl(new GLargeMapControl()); It seems pretty obvious that a Ruby object reference is somehow getting inserted into the generated Javascript. Removing the clusterer lines from my controller so...
2007 Mar 08
1
map not displayed after Ajax.updater request
...hor : new GPoint (10,34),shadow : "/images/gm_shadow.png" ,infoWindowAnchor : new GPoint(9,2)}); .......... var map; window.onload = addCodeToFunction(window.onload,function() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_div")); map.setCenter(new GLatLng(47.7500161647,-2.916641656), 8);GEvent.addListener(map,"click",function processMoveEndEvent () { var centerPoint = map.getCenter(); if (map.getZoom() <= 18) { processNewMapMovement()} }); map.addOverlay(contact); map.addOverlay(reference);map.addControl(new GSmallMapControl()); }...
2006 Oct 10
7
Problems with RJS w/ Lighttpd & Ubuntu
I have my code working on my local machine no problem, but when I upload to the server the RJS effects I have aren''t working. The server is running Ubuntu Dapper w/ lighttpd while on my local machine I''m using webrick. For kicks I shut down lightty and booted my app on the server with webrick and it works fine. So it''s definitely a lightty issue. Anyone else seen