<?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/"
	>

<channel>
	<title>Map Scripting &#187; How-tos</title>
	<atom:link href="http://mapscripting.com/topic/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://mapscripting.com</link>
	<description>Create Location-based Web Applications</description>
	<lastBuildDate>Wed, 01 Sep 2010 17:07:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Overlay Images at the Proper Map Location</title>
		<link>http://mapscripting.com/overlay-images-at-the-proper-map-location</link>
		<comments>http://mapscripting.com/overlay-images-at-the-proper-map-location#comments</comments>
		<pubDate>Wed, 28 Jul 2010 08:01:20 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=427</guid>
		<description><![CDATA[Let&#8217;s say you have a lovely graphic of an area, like a downtown district or a park. It&#8217;s a flat, top-down view, like most maps. But it doesn&#8217;t quite match up with the streets or other features of a mapping API&#8217;s imagery. Before you can overlay your image, you&#8217;ll need to georeference it. The process [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have a lovely graphic of an area, like a downtown district or a park. It&#8217;s a flat, top-down view, like most maps. But it doesn&#8217;t quite match up with the streets or other features of a mapping API&#8217;s imagery. Before you can overlay your image, you&#8217;ll need to georeference it.</p>
<p><img src="http://mapscripting.com/tmpimg/centralpark-twoimgs.jpg" width="400" height="263" alt="Central Park example image and map" /></p>
<p>The process is also called rubber sheeting, because you are essentially stretching and manipulating your graphic so that every point of your graphic meets up with the appropriate geographic coordinates.</p>
<p>In the book I use Central Park as an example. I uploaded a graphic from a park brochure to a site called <a href="http://warper.geothings.net/">GeoWarper</a>. Then I referenced parts of the graphic with other identifiable areas in an OpenStreetMap version of the same area. GeoWarper then spits out a georeferenced version of the graphic.</p>
<p><img src="http://mapscripting.com/examples/overlays/centralpark.jpg" width="114" height="338" alt="Central Park original" /><img src="http://mapscripting.com/examples/overlays/centralpark-warped.png" width="286" height="289" alt="Central Park original" /></p>
<p>Want to try it out yourself? The original graphic is included above. You can start your own, or <a href="http://warper.geothings.net/maps/1037">use mine</a>. If you just want to see it completed, the warped graphic is also above and the <a href="http://mapscripting.com/examples/overlays/centralpark.html">Central Park map</a> is in my examples section.</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/overlay-images-at-the-proper-map-location/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Roll Your Own Postal Code Database</title>
		<link>http://mapscripting.com/postal-code-database</link>
		<comments>http://mapscripting.com/postal-code-database#comments</comments>
		<pubDate>Tue, 27 Jul 2010 18:37:25 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=418</guid>
		<description><![CDATA[Many apps use zip codes to determine a user&#8217;s location. You can get the results with a geocoder service, or you can roll your own. From the same folks that supply the IP geolocation database, you can download one for U.S. zip codes. The download is available as a direct database dump or CSV, like [...]]]></description>
			<content:encoded><![CDATA[<p>Many apps use zip codes to determine a user&#8217;s location. You can get the results with a <a href="http://mapscripting.com/geocoders">geocoder service</a>, or you can roll your own. From the same folks that supply the <a href="http://mapscripting.com/roll-your-own-ip-geocoder">IP geolocation database</a>, you can download one for <a href="http://ipinfodb.com/zipcode_database.php">U.S. zip codes</a>.</p>
<p>The download is available as a direct database dump or CSV, like this:</p>
<pre>"zipcode";"state";"fips_regions";"city";"latitude";"longitude"
"97002";"OR";"41";"Aurora";"45.2574";"-122.799"
"97005";"OR";"41";"Beaverton";"45.4924";"-122.803"</pre>
<p>You&#8217;ll need to load it into a database and perform lookups yourself (ie, &#8220;select latitude, longitude from zips where zipcode=?&#8221;), but this is a good way to avoid wasting precious calls on fairly static and finite data.</p>
<p>Zip codes <em>do</em> change from time to time, so the database is updated periodically.</p>
<p>Looking for non-US postal codes? Check these out:</p>
<ul>
<li><a href="http://ernestmarples.com/">UK postal codes</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/postal-code-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Location APIs: FourSquare, Latitude, etc</title>
		<link>http://mapscripting.com/location-apis</link>
		<comments>http://mapscripting.com/location-apis#comments</comments>
		<pubDate>Mon, 26 Jul 2010 08:52:45 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=410</guid>
		<description><![CDATA[In addition to the W3C geolocation standard (I covered iPhone geolocation previously) and finding your user&#8217;s location based on IP, there are a number of services that let users actively share their whereabouts. Most of these services also have APIs, which allow you to access the shared locations (with the users permission, of course). Here [...]]]></description>
			<content:encoded><![CDATA[<p>In addition to the W3C geolocation standard (I covered <a href="http://mapscripting.com/how-to-use-geolocation-in-mobile-safari">iPhone geolocation</a> previously) and finding your user&#8217;s location based on IP, there are a number of services that let users actively share their whereabouts. Most of these services also have APIs, which allow you to access the shared locations (with the users permission, of course).</p>
<p>Here is a selection of location APIs and in some cases, tutorials that help you get started:</p>
<ul>
<li>FourSquare allows read and write actions. Check out the <a href="http://groups.google.com/group/foursquare-api/web/api-documentation">documentation</a> and this <a href="http://andrewmager.com/how-to-use-foursquare-api-with-oauth-and-php/">PHP tutorial</a></li>
<li>Google Latitude is in Beta and also allows read and write. See <a href="http://code.google.com/apis/latitude/v1/getting_started.html">Google&#8217;s documentation</a>.</li>
<li>Gowalla only has a read API. See its <a href="http://gowalla.com/api/docs">documentation</a>.</li>
<li>BrightKite has a fully-featured read/write API. There&#8217;s a <a href="http://lethain.com/entry/2008/nov/16/python-brightkite-for-using-brightkite-in-python/">Python library</a> and <a href="http://api.brightkite.com/">documentation</a>.</li>
<li>Finally, there&#8217;s FireEagle, Yahoo&#8217;s location broker service. I cover this one in the book, but you can also see my <a href="http://www.webmonkey.com/2010/02/get_started_with_fire_eagle/">WebMonkey tutorial</a> and the <a href="http://fireeagle.yahoo.net/developer">FireEagle documentation</a>.</li>
</ul>
<p>Which are your favorites? Am I missing any?</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/location-apis/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Search Radius with Circle Overlays</title>
		<link>http://mapscripting.com/circle-overlays</link>
		<comments>http://mapscripting.com/circle-overlays#comments</comments>
		<pubDate>Sat, 24 Jul 2010 18:41:50 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=405</guid>
		<description><![CDATA[Searching within a specific distance of a point is a common mapping task. Yet, we rarely see the search area visualized, even though it&#8217;s rather easy to do. In the book I show two circle overlay methods: one approximates a circle with a polygon and the other overlays a graphic. When using an image, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>Searching within a specific distance of a point is a common mapping task. Yet, we rarely see the search area visualized, even though it&#8217;s rather easy to do. In the book I show <a href="http://mapscripting.com/examples/overlays/circle.html">two circle overlay methods</a>: one approximates a circle with a polygon and the other overlays a graphic.</p>
<p>When using an image, you&#8217;ll want it to be a transparent PNG with the same width and height. The circle should <em>just fit</em>, so that it touches the edges of the graphic. The one I use in the example is swiped from Google Latitude and it&#8217;s on the left. Just right-click and choose the option to save the image.</p>
<p><img src="http://mapscripting.com/examples/overlays/circle.png" width="200" height="200" alt="Circle image from Google Latitude" /><img src="http://chart.apis.google.com/chart?chf=a,s,0000009B|bg,s,67676700|c,s,67676700&#038;chs=400x400&#038;cht=v&#038;chd=s:9______&#038;chdlp=t" width="200" height="200" alt="Circle image from Google Charts" /></p>
<p>You can also create your own image using the <a href="http://imagecharteditor.appspot.com/">Google Charts API wizard</a>, like the border-less orange graphic above. Use <a href="http://chart.apis.google.com/chart?chf=a,s,0000009B|bg,s,67676700|c,s,67676700&#038;chs=400x400&#038;cht=v&#038;chd=s:9______&#038;chdlp=t">its URL</a> as a starting point at the bottom of the wizard.</p>
<p>If you make a graphic yourself, you&#8217;ll need to ensure that the PNG&#8217;s background is transparent. Otherwise, there will be a white box around your circle. You can make the circle itself semi-transparent, or rely upon the mapping API to display an opaque file at a percentage of its opacity.</p>
<p>For a working example of the polygon circle overlay, see this <a href="http://mapscripting.com/twitter">geocoded tweet mashup</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/circle-overlays/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use GPS “Tracks” from GPX Files</title>
		<link>http://mapscripting.com/gpx-files</link>
		<comments>http://mapscripting.com/gpx-files#comments</comments>
		<pubDate>Thu, 22 Jul 2010 02:31:32 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=399</guid>
		<description><![CDATA[Many GPS units and even some mobile phone apps produce a GPX file, which contains a list of saved coordinates. These are usually called &#8220;tracks&#8221; and are useful for sharing or re-purposing where you&#8217;ve been. In the book, I show how to plot tracks on a map. The example from the book uses Portland&#8217;s Laurelhurst [...]]]></description>
			<content:encoded><![CDATA[<p>Many GPS units and even some mobile phone apps produce a GPX file, which contains a list of saved coordinates. These are usually called &#8220;tracks&#8221; and are useful for sharing or re-purposing where you&#8217;ve been. In the book, I show how to plot tracks on a map.</p>
<p><img src="http://mapscripting.com/tmpimg/gpx-tracks.jpg" width="400" height="303" alt="GPX tracks in Laurelhurst Park" /></p>
<p>The <a href="http://mapscripting.com/examples/formats/gpx.html">example from the book</a> uses Portland&#8217;s <a href="http://mapscripting.com/examples/formats/laurelhurst.gpx">Laurelhurst Park tracks</a> (raw GPX file). If you&#8217;d like to create your own tracks with a mobile phone, check out <a href="http://mytracks.appspot.com/">My Tracks for Android</a> or <a href="http://trails.lamouroux.de/">Trails for iPhone</a>.</p>
<p>There are also sites to share GPX files, such as <a href="http://www.gpxchange.com">GPXchange</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/gpx-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start Here Guide Translated to Spanish: Traza En Español</title>
		<link>http://mapscripting.com/start-here-guide-translated-to-spanish-traza-en-espanol</link>
		<comments>http://mapscripting.com/start-here-guide-translated-to-spanish-traza-en-espanol#comments</comments>
		<pubDate>Mon, 28 Jun 2010 02:10:43 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=374</guid>
		<description><![CDATA[For those who want a quick introduction to mapping on the web, I&#8217;ve offered my Start Here Guide for the last year. My full book is coming soon (did you know you can pre-order Map Scripting 101?), but the guide will remain. In fact, now it&#8217;s also available in Spanish. I&#8217;m indebted to Claudio Cossio [...]]]></description>
			<content:encoded><![CDATA[<p>For those who want a quick introduction to mapping on the web, I&#8217;ve offered my <a href="http://mapscripting.com/start-here-guide">Start Here Guide</a> for the last year. My full book is coming soon (did you know you can <a href="http://www.amazon.com/exec/obidos/ASIN/1593272715/duvinci-20">pre-order Map Scripting 101</a>?), but the guide will remain. In fact, now it&#8217;s also available in Spanish.</p>
<p>I&#8217;m indebted to Claudio Cossio of <a href="http://www.fronteraestates.mx ">Frontera Estates</a> for not only the translation but the idea to offer a Spanish version in the first place. Thank you, Claudio!</p>
<p>So, regardless of whether you want it en ingles o en español, you can <a href="http://mapscripting.com/start-here-guide">Download the Start Here Guide for free</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/start-here-guide-translated-to-spanish-traza-en-espanol/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Way Cool Map Scripting</title>
		<link>http://mapscripting.com/way-cool</link>
		<comments>http://mapscripting.com/way-cool#comments</comments>
		<pubDate>Tue, 16 Mar 2010 21:10:42 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=358</guid>
		<description><![CDATA[I presented a talk on moving beyond the typical map mashup today at SXSW Interactive in Austin. In it, I showed some simple ways to improve your maps, from using Mapstraction to custom map markers to changing the entire map imagery. If you would like to get a feel for the presentation and examples, my [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://mapscripting.com/wp-content/uploads/2010/03/waycool-150x150.png" alt="Way Cool" title="Way Cool" width="150" height="150" style="float: right; margin: 0 0 1em 1em; border: 0;" />I presented a talk on moving beyond the typical map mashup today at <a href="http://sxsw.com/interactive">SXSW Interactive</a> in Austin. In it, I showed some simple ways to improve your maps, from <a href="http://mapscripting.com/which-maps-api-should-i-use">using Mapstraction</a> to <a href="http://mapscripting.com/custom-markers">custom map markers</a> to changing the entire map imagery.</p>
<p>If you would like to get a feel for the presentation and examples, my &#8220;slides&#8221; are <a href="http://mapscripting.com/examples/way-cool/slides.html">one giant HTML file</a>. Really, it&#8217;s quite giant. So I&#8217;ve included the examples below. View the source, look around. Many of these are explained in detail in <a href="http://mapscripting.com/book">Map Scripting 101</a>, but if you have questions I&#8217;d be happy to cover some more in-depth on this blog.</p>
<ul>
<li><a href="http://mapscripting.com/examples/way-cool/maps/overlays_google.html">Basic Google Map</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/overlays_yahoo.html">Basic Yahoo Map</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/swap.html">Google and Yahoo Swappable Map</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/customicon.html">Custom marker icon</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/custom-controls.html">Custom controls</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/custom-zoom.html">Custom zoom image controls</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/circle-image.html">Circle image overlay</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/pedometer.html">Click to connect Polylines</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/circle-poly.html">Circle made of Polylines</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/poly-conventioncenter.html">Austin Convention Center outline</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/centralpark.html">Central Park overlay</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/zelda.html">Zelda world image overlay</a></li>
<li><a href="http://mapscripting.com/examples/way-cool/maps/geolocate.html">Geolocate your user</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/way-cool/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Map Math Behind a Virtual Grand Canyon Hike</title>
		<link>http://mapscripting.com/map-math-behind-a-virtual-grand-canyon-hike</link>
		<comments>http://mapscripting.com/map-math-behind-a-virtual-grand-canyon-hike#comments</comments>
		<pubDate>Sun, 07 Mar 2010 07:51:25 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=344</guid>
		<description><![CDATA[The pedometer community site Walker Tracker added a new feature that plots your steps on a route around the rim of the Grand Canyon&#8211;or a handful of other locations. And you can invite your friends on the trip, with each avatar shown at a location determined by the user&#8217;s step count. This is the site&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>The pedometer community site Walker Tracker added a new feature that plots your steps on a route around the rim of the Grand Canyon&#8211;or a handful of other locations. And you can invite your friends on the trip, with each avatar shown at a location determined by the user&#8217;s step count.</p>
<p><img src="http://mapscripting.com/wp-content/uploads/2010/03/walkertracker-grandcanyon1.jpg" alt="" title="Walker Tracker competition map of the Grand Canyon" width="400" height="243" class="aligncenter size-full wp-image-347" /></p>
<p>This is the site&#8217;s first foray into using maps. Ben, the site&#8217;s founder, contracted me to write much of the code for the new feature. Walker Tracker has an active community of step-counters who already take part in a number of competitions on the site. I&#8217;m happy to see this new competition type <a href="http://walkertracker.com/talk/viewtopic.php?id=4592">go live into Beta</a>.</p>
<p>I used the site&#8217;s API to grab the current competition results and convert steps into a distance. That turns out to be the easy part, as the average person travels a mile in 2,000 steps. So, to keep things fair, we used that constant. No advantage for the long-legged!</p>
<p><img src="http://mapscripting.com/wp-content/uploads/2010/03/route-segments.jpg" alt="" title="Route with distances between segments" width="400" height="159" class="aligncenter size-full wp-image-350" /></p>
<p>Finding out which leg of the journey a user is on was also fairly easy. Once I knew the user&#8217;s distance, I could keep a running total of each leg until the next point would make it further than the user&#8217;s distance. Then I knew the user was between two particular points. On some routes, the points could be many miles apart. Walker Tracker needed to be more precise than that.</p>
<p><strong>Find a Point Along a Route</strong></p>
<p>The mapping challenge here was to plot the walker at just the right point along the route. That turns out to be a fairly complex problem and the solution has become a section in my book.</p>
<p><img src="http://mapscripting.com/wp-content/uploads/2010/03/route-points.jpg" alt="" title="Finding point X along a route A to B" width="400" height="249" class="aligncenter size-full wp-image-349" /></p>
<p>The example above shows three points. It&#8217;s a two step process to find point X, 0.3 miles between points A and B:</p>
<ol>
<li>Find the initial bearing (direction of travel) from point A to B</li>
<li>Using the bearing, determine the point 0.3 miles along the route between points A and B</li>
</ol>
<p>As for how to calculate the bearing and the point along the route, these <a href="http://www.movable-type.co.uk/scripts/latlong.html">scripts from Movable Type</a> were immensely helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/map-math-behind-a-virtual-grand-canyon-hike/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Custom Markers to Your Map</title>
		<link>http://mapscripting.com/custom-markers</link>
		<comments>http://mapscripting.com/custom-markers#comments</comments>
		<pubDate>Thu, 15 Oct 2009 23:08:38 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=187</guid>
		<description><![CDATA[It might be the best way to make your map look different than all the others. Lose the reverse tear drop icons (the default Google look) and add your own graphics. Mapstraction makes it easy to include your own markers. And, as always, write the code once in Mapstraction and it works in one of [...]]]></description>
			<content:encoded><![CDATA[<p>It might be the best way to make your map look different than all the others. Lose the reverse tear drop icons (the default Google look) and add your own graphics.</p>
<p>Mapstraction makes it easy to include your own markers. And, as always, write the code once in Mapstraction and it works in one of a dozen mapping APIs. Here&#8217;s a <a href="http://mapscripting.com/examples/guide/custom.html">custom marker map demo</a> that shows a sombrero over my favorite Mexican restaurant in Portland. Classy!</p>
<p>It looks something like this:<br />
<img src="http://mapscripting.com/wp-content/uploads/2009/10/custom-marker.jpg" alt="Custom sombrero marker" title="Custom sombrero marker" width="399" height="346" class="aligncenter size-full wp-image-284" /></p>
<p>Now you try:</p>
<pre lang="html" escaped="true" style="width: 100%; height: 120px; overflow: scroll;">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;head&gt;
    &lt;title&gt;Custom Marker Map&lt;/title&gt;
    &lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=YOURKEY&quot;
    type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;mapstraction.js&quot;&gt;&lt;/script&gt;
    &lt;style&gt;
      div#mymap {
        width: 400px;
        height: 350px;
      }
    &lt;/style&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      var mapstraction;
function create_map() {
  mapstraction = new Mapstraction(&#39;mymap&#39;, &#39;google&#39;);
  mapstraction.setCenterAndZoom(
    new LatLonPoint(45.559242, -122.636467), 15);
  var mk = new Marker(new LatLonPoint(45.559242, -122.636467));
  mk.setIcon(&#39;sombrero.png&#39;, [40,24]);
  mk.setShadowIcon(&#39;sombrero-shadow.png&#39;, [53,24]);
  mapstraction.addMarker(mk);
}
    &lt;/script&gt;

  &lt;/head&gt;
  &lt;body onload=&quot;create_map()&quot;&gt;
    &lt;div id=&quot;mymap&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre>
<p>Remember you&#8217;ll need to download <a href="http://mapstraction.com/">Mapstraction</a> and get a <a href="http://code.google.com/apis/maps/signup.html">Google Maps API key</a>. Finally, make sure you have the following if you plan on using the sombrero images:<br />
<a href="http://mapscripting.com/examples/guide/sombrero.png"><img src="http://mapscripting.com/examples/guide/sombrero.png" /></a> <a href="http://mapscripting.com/examples/guide/sombrero-shadow.png"><img src="http://mapscripting.com/examples/guide/sombrero-shadow.png" /></a></p>
<p>Happy mapping with your custom markers!</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/custom-markers/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Geolocate Now With Twitter, Using Simple Search</title>
		<link>http://mapscripting.com/geolocate-now-with-twitter-using-simple-search</link>
		<comments>http://mapscripting.com/geolocate-now-with-twitter-using-simple-search#comments</comments>
		<pubDate>Tue, 06 Oct 2009 02:30:41 +0000</pubDate>
		<dc:creator>AdamD</dc:creator>
				<category><![CDATA[How-tos]]></category>

		<guid isPermaLink="false">http://mapscripting.com/?p=272</guid>
		<description><![CDATA[While we&#8217;re waiting for Twitter&#8217;s official geolocation platform, how about this ad hoc method. Pick a famous location, stick &#8220;at&#8221; in front of it, and use Twitter search. Amber Case suggested Disneyland. Go ahead and try it out. I found that Graceland and Yellowstone have good results, too. We&#8217;ll be able to do more interesting [...]]]></description>
			<content:encoded><![CDATA[<p>While we&#8217;re waiting for Twitter&#8217;s official geolocation platform, how about this ad hoc method. Pick a famous location, stick &#8220;at&#8221; in front of it, and use Twitter search.</p>
<p><img src="http://mapscripting.com/wp-content/uploads/2009/10/twitter-disneyland.png" alt="Tweets from Disneyland" title="Tweets from Disneyland" width="400" height="142" class="aligncenter size-full wp-image-274" /></p>
<p>Amber Case <a href="http://twitter.com/caseorganic/statuses/4586141395">suggested Disneyland</a>. Go ahead and <a href="http://search.twitter.com/search?q=%22at+disneyland%22">try it out</a>. I found that <a href="http://search.twitter.com/search?q=%22at%20graceland%22">Graceland</a> and <a href="http://search.twitter.com/search?q=%22at%20yellowstone%22">Yellowstone</a> have good results, too.</p>
<p>We&#8217;ll be able to do more interesting things when we have latitude and longitude. In the meantime, this is a fun, simple way to get a glimpse of what&#8217;s going on at popular vacation destinations.</p>
]]></content:encoded>
			<wfw:commentRss>http://mapscripting.com/geolocate-now-with-twitter-using-simple-search/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
