%@ Language=VBScript %>
<%
'We've included ../Includes/FusionMaps.asp, which contains functions
'to help us easily embed the maps.
%>
FusionMaps Sample - Basic Example from array - Using dataXML
<%
'We've included ../Includes/FusionMaps.js, which contains functions
'to help us easily embed the maps.
%>
Using dataXML method
Retrieving data stored in an Array
<%
'This page demonstrates the ease of generating Maps using FusionMaps.
'For this Maps, we've used an array to to store world population data
'We will make a simple world map showing population of each segment
'Ideally, you would NOT use a physical data file. Instead you'll have
'your own ASP scripts virtually relay the XML data document. Such examples are also present.
'For a head-start, we've kept this example very simple.
'Declare array entity to store world population
' we use wolrd map with 8 entities/continents
' this 2 dimensional array will store 8 rows of data for each continent of the map
' first column of each row will store the Internal Id of each entity on the map
' second column will store population data of each entity
dim dataArray(8,2)
'Store population data
dataArray(1,1)="01" ' Internal ID of Asia
dataArray(1,2)="3779000000" ' Asia's population
dataArray(2,1)="02"
dataArray(2,2)="727000000"
dataArray(3,1)="03"
dataArray(3,2)="877500000"
dataArray(4,1)="04"
dataArray(4,2)="421500000"
dataArray(5,1)="05"
dataArray(5,2)="379500000"
dataArray(6,1)="06"
dataArray(6,2)="80200000"
dataArray(7,1)="07"
dataArray(7,2)="32000000"
dataArray(8,1)="08"
dataArray(8,2)="179000000"
'Declare strXML to store dataXML of the map
dim strXML
'Opening MAP element
strXML = ""
'Create the Map - using strXML as dataXML string;
Call renderMap("../../Maps/FCMap_World8.swf", "", strXML, "firstMap", 750, 460,0,0)
%>
Unable to see the MAP above?