<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="6.0" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="37871,9972084722" ReportOptions.Description.Text="Demonstrates how to create interactive map. The map displays sales in the world. When you click some country, you will see another report with sales details in this country. To create a map:&#13;&#10;&#13;&#10;- put the Map object on the report page;&#13;&#10;&#13;&#10;- right-click the object, to pop up its menu;&#13;&#10;&#13;&#10;- select &#34;Add Layer&#34; to add a map layer;&#13;&#10;&#13;&#10;- select ESRI MapFile (.shp/.dbf files);&#13;&#10;&#13;&#10;- set the dataset for the map layer;&#13;&#10;&#13;&#10;- set the spatial data (typically an expression that returns a country name) and the analytical data (an expression that returns, for example, sales in this country);&#13;&#10;&#13;&#10;- configure the hyperlink." ReportOptions.LastChange="42760,7408680208" ScriptLanguage="PascalScript" ScriptText.Text="procedure Map1OnPreviewClick(Sender: TfrxView; Button: TMouseButton; Shift: Integer; var Modified: Boolean);&#13;&#10;begin&#13;&#10;  if TfrxMapView(Sender).SelectedShapeName = 'United States' then&#13;&#10;    TfrxMapView(Sender).Hyperlink.Value := '''USA'''&#13;&#10;  else&#13;&#10;    TfrxMapView(Sender).Hyperlink.Value :=  '''' + TfrxMapView(Sender).SelectedShapeName + '''';&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="ReportData.MapOrderDetailsDS" DataSetName="MapOrderDetails"/>
    <item DataSet="ReportData.MapOrdersDS" DataSetName="MapOrders"/>
  </Datasets>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="5" RightMargin="5" TopMargin="5" BottomMargin="5" MirrorMargins="True" Columns="1" ColumnWidth="210" ColumnPositions.Text="0" PrintOnPreviousPage="True" HGuides.Text="" VGuides.Text="">
    <TfrxMapView Name="Map1" IndexTag="0" Left="18,8976378" Top="83,1496063" Width="718,11023622" Height="689,76377953" OnPreviewClick="Map1OnPreviewClick" Hyperlink.Kind="hkDetailReport" Hyperlink.DetailReport="115-2.fr3" Hyperlink.DetailPage="Page2" Hyperlink.ReportVariable="FilterVar" Hyperlink.Value="'test'" Fill.BackColor="12632256" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" Zoom="1" MaxZoom="50" MinZoom="1" OffsetX="0" OffsetY="0" KeepAspectRatio="True" MercatorProjection="True" ColorScale.Visible="True" ColorScale.BorderColor="0" ColorScale.BorderWidth="1" ColorScale.Dock="sdBottomRight" ColorScale.FillColor="16777215" ColorScale.Font.Charset="1" ColorScale.Font.Color="-16777208" ColorScale.Font.Height="-13" ColorScale.Font.Name="Tahoma" ColorScale.Font.Style="0" ColorScale.TitleFont.Charset="1" ColorScale.TitleFont.Color="-16777208" ColorScale.TitleFont.Height="-13" ColorScale.TitleFont.Name="Tahoma" ColorScale.TitleFont.Style="0" ColorScale.ValueFormat="%1.0f" SizeScale.Visible="True" SizeScale.BorderColor="0" SizeScale.BorderWidth="1" SizeScale.Dock="sdBottomRight" SizeScale.FillColor="16777215" SizeScale.Font.Charset="1" SizeScale.Font.Color="-16777208" SizeScale.Font.Height="-13" SizeScale.Font.Name="Tahoma" SizeScale.Font.Style="0" SizeScale.TitleFont.Charset="1" SizeScale.TitleFont.Color="-16777208" SizeScale.TitleFont.Height="-13" SizeScale.TitleFont.Name="Tahoma" SizeScale.TitleFont.Style="0" SizeScale.ValueFormat="%1.2f" PropData="09436F6E76657274657209090500000000000000B406C00500F87E49B16FFFB305C00500080000000000B406400500706071D0FE32A705400500000000000000B407400500607C406EA79EAC07400500B8F880DC4E3DA50640050008EF371C0E87B308400500C84AD005AB2AAC08400805000000000000000000000500000000000000000000050000000000000000000005000000000000000000000500000000000000000000">
      <TfrxMapFileLayer Name="MapFileLayer1" AnalyticalValue="&#60;MapOrderDetails.&#34;UnitPrice&#34;&#62; * &#60;MapOrderDetails.&#34;Quantity&#34;&#62; * (1 - &#60;MapOrderDetails.&#34;Discount&#34;&#62;)" ColorRanges.RangeFactor="rfValue" ColorRanges.RangeCount="3" ColorRanges.Visible="True" ColorRanges.StartColor="255" ColorRanges.MiddleColor="65535" ColorRanges.EndColor="32768" DataSet="ReportData.MapOrderDetailsDS" DefaultShapeStyle.BorderColor="0" DefaultShapeStyle.BorderStyle="psSolid" DefaultShapeStyle.BorderWidth="1" DefaultShapeStyle.FillColor="16777215" DefaultShapeStyle.PointSize="10" HighlightColor="65280" Operation="opSum" ValueFormat="%1.0f" LabelKind="mlName" MapPalette="mpNone" SizeRanges.RangeFactor="rfValue" SizeRanges.RangeCount="0" SizeRanges.Visible="True" SizeRanges.StartSize="4" SizeRanges.EndSize="20" PointLabelsVisibleAtZoom="1" LabelColumn="NAME" SpatialColumn="NAME" MapAccuracy="0" MapFileName="Maps\world.shp" PixelAccuracy="0" SpatialValue="IIF(&#60;MapOrders.&#34;ShipCountry&#34;&#62; = 'USA', 'United States' , &#60;MapOrders.&#34;ShipCountry&#34;&#62;)" PropData="[encoded data, 64398 characters]"/>
    </TfrxMapView>
    <TfrxMemoView Name="Memo1" IndexTag="0" Left="18,8976378" Top="0" Width="718,11023622" Height="37,7953" AutoWidth="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-24" Font.Name="Arial" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="World Sales, Interactive"/>
    <TfrxMemoView Name="Memo2" IndexTag="0" Left="18,8976378" Top="37,79527559" Width="718,11023622" Height="22,67718" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Click the country to see detailed report."/>
    <TfrxMemoView Name="Memo3" IndexTag="0" Left="18,89765" Top="60,4724409448819" Width="718,11023622" Height="22,67718" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Use the left mouse button to pan, mouse wheel to zoom the map."/>
  </TfrxReportPage>
</TfrxReport>
