what does your Ruby code look like? Using the newest Mapstraction it
should generate something like
map.addPolyline(new Polyline([new LatLonPoint(52.477863,-1.898489),new
LatLonPoint(52.47905,-1.897899),new
LatLonPoint(52.479244,-1.899454),new
LatLonPoint(52.479397,-1.901815),new
LatLonPoint(52.479473,-1.903135),new
LatLonPoint(52.479748,-1.903327),new
LatLonPoint(52.480148,-1.904057),new
LatLonPoint(52.480167,-1.904206),new
LatLonPoint(52.480068,-1.904454),new
LatLonPoint(52.479893,-1.904497),new
LatLonPoint(52.479668,-1.905183)]));
On 7/25/07, Harsha Ch <harsha.ch at gmail.com>
wrote:> 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 MarkerGroup([addDataToMarker(new
> Marker(new LatLonPoint(37.3853,-122.0172)),{infoBubble : "Maude &
Fair Oaks
> <br/> Next bus is at 14:19:00"}),addDataToMarker(new Marker(new
LatLonPoint(
> 37.3958,-121.9914)),{infoBubble : "Fairwood & Sandia <br/>
Next bus is at
> 14:37:00"}),addDataToMarker(new Marker(new
> LatLonPoint(37.4034,-121.9958)),{infoBubble : "Lawrence Expwy &
Tasman <br/>
> Next bus is at 14:40:00"}),addDataToMarker(new Marker(new LatLonPoint(
> 37.4033,-121.9801)),{infoBubble : "Old Ironsides & Tasman
<br/> Next bus is
> at 14:44:00"})],true));
>
> map.addPolyline(addDataToPolyline(new Polyline([new
> LatLonPoint(37.3853,-122.0172),new
LatLonPoint(37.3958,-121.9914)]),{opacity
> : 0.7,width : 5,color : "#FF00AB"}));
>
> });
>
>
>
>
> could any body please help me on this.
>
>
>
>
> Thanks,
>
> harsha
> _______________________________________________
> Ym4r-user mailing list
> Ym4r-user at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ym4r-user
>
--
Andrew Turner
ajturner at highearthorbit.com 42.2774N x 83.7611W
http://highearthorbit.com Ann Arbor, Michigan, USA
Introduction to Neogeography - http://oreilly.com/catalog/neogeography