<?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>Behind the Scene &#187; XML</title>
	<atom:link href="http://blog.suhreedsarkar.com/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.suhreedsarkar.com</link>
	<description>thoughts on life and work by suhreed sarkar</description>
	<lastBuildDate>Wed, 21 Jul 2010 06:36:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Joomla! with Flash: Showing maps using YOS amMap</title>
		<link>http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/</link>
		<comments>http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 15:24:37 +0000</pubDate>
		<dc:creator>Suhreed Sarkar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[joomla!]]></category>
		<category><![CDATA[Maps Manager]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/</guid>
		<description><![CDATA[Adding a map to your site may be a necessity in some cases. For example, you want to show the population of countries, or you want to show a world map to your students for teaching geography. Flash maps are always interesting as you can interact with them and can view them as you like. [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_55" class="wp-caption alignleft" style="width: 110px"><a rel="attachment wp-att-55" href="http://blog.suhreedsarkar.com/about/books/attachment/1847198244/"><img class="size-full wp-image-55" title="Joomla! with Flash" src="http://blog.suhreedsarkar.com/wp-content/uploads/2009/11/1847198244.png" alt="Joomla! with Flash" width="100" height="123" /></a><p class="wp-caption-text">Joomla! with Flash</p></div>
<p>Adding a map to your site may be a necessity in some cases. For example, you want to show the population of countries, or you want to show a world map to your students for teaching geography. Flash maps are always interesting as you can interact with them and can view them as you like. amMap provides tools for showing Flash maps. The amMap tool is ported as a Joomla! component by yOpensource, and the component is released with the name YOS amMap. This component has two versions—free and commercial. The commercial or pro version has some advanced features that are not available in the free version.</p>
<p>The YOS amMap component, together with its module, allows you to display a map of the world, a region, or a country. You can choose the map to be displayed, which areas or countries are to be highlighted, and the way in which the viewers can control the map. Generally, maps displayed through the YOS amMap component can be zoomed, centered, or scrolled to left, right, top, or bottom. You can also specify a color in which a region or a country should be displayed.<span id="more-12"></span></p>
<h2>Installing and configuring YOS amMap</h2>
<p>To use YOS amMap with your Joomla! website, you must first download it from <a href="http://yopensource.com/en/component/remository/?func=fileinfo&amp;id=3" target="_blank">http://yopensource.com/en/component/remository/?func=fileinfo&amp;id=3</a>. After downloading and extracting the compressed package, you get the component and module packages. Install the component and module from the <strong>Extensions | Install/Uninstall</strong> screen.</p>
<p>Once installed, you can administer the YOS amMap component from <strong>Components | YOS amMap</strong>. This shows the YOS amMap Control Panel, as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image01.png" alt="" /></p>
<p><strong>YOS amMap Control Panel</strong> displays several icons through which you can configure and publish maps. The first thing you should do is to configure the global settings for amMap. In order to do this, click on the <strong>Parameters</strong> icon in the toolbar. Doing so brings up the dialog box, as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image02.png" alt="" /></p>
<p>In the <strong>Global Configuration</strong> section, you can enter a license key if you have purchased the commercial or the pro version of this component. For the free version, this is not needed. In this section, you can also configure the legal extensions of files that can be uploaded through this component, the maximum file size for uploads, the legal image extensions, and the allowed MIME types of all uploads. You can also specify whether the Flash uploader will be used or not. Once you have configured these fields, click on the <strong>Save</strong> button and return to <strong>YOS amMap Control Panel</strong>.</p>
<h2>Adding map files</h2>
<p>You can see the list of available maps by clicking on the <strong>Maps</strong> icon on the <strong>YOS amMap Control Panel</strong> screen or by clicking on <strong>Components | amMap | Maps</strong>. This shows the <strong>Maps Manager</strong> screen, as shown in the next screenshot.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image03.png" alt="" /></p>
<p>As you can see, the Maps Manager screen displays the list of available maps. By default, you find the <em>world.swf</em>, <em>continents.swf</em>, and <em>world_with_antartica.swf</em> map files. You will find some extra maps with the amMap bundle. You can also download the original amMap package from <a href="http://www.ammap.com/download" target="_blank">http://www.ammap.com/download</a>. After downloading the ZIP package, extract it, and you will find many maps in the <em>maps</em> subfolder. Any map from this folder can be uploaded to the Joomla! site from the <strong>Maps Manager</strong> screen.</p>
<h2>Creating a map</h2>
<p>There are several steps for creating a map using YOS amMap. First we need to upload the package for the map. For example, if we want to display the map of the United States of America, then we need to upload the map template, the map data file, and the map settings file for the United States of America. To do this first upload the map template from the <strong>Maps Manager</strong> screen. You will find the map template for USA in the <em>ammap/maps</em> folder. Then we need to upload the data and the settings files. For doing so, click on the Upload link on the <strong>YOS amMap Control Panel</strong> screen. Then, in the <strong>Upload amMap</strong> screen, which is shown in the next screenshot, type the map&#8217;s title (<strong>United States</strong>) in the <strong>Title</strong> field. Before clicking on the <strong>Browse</strong> button besides the <strong>Package File</strong> field, you first add the <em>ammap_data.xml</em> and the <em>ammap_settings.xml</em> files to a single ZIP file, <em>unitedstates.zip</em>. Now, click on the Browse button, and select this <em>unitedstates.zip</em> file. Then click on the <strong>Upload File &amp; Install</strong> button.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image04.png" alt="" /></p>
<p>Once uploaded successfully, you see this map listed in the <strong>YOS amMap Manager</strong> screen, as shown in the next screenshot. You get this screen by clicking on the <strong>amMaps</strong> link on the toolbar.</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image05.png" alt="" /></p>
<p>As you can see, the map that we have added is now listed in the <strong>YOS amMap Manager</strong> screen. However, the map is yet in an unpublished state, and we need to configure the map before publishing it. We need to configure its data and settings files, which are discussed in the following sections.</p>
<h3>Map data file</h3>
<p>The different regions of a map are identified by the map data file. This is an XML file and it defines the areas to be displayed on the map. The typical structure of a map data file can be understood by examining <em>ammap_data.xml</em>. The file has many comments that explain its structure. This file looks like as follows:</p>
<pre style="margin-left: 40px;">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;map map_file="maps/world.swf" tl_long="-168.49" tl_lat="83.63" br_long="190.3" br_lat="-55.58" zoom_x="0%" zoom_y="0%" zoom="100%"&gt;&lt;areas&gt;  &lt;area title="AFGHANISTAN" mc_name="AF"&gt;&lt;/area&gt;  &lt;area title="ALAND ISLANDS" mc_name="AX"&gt;&lt;/area&gt;  &lt;area title="BANGLADESH" mc_name="BD"&gt;&lt;/area&gt;  &lt;area title="BHUTAN" mc_name="BT"&gt;&lt;/area&gt;  &lt;area title="CANADA" mc_name="CA"&gt;&lt;/area&gt;  &lt;area title="UNITED ARAB EMIRATES" mc_name="AE"&gt;&lt;/area&gt;  &lt;area title="UNITED KINGDOM" mc_name="GB"&gt;&lt;/area&gt;  &lt;area title="UNITED STATES" mc_name="US"&gt;&lt;/area&gt;  &lt;area title="borders" mc_name="borders" color="#FFFFFF" balloon="false"&gt;&lt;/area&gt;&lt;/areas&gt;&lt;movies&gt;  &lt;movie lat="51.3025" long="-0.0739" file="target" width="10"   height="10" color="#CC0000" fixed_size="true" title="build-in   movie usage example"&gt;&lt;/movie&gt;  &lt;movie x="59.6667%" y="77.5%" file="icons/pin.swf" title="loaded   movie usage example" text_box_width="250" text_box_height="140"&gt;   &lt;description&gt;     &lt;![CDATA[You can add description text here. This text will      appear the user clicks on the movie. this description text can      be html-formatted (for a list which html tags are supported,      visit &lt;u&gt;&lt;a href="http://livedocs.adobe.com/flash/8/main/00001459.html"&gt;this  page&lt;/a&gt;&lt;/u&gt;. You can add descriptions to areas and labels too.]]&gt;   &lt;/description&gt;  &lt;/movie&gt;&lt;/movies&gt;&lt;labels&gt;  &lt;label x="0" y="50" width="100%" align="center" text_size="16"     color="#FFFFFF"&gt;  &lt;text&gt;&lt;![CDATA[&lt;b&gt;World Map]]&gt;&lt;/text&gt;  &lt;description&gt;&lt;![CDATA[]]&gt;&lt;/description&gt;&lt;/label&gt;&lt;/labels&gt;&lt;lines&gt;  &lt;line long="-0.0739, -74" lat="51.3025, 40.43" arrow="end"      width="1" alpha="40"&gt;&lt;/line&gt;  &lt;/lines&gt;&lt;/map&gt;
</pre>
<p>This code is a stripped-down version of the default <em>ammap_data.xml</em> file. Let us examine its structure and try to understand the meaning of each markup:</p>
<ul>
<li><em>&lt;map&gt; &lt;/map&gt;</em>: You define the map&#8217;s structure using this markup. First, by using the <em>map_file</em> attribute, we declare the map file that should be used to display this map. This markup has some other attributes through which we declare the top and the left offset in longitude and latitude. We can also specify the zooming level using the <em>zoom_x</em>, <em>zoom_y</em>, and <em>zoom</em> attributes.</li>
<li><em>&lt;areas&gt; &lt;/areas&gt;</em>: Areas are the regions or countries on a map. These are defined in the map. We only need to define the areas that we want to display. For example, in the sample, we have defined eight countries to be displayed and one straight line. Each area element has several attributes, among which you need to mention <em>mc_name</em> and <em>title</em>. You specify the area&#8217;s name in <em>mc_name</em>, which is predefined in the map template. The title element will be displayed as the title of that map area. For example, <em>&lt;area mc_name=&#8221;BD&#8221; title=&#8221;Bangladesh&#8221;&gt;&lt;/area&gt;</em> means the areas marked as <em>BD</em> in the map template will be displayed with the title Bangladesh. In order to specify the <em>mc_name</em> element, you need to follow the map template designer&#8217;s instructions.</li>
<li><em>&lt;movies&gt; &lt;/movies&gt;</em>: Movies are some extra clips that can be displayed as a separate layer on the map. For example, to display the capital of each country, a movie clip could be displayed in the specified latitude and longitude. You can also display some other animations or text using a movie definition.</li>
<li><em>&lt;labels&gt; &lt;/labels&gt;</em>: The <em>&lt;labels&gt;</em> markup contains the text to be displayed on the map. You can add any text on a map by defining a label element.</li>
</ul>
<p>To view and edit the map data file, <em>ammap_data.xml</em>, click on the map name on the <strong>YOS amMap Manager</strong> screen. This opens-up the <strong>amMap: [Edit]</strong> screen, as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image06.png" alt="" /></p>
<p>The <strong>amMap: [Edit]</strong> screen displays several configurations for the map. From the Details section you can change the map name, publish the map, and enable security. From the <strong>Design</strong> section you can view and edit the data and the settings files. Clicking on <strong>Data</strong> will show the data file. You can edit the data file from the online editor. As we want to display the map of USA, we will make the following changes on this screen:</p>
<ol>
<li>Select <em>usa.swf</em> in the <strong>Maps</strong> list.</li>
<li>Change the data file as follows:
<pre style="margin-left: 40px;">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;map map_file="maps/usa.swf" zoom="100%" zoom_x="7.8%"zoom_y="0.18%"&gt;&lt;areas&gt;  &lt;area mc_name="AL" title="Alabama"/&gt;  &lt;area mc_name="AK" title="Alaska"/&gt;  &lt;area mc_name="AZ" title="Arizona"/&gt;  &lt;area mc_name="AR" title="Arkansas"/&gt;  &lt;area mc_name="CA" title="California"/&gt;  &lt;area mc_name="CO" title="Colorado"/&gt;  &lt;area mc_name="CT" title="Connecticut"/&gt;  &lt;area mc_name="DE" title="Delaware"/&gt;  &lt;area mc_name="DC" title="District of Columbia"/&gt;  &lt;area mc_name="FL" title="Florida"/&gt;  &lt;area mc_name="GA" title="Georgia"/&gt;  &lt;area mc_name="HI" title="Hawaii"/&gt;  &lt;area mc_name="ID" title="Idaho"/&gt;  &lt;area mc_name="IL" title="Illinois"/&gt;  &lt;area mc_name="IN" title="Indiana"/&gt;  &lt;area mc_name="IA" title="Iowa"/&gt;  &lt;area mc_name="KS" title="Kansas"/&gt;  &lt;area mc_name="KY" title="Kentucky"/&gt;  &lt;area mc_name="LA" title="Louisiana"/&gt;  &lt;area mc_name="ME" title="Maine"/&gt;  &lt;area mc_name="MD" title="Maryland"/&gt;  &lt;area mc_name="MA" title="Massachusetts"/&gt;  &lt;area mc_name="MI" title="Michigan"/&gt;  &lt;area mc_name="MN" title="Minnesota"/&gt;  &lt;area mc_name="MS" title="Mississippi"/&gt;  &lt;area mc_name="MO" title="Missouri"/&gt;  &lt;area mc_name="MT" title="Montana"/&gt;  &lt;area mc_name="NE" title="Nebraska"/&gt;  &lt;area mc_name="NV" title="Nevada"/&gt;  &lt;area mc_name="NH" title="New Hampshire"/&gt;  &lt;area mc_name="NJ" title="New Jersey"/&gt;  &lt;area mc_name="NM" title="New Mexico"/&gt;  &lt;area mc_name="NY" title="New York"/&gt;  &lt;area mc_name="NC" title="North Carolina"/&gt;  &lt;area mc_name="ND" title="North Dakota"/&gt;  &lt;area mc_name="OH" title="Ohio"/&gt;  &lt;area mc_name="OK" title="Oklahoma"/&gt;  &lt;area mc_name="OR" title="Oregon"/&gt;  &lt;area mc_name="PA" title="Pennsylvania"/&gt;  &lt;area mc_name="RI" title="Rhode Island"/&gt;  &lt;area mc_name="SC" title="South Carolina"/&gt;  &lt;area mc_name="SD" title="South Dakota"/&gt;  &lt;area mc_name="TN" title="Tennessee"/&gt;  &lt;area mc_name="TX" title="Texas"/&gt;  &lt;area mc_name="UT" title="Utah"/&gt;  &lt;area mc_name="VT" title="Vermont"/&gt;  &lt;area mc_name="VA" title="Virginia"/&gt;  &lt;area mc_name="WA" title="Washington"/&gt;  &lt;area mc_name="WV" title="West Virginia"/&gt;  &lt;area mc_name="WI" title="Wisconsin"/&gt;&lt;area mc_name="WY" title="Wyoming"/&gt;&lt;/areas&gt;&lt;labels&gt;  &lt;label x="0" y="60" width="100%" color="#FFFFFF" text_size="18"&gt;    &lt;text&gt;Map of the United States of America&lt;/text&gt;  &lt;/label&gt;&lt;/labels&gt;&lt;/map&gt;
</pre>
<p>As you can see, we have defined regions (states) on the map of USA, and towards the end of the file, we have added a label for the map.
</li>
<li>Select <strong>Yes</strong> for the <strong>Published</strong> field in the <strong>Details</strong> section.</li>
</ol>
<p>When you are done making these changes click on the <strong>Save</strong> button to save these changes. Now we will look into the map settings file.</p>
<p style="margin-left: 40px; margin-right: 40px;"><em>Map data files for countries are available with the amMap package. Thus, if you download amMap 2.5.1, you will get the map settings files for different countries. For example, the map data file for USA will be in the amMap_2.5.1/examples/_countries/usa folder.</em></p>
<hr size="1" />
<div class="header"><strong>Joomla! with Flash</strong></div>
<table border="0" width="100%">
<tbody>
<tr>
<td width="99" valign="top"><a href="http://www.packtpub.com/joomla-with-flash/book/rk/joomlaflash-abr1/1009?utm_source=rk_joomlaflash_abr1_1009&amp;utm_medium=content&amp;utm_campaign=ramsai"><img class="left" title="Joomla! with Flash" src="http://images.packtpub.com/images/100x123/1847198244.png" border="0" alt="Joomla! with Flash" width="99" height="123" /></a></td>
<td valign="top">
<ul>
<li>Build a stunning, content-rich, and interactive web site with Joomla! 1.5 and Flash CS4</li>
<li>Build an attractive web site integrating Flash objects into Joomla!</li>
<li>Create stunning photo galleries with Flash transition and animation effects</li>
<li>Use interactive Flash-based maps, charts, animations, videos, MP3 players, logos, headers, and banners in Joomla!-based web sites</li>
<li>Turn your Joomla! web site into a feature-rich multimedia enhanced site through this step-by-step easy-to-follow guide enriched with screenshots</li>
</ul>
<p><a href="http://www.packtpub.com/joomla-with-flash/book/rk/joomlaflash-abr1/1009?utm_source=rk_joomlaflash_abr1_1009&amp;utm_medium=content&amp;utm_campaign=ramsai">http://www.packtpub.com/joomla-with-flash/book</a>
</td>
</tr>
</tbody>
</table>
<hr size="1" />
<h3>Map settings file</h3>
<p>The map settings file is another XML file through which the map&#8217;s display and other settings are defined. You can view and edit this file in the same way as you have done for the map data file, <em>ammap_data.xml</em>. A map settings file is named as <em>ammap_settings.xml</em>, and like the <em>ammap_data.xml</em> file, it has lots of annotations to explain each setting. You can view as well as edit this file by clicking on the <strong>Settings</strong> section in the <strong>amMap: [Edit]</strong> screen, as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image07.png" alt="" /></p>
<p>An annotation for each setting is provided on the right side. You can configure the settings by following the instructions in the annotations. Once the changes have been made to this file, click on the <strong>Save</strong> icon on the toolbar to save the changes and close the screen.</p>
<h2>Publishing a map through the module</h2>
<p>After configuring the map through the <strong>amMap: [Edit]</strong> screen and editing the map data file, <em>ammap_data.xml</em> and the map settings file, <em>ammap_settings.xml</em>, you can display the map on the frontend by publishing the amMap module.</p>
<p>If you have not installed the amMap module yet, then install it from the <em>Extensions | Install/Uninstall</em> screen. The module and the plugin installation packages are bundled with the YOS amMap package that you have already downloaded. Once installed, go to <strong>Extensions | Module Manager</strong> and click on the <strong>YOS amMap</strong> module. That shows the <strong>Module: [Edit]</strong> screen for the YOS amMap module, as shown in the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image08.png" alt="" /></p>
<p>Like other modules you can use the <strong>Details</strong> section to provide a title for this module, publish the module, select the position where it should be displayed, set the access level, and establish the order of display. Similarly, from the <strong>Menu Assignment</strong> section, you can specify the menus for which the module will be displayed. The settings specific to this module are displayed in the <strong>Parameters</strong> section. First you need to type the <strong>amMap&#8217;s ID</strong>, which is displayed in the list shown on the <strong>YOS amMap Manager</strong> screen. After typing the <strong>amMap&#8217;s ID</strong>, select <strong>Yes</strong> in the <strong>Enable Plugin</strong> field if you want to show this map using a plugin.</p>
<p>The next few settings are for displaying the map in your desired format. You can assign a module suffix (for example, green), which can be used to manipulate the display through a CSS. In the <strong>Display-Type</strong> drop-down box, select either <strong>SWF-Object</strong> or <strong>Embedding Flash Object</strong>. <strong>SWF-Object</strong> is the default mode and it uses a wrapper for embedding Flash objects. Then you can specify the width and height of the Flash object in pixels. This needs to be in line with your module&#8217;s position. You can also specify the version of Flash needed to display the map. The default value for this field is 8, which means that Flash Player version 8 will display the map properly, and users having a version lower than this will be prompted to upgrade to the required version of Flash Player. In the <strong>Background Color</strong> field you can specify the background color for the module.</p>
<p>The path to the amMap files can be specified in the <strong>Path</strong> field. The default value for this field is <em>components/com_yos_ammap/ammap</em>, which is fine as the files are installed in this directory. You can specify default data and settings files in the <strong>Data file</strong> and <strong>Setting file</strong> fields. The default values for these fields are <em>components/com_yos_ammap/ammap/ammap_data.xml</em> and <em>components/com_yos_ammap/ammap/ammap_settings.xml</em> respectively. The files specified in these two fields will work only when no ID number for amMap is specified in the <strong>amMap&#8217;s ID</strong> field.</p>
<p>You can specify a preloader color, a loading text, and a settings loading text. These texts are displayed when the map&#8217;s data and settings are being loaded.</p>
<p>When all these settings have been set and saved by clicking on the <strong>Save</strong> button on the toolbar, you can preview the map by clicking on the <strong>Preview</strong> button on the toolbar. The map should be displayed as shown in the following screenshot, in the frontend:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image09.png" alt="" /></p>
<p>When you move your mouse pointer over the map area you will see that the states are highlighted displaying the state&#8217;s name. You can zoom in or zoom out using the Zoom control shown on the left of the map. Note that an overview map is displayed at the bottom-right corner. Clicking the arrow below it will hide the overview map.</p>
<p style="margin-left: 40px; margin-right: 40px;"><em>If you want to display multiple maps, then you can copy the <strong>YOS amMap</strong> module and configure each instance with a different amMap ID. To copy the module, in the <strong>Extensions | Module Manager</strong> screen, select the module and click on the Copy icon in the toolbar. Then, rename the copied module. Alternatively, you can use the new module wizard by clicking on the <strong>New</strong> icon on the toolbar. In this wizard, you have to select <strong>YOS amMap</strong> in the <strong>Module: [New]</strong> screen and then configure it with the same settings, as described above.</em></p>
<h2>Showing the map in content using a plugin</h2>
<p>So far we have seen how to display a Flash map with the amMap module. You can also display the map in your Joomla! content, that is, articles. The YOS amMap component package comes with a plugin for displaying an amMap map into Joomla! articles. If you have installed the plugin already, then go to <strong>Extensions | Plugin Manager</strong> and click on <strong>Plugin &#8211; YOS Ammap</strong>. This displays the <strong>Plugin: [Edit]</strong> screen, shown in the following screenshot, for the <strong>YOS Ammap</strong> plugin:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image10.png" alt="" /></p>
<p>Enable this plugin by selecting <strong>Yes</strong> in the <strong>Enabled</strong> field. Next, read the instructions given in the <strong>Description</strong> field. The instructions show how to use this plugin. From this text, you will notice that you can embed an amMap map in articles using the following syntax:</p>
<pre style="margin-left: 40px;">
{yos_ammap mapid='3' width='500' height='400' flashv='8' bgcolour='#000000' type='js' plugin='1'}
</pre>
<p>You may be familiar with most of these by now. First, we have to specify the <em>mapid</em>, and then its width, height, flash version, background color, type, and plugin. Use 1 in <em>plugin</em> if you want to show dynamic data in the map. Therefore, using this syntax, we can add the map of USA in an article. The text for the article may be as follows:</p>
<pre style="margin-left: 40px;">
amMap is an interactive flash map creation software. Use this tool to show locations of your offices, routes of your journeys, create your distributor map. Photos or illustrations can be used instead of maps, so you can make different presentations, e-learning tools and more.YOS amMap is an Joomla extension which integrated almost amMap features. With YOS amMap you can easily integrate maps which provided by amMap to your Joomla site.You can also include a map in Joomla! artilcle. Here is an example:<span style="font-weight: bold;">{yos_ammap mapid='3' width='600' height='500' falshv='8' plugin='1'}</span>
</pre>
<p>The last line, inside {}, will show the map with the ID 3, which is the map of USA. When this article is published and viewed in the frontend, the article will look like the following screenshot:</p>
<p style="text-align: center;"><img src="http://www.packtpub.com/files/images/joomlaflash-article1-image11.png" alt="" /></p>
<p>As you see, the map of USA has been embedded in the article. The map behaves in the same way as it does inside the module. You can add multiple maps in an article using the same syntax. However, you must ensure that the map IDs are correct.</p>
<p style="margin-left: 40px; margin-right: 40px;"><em>For more information on using the YOS amMap component, please visit <a href="http://www.packtpub.com/article/joomla-with-flash-showing-maps-using-yos-ammap" target="_blank">http://yopensource.com/en/documentation/yos-ammap</a>. You can also check <a href="http://www.ammap.com/" target="_blank">http://www.ammap.com</a> for more information on amMap and to download new map files.</em></p>
<h1>Summary</h1>
<p>In this article we have seen how to use YOS amMap and YOS amChart to create and display interactive Flash-based maps and charts.</p>
<hr size="1" />
<div class="header"><strong>Joomla! with Flash</strong></div>
<table border="0" width="100%">
<tbody>
<tr>
<td width="99" valign="top"><a href="http://www.packtpub.com/joomla-with-flash/book/rk/joomlaflash-abr1/1009?utm_source=rk_joomlaflash_abr1_1009&amp;utm_medium=content&amp;utm_campaign=ramsai"><img class="left" title="Joomla! with Flash" src="http://images.packtpub.com/images/100x123/1847198244.png" border="0" alt="Joomla! with Flash" width="99" height="123" /></a></td>
<td valign="top">
<ul>
<li>Build a stunning, content-rich, and interactive web site with Joomla! 1.5 and Flash CS4</li>
<li>Build an attractive web site integrating Flash objects into Joomla!</li>
<li>Create stunning photo galleries with Flash transition and animation effects</li>
<li>Use interactive Flash-based maps, charts, animations, videos, MP3 players, logos, headers, and banners in Joomla!-based web sites</li>
<li>Turn your Joomla! web site into a feature-rich multimedia enhanced site through this step-by-step easy-to-follow guide enriched with screenshots</li>
</ul>
<p><a href="http://www.packtpub.com/joomla-with-flash/book/rk/joomlaflash-abr1/1009?utm_source=rk_joomlaflash_abr1_1009&amp;utm_medium=content&amp;utm_campaign=ramsai">http://www.packtpub.com/joomla-with-flash/book</a>
</td>
</tr>
</tbody>
</table>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/093f9146-ddd9-4509-9764-5a5b03c2f605/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_b.png?x-id=093f9146-ddd9-4509-9764-5a5b03c2f605" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript">
</script></span></div>
<div class="wooshare_links"><a href="http://twitter.com/?status=Reading: %22Joomla! with Flash: Showing maps using YOS amMap%22 - %url" class="wooshare_link wooshare_twitter" title="Click here to share this post on Twitter" target="_blank"><img src="http://twitter.com/favicon.ico" alt="" class="wooshare_icon wooshare_twitter_icon" /> Tweet</a><a href="http://www.facebook.com/sharer.php?u=http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/" class="wooshare_link wooshare_facebook" title="Click here to share this post on Facebook" target="_blank"><img src="http://www.facebook.com/favicon.ico" alt="" class="wooshare_icon wooshare_facebook_icon" /> Facebook</a><a href="http://www.delicious.com/post?url=http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/" class="wooshare_link wooshare_delicious" title="Click here to share this post on Delicious" target="_blank"><img src="http://www.delicious.com/favicon.ico" alt="" class="wooshare_icon wooshare_delicious_icon" /> Delicious</a><a href="http://www.digg.com/submit?url=http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/" class="wooshare_link wooshare_digg" title="Click here to share this post on Digg" target="_blank"><img src="http://www.digg.com/favicon.ico" alt="" class="wooshare_icon wooshare_digg_icon" /> Digg</a><a href="http://technorati.com/faves?add=http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/-Joomla! with Flash: Showing maps using YOS amMap" class="wooshare_link wooshare_technorati" title="Click here to share this post on Technorati" target="_blank"><img src="http://technorati.com/favicon.ico" alt="" class="wooshare_icon wooshare_technorati_icon" /> Technorati</a><a href="http://posterous.com/share?linkto=http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/&amp;title=Joomla! with Flash: Showing maps using YOS amMap" class="wooshare_link wooshare_Posterous" title="Click here to share this post on Posterous" target="_blank"><img src="http://posterous.com/images/favicon.png" alt="" class="wooshare_icon wooshare_Posterous_icon" /> Posterous</a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.suhreedsarkar.com/2009/11/joomla-with-flash-showing-maps-using-yos-ammap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<!-- Headup publishers widget  --><script type="text/javascript">var hc_Customer = "GenericWidget";var hc_MarkLinks = true;</script><script type="text/javascript" src="http://mint1.headup.com/clientscripts/annotate.js"></script><!-- Headup publishers widget end --></channel>
</rss>
