<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Yahoo Maps AS3 Communication tool kit</title>
	<atom:link href="http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/feed/" rel="self" type="application/rss+xml" />
	<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/</link>
	<description>My RIA Adventures and technical rantings</description>
	<lastBuildDate>Fri, 14 Nov 2008 00:18:27 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: music</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-1543</link>
		<dc:creator>music</dc:creator>
		<pubDate>Sun, 06 Jan 2008 23:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-1543</guid>
		<description>very interesting. 
i&#039;m adding in RSS Reader</description>
		<content:encoded><![CDATA[<p>very interesting.<br />
i&#8217;m adding in RSS Reader</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evelynn</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-1367</link>
		<dc:creator>Evelynn</dc:creator>
		<pubDate>Tue, 27 Nov 2007 20:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-1367</guid>
		<description>Hi,
I&#039;m making cyclingapplication in FLEX2.
I&#039;m trying to add a marker by latlon on a map. 

The latitude and longitudes are in a xml file (database driven).
this what it should be.

the truyth is that I can&#039;t manage to add a markerby latlon on the map with de latlon given in the string.
--&gt; latLonController.addMarkerByLatLon(&quot;WaypointMarker&quot;, 51.265960, 3.034449);

can someone help me with the code? can someone help me with adding an entire route with markers on a map?

please help</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m making cyclingapplication in FLEX2.<br />
I&#8217;m trying to add a marker by latlon on a map. </p>
<p>The latitude and longitudes are in a xml file (database driven).<br />
this what it should be.</p>
<p>the truyth is that I can&#8217;t manage to add a markerby latlon on the map with de latlon given in the string.<br />
&#8211;&gt; latLonController.addMarkerByLatLon(&#8220;WaypointMarker&#8221;, 51.265960, 3.034449);</p>
<p>can someone help me with the code? can someone help me with adding an entire route with markers on a map?</p>
<p>please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digitallyinsane</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-286</link>
		<dc:creator>digitallyinsane</dc:creator>
		<pubDate>Fri, 27 Jul 2007 06:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-286</guid>
		<description>Thanks Thousand for your comment</description>
		<content:encoded><![CDATA[<p>Thanks Thousand for your comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thousand</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-285</link>
		<dc:creator>Thousand</dc:creator>
		<pubDate>Fri, 27 Jul 2007 04:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-285</guid>
		<description>Thank you so much for this *minor* alteration! I&#039;ve just finished trying everything I could to grab the title property, and was about to give up. It&#039;s comforting to know the value wasn&#039;t available in the first place :)</description>
		<content:encoded><![CDATA[<p>Thank you so much for this *minor* alteration! I&#8217;ve just finished trying everything I could to grab the title property, and was about to give up. It&#8217;s comforting to know the value wasn&#8217;t available in the first place <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Show the marker on the map on the click on the map &#171; digitallyinsane</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-13</link>
		<dc:creator>Show the marker on the map on the click on the map &#171; digitallyinsane</dc:creator>
		<pubDate>Thu, 05 Apr 2007 09:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-13</guid>
		<description>[...] had written a comment in my post of Yahoo maps communication toolkit , upto my understanding I think he is trying to put some marker whenever user clicks somewhere on [...]</description>
		<content:encoded><![CDATA[<p>[...] had written a comment in my post of Yahoo maps communication toolkit , upto my understanding I think he is trying to put some marker whenever user clicks somewhere on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-11</link>
		<dc:creator>G</dc:creator>
		<pubDate>Wed, 04 Apr 2007 15:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-11</guid>
		<description>Hey guys,

I&#039;m using Flex 2, and trying to use Yahoo&#039;s new AS3 Maps libraries. I am trying to place a marker on the map wherever and whenever a user clicks on the map. I am getting some strange behavior from the addMarkerByLatLon function. Hope you can help me out :) Below is some of my code:

//these two lines are called when the map initializes
var d:MapEventDispatcher = new MapEventDispatcher(myAS2Map);
d.addEventListener(&#039;onClick&#039;, onClick);

//this is my onClick function
private function onClick(ev:MapEvent):void{

var llc:LatLonController = new LatLonController(myAS2Map);
var point:Object = {latitude:ev.lastResult.latlon.x, longitude:ev.lastResult.latlon.y};          	
		
var latNum:Number = new Number(point.latitude);
var lonNum:Number = new Number(point.longitude);

llc.addMarkerByLatLon(&#039;WaypointMarker&#039;, latNum, lonNum, &#039;&#039;);
			
Alert.show(&quot;Lat: &quot; + point.latitude + &#039;\n&#039; + &quot;Lon: &quot; + point.longitude + &#039;\n&#039; + &quot;Latx: &quot; + ev.lastResult.latlon.x + &#039;\n&#039; + &quot;Lony: &quot; + ev.lastResult.latlon.y);

}

When a user clicks on the map, the alert displays the correct latlons.
The first time a user clicks on the map, a marker is placed, but only at the center. For any subsequent clicks on the map, the Alert displays the correct latlon but no marker is displayed!

What could I be missing? Your help would be much appreciated!
G</description>
		<content:encoded><![CDATA[<p>Hey guys,</p>
<p>I&#8217;m using Flex 2, and trying to use Yahoo&#8217;s new AS3 Maps libraries. I am trying to place a marker on the map wherever and whenever a user clicks on the map. I am getting some strange behavior from the addMarkerByLatLon function. Hope you can help me out <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Below is some of my code:</p>
<p>//these two lines are called when the map initializes<br />
var d:MapEventDispatcher = new MapEventDispatcher(myAS2Map);<br />
d.addEventListener(&#8216;onClick&#8217;, onClick);</p>
<p>//this is my onClick function<br />
private function onClick(ev:MapEvent):void{</p>
<p>var llc:LatLonController = new LatLonController(myAS2Map);<br />
var point:Object = {latitude:ev.lastResult.latlon.x, longitude:ev.lastResult.latlon.y};          	</p>
<p>var latNum:Number = new Number(point.latitude);<br />
var lonNum:Number = new Number(point.longitude);</p>
<p>llc.addMarkerByLatLon(&#8216;WaypointMarker&#8217;, latNum, lonNum, &#8221;);</p>
<p>Alert.show(&#8220;Lat: &#8221; + point.latitude + &#8216;\n&#8217; + &#8220;Lon: &#8221; + point.longitude + &#8216;\n&#8217; + &#8220;Latx: &#8221; + ev.lastResult.latlon.x + &#8216;\n&#8217; + &#8220;Lony: &#8221; + ev.lastResult.latlon.y);</p>
<p>}</p>
<p>When a user clicks on the map, the alert displays the correct latlons.<br />
The first time a user clicks on the map, a marker is placed, but only at the center. For any subsequent clicks on the map, the Alert displays the correct latlon but no marker is displayed!</p>
<p>What could I be missing? Your help would be much appreciated!<br />
G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-6</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Mon, 26 Mar 2007 13:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-6</guid>
		<description>I was able to answer my own question for het POI issue.  The answer to that was:

ev.lastResult.title
and
ev.lastResult.description

I wanted to know the dotted notation, rather then the generic array ref approach.

I still don&#039;t know what the dotted notation for the latlon should be for an event such as:

ev.lastResult.latlon

The object type is &quot;point&quot;, but nowhere is it described that I was able to unearth.  My solution for referencing it was dumb, but I was in a rush.

Thanks for your input.</description>
		<content:encoded><![CDATA[<p>I was able to answer my own question for het POI issue.  The answer to that was:</p>
<p>ev.lastResult.title<br />
and<br />
ev.lastResult.description</p>
<p>I wanted to know the dotted notation, rather then the generic array ref approach.</p>
<p>I still don&#8217;t know what the dotted notation for the latlon should be for an event such as:</p>
<p>ev.lastResult.latlon</p>
<p>The object type is &#8220;point&#8221;, but nowhere is it described that I was able to unearth.  My solution for referencing it was dumb, but I was in a rush.</p>
<p>Thanks for your input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digitallyinsane</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-5</link>
		<dc:creator>digitallyinsane</dc:creator>
		<pubDate>Mon, 26 Mar 2007 06:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-5</guid>
		<description>Hi Mario,
Can you please elaborate more on this..
As per my understanding the following loop does the trick as title and all other information about point of interest data is stored in the marker object and you can get the marker object and all the properties of the marker object by this loop ..

for (var p in myMarker) {
rtnObj[p] = myMarker[p].toString();
}

So you will be able to get the latitude and longitude information using the rtnObj 
Hope that Helps,
Regards,
Anupam</description>
		<content:encoded><![CDATA[<p>Hi Mario,<br />
Can you please elaborate more on this..<br />
As per my understanding the following loop does the trick as title and all other information about point of interest data is stored in the marker object and you can get the marker object and all the properties of the marker object by this loop ..</p>
<p>for (var p in myMarker) {<br />
rtnObj[p] = myMarker[p].toString();<br />
}</p>
<p>So you will be able to get the latitude and longitude information using the rtnObj<br />
Hope that Helps,<br />
Regards,<br />
Anupam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-4</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Sun, 25 Mar 2007 09:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/#comment-4</guid>
		<description>The docs are weak in this regard.  For the following, code how should the &quot;ev&quot; variable be referenced to get back the point of interest data?

private function onPOIClicked(ev:Object):void
{
  title.text = ev.???;
}

What is the object reference supposed to be in this case above?

As a bonus, I have included below a snippet of something that should have been easy to figure out had the docs been more complete:

private function onMapClick(ev:MapEvent):void
{
  var llpat:RegExp =  /point\((.*)\,(.*)\)/i;
  var rs:String;
  var ro:Object;

  rs = ev.lastResult.latlon;
				
  if ( llpat.test(rs) == true )
  {
    ro = llpat.exec(rs);
    selLatitude = ro[2];
    selLongitude = ro[1];
					
    latitudevalue.text = selLatitude.toString();
    longitudevalue.text = selLongitude.toString();
					
    var myMarker:Object = {index:&#039;M!&#039;, title:&#039;My Mark&#039;, description:&#039;This is a marker!\nIt is located here.&#039;, markerColor:0x999900, strokeColor:0xFF00FF};

    latLonController.addMarkerByLatLon(&#039;CustomPOIMarker&#039;, selLatitude, selLongitude, myMarker);
//latLonController.addMarkerByLatLon(&#039;&#039;,selLatitude, selLongitude, {waypointIndex:&#039;M&#039;});
  }
}

Note that there is probably a better way to access the latlon variable.  I found no meaningful examples describing this.</description>
		<content:encoded><![CDATA[<p>The docs are weak in this regard.  For the following, code how should the &#8220;ev&#8221; variable be referenced to get back the point of interest data?</p>
<p>private function onPOIClicked(ev:Object):void<br />
{<br />
  title.text = ev.???;<br />
}</p>
<p>What is the object reference supposed to be in this case above?</p>
<p>As a bonus, I have included below a snippet of something that should have been easy to figure out had the docs been more complete:</p>
<p>private function onMapClick(ev:MapEvent):void<br />
{<br />
  var llpat:RegExp =  /point\((.*)\,(.*)\)/i;<br />
  var rs:String;<br />
  var ro:Object;</p>
<p>  rs = ev.lastResult.latlon;</p>
<p>  if ( llpat.test(rs) == true )<br />
  {<br />
    ro = llpat.exec(rs);<br />
    selLatitude = ro[2];<br />
    selLongitude = ro[1];</p>
<p>    latitudevalue.text = selLatitude.toString();<br />
    longitudevalue.text = selLongitude.toString();</p>
<p>    var myMarker:Object = {index:&#8217;M!&#8217;, title:&#8217;My Mark&#8217;, description:&#8217;This is a marker!\nIt is located here.&#8217;, markerColor:0&#215;999900, strokeColor:0xFF00FF};</p>
<p>    latLonController.addMarkerByLatLon(&#8216;CustomPOIMarker&#8217;, selLatitude, selLongitude, myMarker);<br />
//latLonController.addMarkerByLatLon(&#8221;,selLatitude, selLongitude, {waypointIndex:&#8217;M'});<br />
  }<br />
}</p>
<p>Note that there is probably a better way to access the latlon variable.  I found no meaningful examples describing this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
