<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	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>MapQuest Actionscript 3.0 Learning and Blogging</title>
	<atom:link href="http://mqguru.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mqguru.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 19 Oct 2010 20:44:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mqguru.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>MapQuest Actionscript 3.0 Learning and Blogging</title>
		<link>http://mqguru.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mqguru.wordpress.com/osd.xml" title="MapQuest Actionscript 3.0 Learning and Blogging" />
	<atom:link rel='hub' href='http://mqguru.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Mapping Essentials of UIUX</title>
		<link>http://mqguru.wordpress.com/2010/10/19/mapping-essentials-of-uiux/</link>
		<comments>http://mqguru.wordpress.com/2010/10/19/mapping-essentials-of-uiux/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 20:44:59 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapping]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=88</guid>
		<description><![CDATA[So, I have been tooling around on the internet for years now.  For the last three I have really been working on seeing what is happing with maps all over the web.  I have to say that there are great use cases for small maps and large maps alike.  They each have their place and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=88&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, I have been tooling around on the internet for years now.  For the last three I have really been working on seeing what is happing with maps all over the web.  I have to say that there are great use cases for small maps and large maps alike.  They each have their place and time in the light.  I actually have one application that uses a very large percentage of the screen for the map, and another for a use case that calls for a 4X4 size put down so the user gets a &#8220;quick glimpse&#8221;. </p>
<p>The next thing I noticed is that there are also sets of tools for each job.  Some tools are complicated while some are as standard as alloy wheels today.  But one thing I think people are starting to miss on maps is the ability for the map to &#8220;be alive&#8221;.  Static maps might have their place as a picture for a log or something, but for a UX setting, well they suck.  So I go to any given site and they give me a map that shows me the location I have been longing for all my life.  &#8220;That is fantastic!  I wanted to know where that place was yes!  Good, let me zoom in a little just to&#8230; oh wait.  What is going on, the mouse wheel doesn&#8217;t zoom?  Ok, well lets look for some buttons right&#8230; because I need to see&#8230; where the hell are the buttons?  &#8220;  Does that sound familiar to you?  That has happened to me on a couple of different sites now and I am starting to get really annoyed.  Just because you can show your location to people doesn&#8217;t mean they &#8220;know&#8221; where the place is.  They should be able to zoom and pan around in the map.</p>
<p>So how does this affect the user?  Well, the user will do one of two things depending on motive:</p>
<ol>
<li>Leave your site and say they don&#8217;t care about your store. (If the user is just hoping that you are close and isn&#8217;t sold on you, you just lost the sale)</li>
<li>Open up a &#8220;Trusted&#8221; mapping solution and see if they can locate your store. (If the store is new or not mappable, you probably lost that business too)</li>
</ol>
<p>Think your map doesn&#8217;t need the basics?  Think of why you put the map on your site in the first place.  Most of you would say something like &#8220;I want my customer to have an easier time finding our store.&#8221;  Fantastic and quite ironic, because the customer is coming to your site to find out how they can buy your product or visit your store.  Now, they can&#8217;t pan around the map or zoom in for a better look so they can see just how they can get there.  You are defeating your own purpose if you are doing this.</p>
<p>In short, make sure that you have all the tools your users are going to want, especially when the tools are the basics.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=88&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/10/19/mapping-essentials-of-uiux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrade from 5.3 to 6.0 (the finally to the saga)</title>
		<link>http://mqguru.wordpress.com/2010/09/14/upgrade-from-5-3-to-6-0-the-finally-to-the-saga/</link>
		<comments>http://mqguru.wordpress.com/2010/09/14/upgrade-from-5-3-to-6-0-the-finally-to-the-saga/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 18:19:27 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest 6.0]]></category>
		<category><![CDATA[polygons]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=72</guid>
		<description><![CDATA[So I finally have our Map Application back up and functioning as it should be with the new version of MapQuest API 6.0.  This upgrade has been a good learning experience to find some places in my code that were a little behind, and well needed some attention.  We also got to refactor some of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=72&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I finally have our Map Application back up and functioning as it should be with the new version of MapQuest API 6.0.  This upgrade has been a good learning experience to find some places in my code that were a little behind, and well needed some attention.  We also got to refactor some of our XML that we store and drop the size of our DB a little too with this upgrade. </p>
<p>The last of the findings:</p>
<ol>
<li>Polygon Overlays are fun but watch for two things:
<ol>
<li><strong>Copy does not make a true copy</strong>.  It is giving by reference the Drawing of the polygon of the map to the new Polygon you are making.  This will cause greif and utter frustration that took me about 3 days to figure out.  <strong>The Fix</strong>:  Create a new polygon overlay and just get the shapepoints from the old one and let the Polygon overlay draw you a new polygon.</li>
<li><strong>setVisible = visible</strong>.  So the old setVisible function looks like it might get depricated and go to visible.  They both do the same thing just pay attention if your visibility issues start popping up one upgrade.</li>
</ol>
</li>
<li><strong>DisplayObjectOverlays.displayObject</strong>:  When you create a display object overlay and add content to it, you will need to call do.addChild() with the content you just assigned.  What happens?  You will not see your object on the screen.  If you add the child your object will appear.</li>
<li>There seems to be an issue with <strong>loading tiles</strong> with the new version of <strong>Adobe Flash Player 10.1</strong>.  This really is not a problem with the new API but it is an issue with the player itself and happens with 5.3.2 as well.  There is a fix out there for that too that can help.  The MQ guys say you can just pan 0 % to make sure that it doesn&#8217;t happen to you.  What I saw were grey and white tiles left of the map when I used the zoom wheel, panned the map or changed the map type.  So I wrote a fun function called adobeBugShift() to help out with that.  Here is what I am using, I just extended the map and added it in as a function:</li>
</ol>
<blockquote><p> public function adobeBugShift():void<br />
{<br />
this.panSouthWest(0);<br />
}</p></blockquote>
<p>The people at MQ know about the issues and I am sure they will be on them soon.  I don&#8217;t have a timeline for them, but I bet they make it in the next couple of releases that come out.</p>
<p>What excites me?  When things just work better and faster.  Here are some of the things that seem to have changed.</p>
<ul>
<li>Polygons produce faster, we throw hundreds or thosands of these things out there and it works very well, seems a bit faster.</li>
<li>Declutter has some animation and is faster.  Oh and I didn&#8217;t even have to change much there.</li>
<li>Thanks to the new Flash player and better code from MQ the footprint is way smaller.  Did flash player even do GC before because wow!?</li>
</ul>
<p>Have you upgraded from 5.3 to 6.0?  Do you want to?  Honestly it was not too bad, just took some time to work out the few bugs that we had because I have honestly 100 custom classes that utilize their classes and well it only really took me a week to do.  I had a lot of other projects in the fire as well.  With these tips and updates you guys should be able to do it much faster if you were doing some similar things.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=72&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/09/14/upgrade-from-5-3-to-6-0-the-finally-to-the-saga/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading to 6.0 (Pois Geocoder / Decluttering)</title>
		<link>http://mqguru.wordpress.com/2010/08/30/upgrading-to-6-0-pois-geocoder-decluttering/</link>
		<comments>http://mqguru.wordpress.com/2010/08/30/upgrading-to-6-0-pois-geocoder-decluttering/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 21:46:29 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest 6.0]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=79</guid>
		<description><![CDATA[Ok, so the POI changes went pretty quick to get back to what I had before without decluttering considered.  The biggest change was changing all the old objects into the new object. Before(with 5.3), I used the GeoAddress and the Address.  I used those a lot when I had all the information that I needed and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=79&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok, so the POI changes went pretty quick to get back to what I had before without decluttering considered.  The biggest change was changing all the old objects into the new object. Before(with 5.3), I used the GeoAddress and the Address.  I used those a lot when I had all the information that I needed and when I didn&#8217;t.  I could make a GeoAddress.  So <strong>to replace the GeoAddress we now use the GeocoderLocation</strong>.  This typically comes back from the service, but you can create one at any time.  Give it the appropriate information and then create a POI from that information, or pass it to their service, create the whole GeocoderLocation and then create the function.  A quick example would be good to show.</p>
<p> function addPoi(object)<br />
{<br />
    if(object.location != null)<br />
    {<br />
      var geoLocation:GeocoderLocation = new GeocoderLocation;<br />
      //set all the GeocoderLocation stuff here<br />
     makePoi(geoLocation);<br />
    }<br />
    else<br />
    {<br />
<span style="color:#6699cc;font-size:x-small;"><span style="color:#6699cc;font-size:x-small;"><strong>     </strong>var </span></span><span style="font-size:x-small;">geoCoder:Geocoder <strong>=</strong> </span><span style="color:#0033ff;font-size:x-small;"><span style="color:#0033ff;font-size:x-small;">new</span></span><span style="font-size:x-small;"> Geocoder(</span><span style="color:#0033ff;font-size:x-small;"><span style="color:#0033ff;font-size:x-small;">new</span></span><span style="font-size:x-small;"> MapConstants().MAP_KEY);<br />
<strong>     </strong></span><span style="color:#6699cc;font-size:x-small;"><span style="color:#6699cc;font-size:x-small;">var </span></span><span style="font-size:x-small;">address:GeocoderLocation <strong>=</strong> </span><span style="color:#0033ff;font-size:x-small;"><span style="color:#0033ff;font-size:x-small;">new</span></span><span style="font-size:x-small;"> GeocoderLocation();</span></p>
<p> <span style="font-size:x-small;">    geoCoder.addEventListener(GeocoderEvent.GEOCODE_RESPONSE, ProperResult);<br />
     geoCoder.addEventListener(GeocoderEvent.GEOCODE_ERROR_EVENT, SearchError);<br />
     geoCoder.addEventListener(GeocoderEvent.HTTP_ERROR_EVENT, HTTPError);<br />
</span>     address.street = lampoPoi.getAddressLampo().getStreet1();<br />
     address.city = lampoPoi.getAddressLampo().getCity();<br />
     address.state = lampoPoi.getAddressLampo().getStateCode();<br />
     address.postalCode = lampoPoi.getAddressLampo().getPostalCode();<br />
<span style="font-size:x-small;">     geoCoder.geocode(geoLocation);<br />
    }<br />
}</span><span style="font-size:x-small;"> </span></p>
<p><span style="font-size:x-small;">public function ProperResult(</span><span style="font-size:x-small;">evt:GeocoderEvent):void<br />
{<br />
     makePoi(geoLocation);<br />
</span><span style="font-size:x-small;">}</span></p>
<p><span style="font-size:x-small;"> </p>
<p><strong>Decluttering is actually much easier to change than I thought</strong>.  This simple function will make you decluttering work in 6.0.  Before I was thinking you would have to put everything in a shape collection but actually you can just call it on the map itself.  This is really nice to be able to do.  THANKS MAPQUEST!  Oh and there is Animation added now.  Pretty sweet.</p>
<p>  private function initDeclutter():void<br />
{<br />
 var cd:IDeclutter;<br />
 cd =  new ForceDeclutter();<br />
 var lines:LeaderLines = new LeaderLines();<br />
 this.myMap.leaderLines = lines;<br />
 this.myMap.declutter = cd;<br />
}</p>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=79&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/08/30/upgrading-to-6-0-pois-geocoder-decluttering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading MapQuest 5.3 to 6.0 (Drawing Changes)</title>
		<link>http://mqguru.wordpress.com/2010/08/27/upgrading-mapquest-5-3-to-6-0-drawing-changes/</link>
		<comments>http://mqguru.wordpress.com/2010/08/27/upgrading-mapquest-5-3-to-6-0-drawing-changes/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 18:57:09 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest 6.0]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=75</guid>
		<description><![CDATA[Alright, I got everything changed enough to get my program to compile and we are up and at it seeing what else gets to change.  I was able to pin down a few changes and these are pretty good and easy.  This post is everything I found when changing over my Drawing files and making [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=75&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Alright, I got everything changed enough to get my program to compile and we are up and at it seeing what else gets to change.  I was able to pin down a few changes and these are pretty good and easy.  This post is everything I found when changing over my Drawing files and making sure all that works.  So here we go!</p>
<p>to get the Display Objects:  If you were using the myMap.getShapes() function you can call myMap.getDisplayObjectOberlays()  this will return a shapeCollection just like you had before.  You could also call myMap.shapes that returns an Array though&#8230; and then you have to deal with the array instead of a ShapeCollection.</p>
<p>When working with the ShapeCollection:  getSize() is now length, and get(i) is now getShapeByIndex(i)  still gets you what you need.</p>
<p>I had to tell the map when I am drawing on it to Disable the Drag by saying myMap.<span style="font-size:x-small;">tileMap.enableDragging(</span><strong><span style="color:#0033ff;font-size:x-small;"><span style="color:#0033ff;font-size:x-small;">false</span></span><span style="font-size:x-small;">); </span></strong></p>
<p><span style="font-size:x-small;">My cursors were Bitmaps and now they need to be Sprites so just create a new Sprite and call sprite.addChild(bitmap);</span></p>
<p><span style="font-size:x-small;">Those are all the changes that I have found that revolve around all my drawing tasks.  Some of this would also fall under some other tasks, but this should get us going.  These changes so far are good and easy to fix.  Thanks for the help so far MapQuest!</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=75&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/08/27/upgrading-mapquest-5-3-to-6-0-drawing-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading Mapquest 5.3 to 6.0 (3)</title>
		<link>http://mqguru.wordpress.com/2010/08/19/upgrading-mapquest-5-3-to-6-0-3/</link>
		<comments>http://mqguru.wordpress.com/2010/08/19/upgrading-mapquest-5-3-to-6-0-3/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 22:28:57 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest 6.0]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=55</guid>
		<description><![CDATA[OK, so some further research has yielded more results. 1. PointXY is now Point(flash version of Point) 2. GeoAddress and Address looks like it has become GeocoderLocation (you can load some of the same info over this item as your could the other two. I have still not been able to complete the build yet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=55&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OK, so some further research has yielded more results.</p>
<p>1. PointXY is now Point(flash version of Point)<br />
2. GeoAddress and Address looks like it has become GeocoderLocation (you can load some of the same info over this item as your could the other two. I have still not been able to complete the build yet so I don&#8217;t know.)<br />
3. Decluttering is a whole new ball game. I have not tackled this one yet, but it looks promising. I have been saving that one for later. I am not sure if i was using shape collections before. The new decluttering looks like it only does it per shape collection. You could at worse create one big shape collection and throw that one on the map.<br />
4. I noticed a new Object Parcel. I am not sure what it is doing at this time.</p>
<p>I still am figuring out a couple more things but this seems to be some of the big things. I spent an hour or so just cleaning up all the old setters and getters from before into just setting the public variables.</p>
<p>I must stress how much I like their new GeoCoder Object. It is the way you used to use the Exec object. It is a cleaner use and will save me a class that I was using to setup the Exec for the send.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=55&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/08/19/upgrading-mapquest-5-3-to-6-0-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading from 5.3 to 6.0</title>
		<link>http://mqguru.wordpress.com/2010/08/19/upgrading-from-5-3-to-6-0/</link>
		<comments>http://mqguru.wordpress.com/2010/08/19/upgrading-from-5-3-to-6-0/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 14:09:12 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest 6.0]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=59</guid>
		<description><![CDATA[Here are some other changes of interest: looks like TilmapComponent.addPoi() now should be TilemapComponent.addShape().  It looks like you can pass the POI right into it since it takes an IShape and it works ok. Many Interface classes have been dropped.  You should now be able to use the base classes.  I got a good email [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=59&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are some other changes of interest:</p>
<p>looks like TilmapComponent.addPoi() now should be TilemapComponent.addShape().  It looks like you can pass the POI right into it since it takes an IShape and it works ok.</p>
<p>Many Interface classes have been dropped.  You should now be able to use the base classes. </p>
<p>I got a good email and post from the MapQuest Team, thanks Brian!</p>
<p>Here is the post:  There really is no upgrade path since the v6 sdks (AS and JS) were redone from the ground up. Some classes from v5 were abandoned, like the &#8220;I&#8221; interface classes. These have been replaced with their base classes: IRectLL is RectLL and IPointLL is now PointLL&#8230;</p>
<p>The Exec class for geocode, search, and route functionality has been completely replaced by the web services. Further documentation for the web services can be found in the left hand navigation menu.</p>
<p>The sample code provided for v6 should show most of the changes you need to make. <a href="http://www.mapquestapi.com/sdk/as/asfxsamples/">http://www.mapquestapi.com/sdk/as/asfxsamples/</a></p>
<p>I love the MapQuest team though.  They are willing and ready to help out whenever you need it.  Forums and some quality service are just a call or email away.</p>
<p>Thanks guys for the heads up.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=59&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/08/19/upgrading-from-5-3-to-6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading from 5.3 to 6.0 (the beginning)</title>
		<link>http://mqguru.wordpress.com/2010/08/18/upgrading-from-5-3-to-6-0-the-beginning/</link>
		<comments>http://mqguru.wordpress.com/2010/08/18/upgrading-from-5-3-to-6-0-the-beginning/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 22:07:28 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest 6.0]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=56</guid>
		<description><![CDATA[So, I am back.  Finally able to devote some time to this because well, they told me I could work on my project again.  We are wanting to upgrade our 5.3.2 API up to the 6.0 API because we want to take flash player up to 10.1.  Well, you might think hey you shouldn't have to do that, but we noticed there was a lot of issues with 5.3.2 loading the tiles up in flash 10.1.  The tiles would load then some would turn grey and say loading even though they loaded fine earlier.  More so in FireFox than IE, but still it is there in both.  We also noticed that 6.0 was not having this issue on the example apps so thus the upgrade.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=56&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, I am back.  Finally able to devote some time to this because well, they told me I could work on my project again.  We are wanting to upgrade our 5.3.2 API up to the 6.0 API because we want to take flash player up to 10.1.  Well, you might think hey you shouldn&#8217;t have to do that, but we noticed there was a lot of issues with 5.3.2 loading the tiles up in flash 10.1.  The tiles would load then some would turn grey and say loading even though they loaded fine earlier.  More so in FireFox than IE, but still it is there in both.  We also noticed that 6.0 was not having this issue on the example apps so thus the upgrade. </p>
<p>So downloaded the new API.  To my surprise it was only one SWC file as the others have been multiple files.  Cool, at the first look it is a good thing that they are down to 1 file, less for subversion to handle.  Then I did the dreaded thing;  I compiled the code.  50 errors.  YIKES, what happened&#8230;?  In saying with every upgrade come the loss of some of the old code.  I have experienced this other times and it can be very frustrating.  I took to digging into the documentation and trying to figure out what is going on.  There is a lack of documentation that lets me know what objects and functions have been depricated and what I can use to replace what I was using.  Some of the quick ones are (IPointLL, Exec, GeoAddress, IPointLLCollection, LocationCollection, Address, PointXY).   It seems we also lost some of the methods in a PolygonOverlay(setFillColor, setFillColorAlpha, setColor, setColorAlpha, setBorderWidth) which I was overriding to accomplish some of our goals.   </p>
<p>To start going through this I am going through there tutorials and example code trying to see what changed. </p>
<p style="padding-left:30px;">Exec has been replaced with a Geocoder object.  I like this object a lot better.  All it seems you need to give it is the API KEY you get from MapQuest.  Good change from all the other information that you had to give to the Exec object.</p>
<p style="padding-left:30px;">GeoAddress is now the <span style="font-size:x-small;">GeocoderLocation object.  However it is lacking the actual functions that bring back the public variables which I had coded all over the place.  </span></p>
<p style="padding-left:30px;"><span style="font-size:x-small;">LocationCollection has changed to become a standard Array which you might want to use ArrayCollection where you were using LocationCollection.</span></p>
<p style="padding-left:30px;"><span style="font-size:x-small;">Poi also had a little change, it looks like poi.getLatLng() is just poi.latLng (my guess is that a lot of the getters and setters are off of the objects now.</span></p>
<p><span style="font-size:x-small;">This is all I have found so far in sifting through the tutorials and trying to get updated.  If anyone else has gone through the upgrade please let me know what you have found that has changed.  I plan ok keeping this updated as I go on as well.  Keep posted for more of the updates.  </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=56&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/08/18/upgrading-from-5-3-to-6-0-the-beginning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Combining Multiple Images to Make Custom Dynamic POIs</title>
		<link>http://mqguru.wordpress.com/2010/02/05/combining-multiple-images-to-make-custom-dynamic-pois/</link>
		<comments>http://mqguru.wordpress.com/2010/02/05/combining-multiple-images-to-make-custom-dynamic-pois/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 17:51:18 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[flash mapping]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[POI]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=49</guid>
		<description><![CDATA[In English what I want to do is bring in the image as a class, turn it into a Bitmap then get the Bitmap-Data out of it.  Call Merge on Bitmap data and pass in the proper information and get back some new Bitmap data.  We will then turn that into a Bitmap and put is into a Map Icon.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=49&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got a fun problem to work on and it was creating a POI that would have certain data on it depending on what was going on with the data.  This was a big thing for our users to give the a better overview as to what was happening with certain POIs.  We have a basic POI for different types of things and we don&#8217;t want to stray away from that, so what are we to do.  We could have made about 3 dozen more POIs but then we are trying to imbed all kinds of images and that is just not any fun.  So I wanted to try programmatic approach.  We decided that it would be good to add a badge to the upper right corner of the POI to make it stand out a little more.</p>
<p>So here comes the How-to.  It seems pretty simple now that I am writing it, but it was a little bit of a pain to figure it out.  In English what I want to do is bring in the image as a class, turn it into a Bitmap then get the Bitmap-Data out of it.  Call Merge on Bitmap data and pass in the proper information and get back some new Bitmap data.  We will then turn that into a Bitmap and put is into a Map Icon.</p>
<p>/*We can set this as a class/global variable so the functions know what kind of multiplier we need.  This is just a number to know how much the merge should combine the two images*/</p>
<pre>private var mult:uint = 0xff; //</pre>
<pre>private function createPoiBitmap(mainPoi:Bitmap,initials:String,fontSize:Number = 10):Bitmap
{
//this is the main graphic for the POI that I need to get.
var bmdMainPoi:BitmapData = mainPoi.bitmapData;
//this is the bitmap that will house the whole picture.
var holder:BitmapData = new BitmapData(45, 34, true, 0X00000000);
//this is the main POI that got pulled
var rectItm:Rectangle = new Rectangle(3, 4, bmdMainPoi.width - 7, bmdMainPoi.height);
//this is the rectangle placement and size it will pull from the bitmap
var ptItm:Point = new Point(8, 9);//this is the point at which the merged item will be placed.
if(initials.length &gt; 0)
{
   //this is initial badge that we need to put on
   var bmdBadge:BitmapData = getBadgeWithText(initials,fontSize).bitmapData;
   //this is the name badge that was made.
   //this is the rectangle placement and size it will pull from the bitmap
   var rectBadge:Rectangle = new Rectangle(0, 0, bmdBadge.width -1, bmdBadge.height - 1);
   var ptBadge:Point = new Point(13, 0);//this is the point at which the merged item will be placed.
   //add the new items to the holder image
   holder.merge(bmdBadge,rectBadge,ptBadge,mult,mult,mult,mult);
}</pre>
<pre>holder.merge(bmdMainPoi,rectItm,ptItm,mult,mult,mult,mult);
//make the holder image a bitmap and add it to the screen
var bm1:Bitmap = new Bitmap(holder);
return bm1;
}</pre>
<p>The following piece of code is actually adding the Text into the image.  It is going to load up an object that I am caching so it doesn&#8217;t have to build it every time.  I took out that if statement so you could see how it works.</p>
<pre>private function getBadgeWithText(initials:String,fontSize:Number = 10):Bitmap
{
var object = getMyObject(); //this gets me a custom object so i can get and set bitmaps
var bmdInitbadge:BitmapData = object.getEmptyBadge().bitmapData;
var textitm:BitmapData = new BitmapData(10, 30, true, object.getBackgroundColor());
var txtFrmt:TextFormat = new TextFormat('Arial',fontSize,0xFFFFFF);
var uit:UITextField = new UITextField();
uit.background = true;
uit.backgroundColor = object.getBackgroundColor();
uit.text = object.getInitials();
uit.setTextFormat(txtFrmt);
var textBitmapData:BitmapData = ImageSnapshot.captureBitmapData(uit);
var rectText:Rectangle = new Rectangle(3, 3, 14, 10);
var ptText:Point = new Point(8, 7);//this is the point at which the merged item will be placed.
textitm.merge(textBitmapData,rectText,ptText,mult,mult,mult,mult);
bmdInitbadge.merge(textBitmapData,rectText,ptText,mult,mult,mult,mult);
var bmReturn:Bitmap = new Bitmap(bmdInitbadge);
object.setCompletedBadge(bmReturn);
return object.getCompletedBadge();
}</pre>
<p>At this Point another function that called all this can set the Bitmap into the MapIcon</p>
<pre>var icn:MapIcon = new MapIcon();
icn.setImage(createPoiBitmap(getMainIcn(),"ME",10));</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=49&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2010/02/05/combining-multiple-images-to-make-custom-dynamic-pois/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Zooming like a big boy</title>
		<link>http://mqguru.wordpress.com/2009/10/19/zooming-like-a-big-boy/</link>
		<comments>http://mqguru.wordpress.com/2009/10/19/zooming-like-a-big-boy/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 20:58:13 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centering]]></category>
		<category><![CDATA[zooming]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/2009/10/19/zooming-like-a-big-boy/</guid>
		<description><![CDATA[Wow, so I have had a ticket sitting in my queue for some time now that I didn&#8217;t think would be easy. What we had to do was to Zoom in the user but leave the location of the Zoom in the same place it was on the map. After much thinking (about two hours) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=48&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Wow, so I have had a ticket sitting in my queue for some time now that I didn&#8217;t think would be easy.  What we had to do was to Zoom in the user but leave the location of the Zoom in the same place it was on the map.  After much thinking (about two hours) I came up with my solution.  </p>
<p>The principle is simple.  Figure out where the users mouse is.  Get the XY, zoom in figure out what LatLng is in that XY Position, get the difference.  Then apply the difference to center point and set the new center point.  </p>
<p>public function zoomMapKeepingXYCoords():void<br />
{<br />
	var mouseXY:IPointXY = new PointXY(myMap.mouseX, myMap.mouseY);<br />
	var mouseLL:IPointLL = myMap.pixToLL(new PointXY(myMap.mouseX, myMap.mouseY))<br />
	setZoom(myMap.getZoomLevel() + 1);<br />
	var newLLatXY:IPointLL = myMap.pixToLL(mouseXY);<br />
	var latDiff:Number = mouseLL.lat &#8211; newLLatXY.lat;<br />
	var lngDiff:Number = mouseLL.lng &#8211; newLLatXY.lng;<br />
	var centerAftZoom:IPointLL = myMap.getCenter();<br />
	var newCenter:IPointLL = new PointLL(myMap.getCenter().lat + latDiff,myMap.getCenter().lng + lngDiff );<br />
	myMap.setCenter(newCenter);</p>
<p>}</p>
<p>Have Fun!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=48&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2009/10/19/zooming-like-a-big-boy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
		<item>
		<title>Clear out the Clutter (Decluttering POIs)</title>
		<link>http://mqguru.wordpress.com/2009/08/07/clear-out-the-clutter-decluttering-pois/</link>
		<comments>http://mqguru.wordpress.com/2009/08/07/clear-out-the-clutter-decluttering-pois/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 19:28:13 +0000</pubDate>
		<dc:creator>mqguru</dc:creator>
				<category><![CDATA[mapquest]]></category>
		<category><![CDATA[POI]]></category>

		<guid isPermaLink="false">http://mqguru.wordpress.com/?p=46</guid>
		<description><![CDATA[Ok, so this post probably won't be long because this is so super simple!  So first the atta boy to MapQuest for making this so simple.  Now lets look at what it takes.  myMap.getDeclutterMode().setDeclutterMode(2);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=46&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ok, so this post probably won&#8217;t be long because this is so super simple!  So first the atta boy to MapQuest for making this so simple.  Now lets look at what it takes.</p>
<p>The tilemap is what actually need the setting done, so in your code you can say:</p>
<p>myMap.getDeclutterMode().setDeclutterMode(2);<br />
<span style="color:#339966;"><em>//you can also use 1 but in my opinion 2 looks much more intuitive.  0 will set it back to no decluttering </em></span></p>
<p>So on the baseline that is it.  So if you extend the map you can actually catch some neat functionality.  Do the following to get a neat declutter when hitting a specific zoom level or breaking a zoom level barrier.  A quick word of advice.  Declutter in mode 2 might make the flash player take longer than hoped on large data sets.  If this is the case you might want to do something like below or even turn off deluttering when retrieving POIs then turn it on once you put them on the map.  I found that it took the player some significant time to show the POIs when I have too many POIs. </p>
<p><span style="font-size:x-small;color:#009900;"><font size="2" color="#009900"></p>
<p align="left"><em>/* This function will turn on decluttering of the pois when the zoom levels reach optimal position. */<br />
</em></p>
<p></font></span></p>
<p align="left"><strong><em><span style="font-size:x-small;color:#0033ff;">public</span><span style="font-size:x-small;"> </span></em><strong><em><span style="font-size:x-small;color:#339966;">function</span><span style="font-size:x-small;"> setDeclutterByZoom(e:TileMapEvent):</span></em><strong><span style="font-size:x-small;color:#0033ff;"><em>void<br />
</em></span><span style="font-size:x-small;"><em>{<br />
</em></span><strong><em><span style="font-size:x-small;color:#0033ff;">if</span><span style="font-size:x-small;">(</span></em><strong><em><span style="font-size:x-small;color:#0033ff;">this</span><span style="font-size:x-small;">.getZoomLevel() &gt;= 7)</span></em><strong><span style="font-size:x-small;color:#0033ff;"><em>this</em></span><span style="font-size:x-small;"><em>.getDeclutter().setDeclutterMode(2);<br />
</em></span><strong><span style="font-size:x-small;color:#0033ff;"><em>else<br />
</em></span><strong><span style="font-size:x-small;color:#0033ff;"><em>this</em></span><span style="font-size:x-small;"><em>.getDeclutter().setDeclutterMode(0);<br />
</em></span></strong><strong><strong><span style="font-size:x-small;color:#0033ff;"><em>return<br />
}</em></span></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p align="left"><span style="color:#000000;">Like I said before I like to use 2 because it looks much easier to the users I have.  </span></p>
<p align="left"><span style="color:#000000;">If your users like this then you might want to also grab the dragable ability of the POIs.  But if you have a complex application you might run into a problem if you are running an event listener on a mouseup, mousedown or something of that nature on the map.  I was doing that because it was the simple thing at the time because I was waiting for a Click For Drag so I could recenter my map.  So I made sure I moved that event and it worked flawlessly.  Just add the following line to your POI.</span></p>
<p><span style="font-size:x-small;"></p>
<p align="left">myPoi.setDraggable(<span style="color:#0000ff;"><strong>true</strong></span>);</p>
<p>You can also add use this function to let your users drop those POIs where ever they want.  Just drag and drop, all done!   <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <br />
myPoi.setSnapback(<strong><span style="color:#0000ff;">false</span>);</strong></p>
<p align="left"><strong>This is pretty striaght forward stuff, but really watch you events as it will have some crazy interaction with the POI dragability. </p>
<p></strong></p>
<p></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mqguru.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mqguru.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mqguru.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mqguru.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mqguru.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mqguru.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mqguru.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mqguru.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mqguru.wordpress.com&amp;blog=1766138&amp;post=46&amp;subd=mqguru&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mqguru.wordpress.com/2009/08/07/clear-out-the-clutter-decluttering-pois/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d819bba50bd1a48684649464e7c6acfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mqguru</media:title>
		</media:content>
	</item>
	</channel>
</rss>
