<?xml version="1.0" encoding="UTF-8" ?>
<Module>
    <ModulePrefs title="World Map" author="WSO2 Gadget Server"
                 height="230" scrolling="true" tags="maps,visualization,data,analytics"
                 description="A world map based on jvectormap library which. This gadget can be used to create dashboards with statistical data. This gadget can be reused as an iframe in any web page as it is self contained">
        <Require feature="pubsub-2">
            <Param name="topics">
                <![CDATA[
                <Topic title="" name="wso2.gadgets.charts.timeRangeChange"
                description="time range for filtering has been changed" type="object"
                subscribe="true"/>

                <Topic title="" name="wso2.gadgets.charts.ipChange"
                description="ip for filtering has been changed" type="string"
                subscribe="true"/>
                ]]>
            </Param>
        </Require>
    </ModulePrefs>
    <UserPref name="dataSource"
              display_name="Data Source"
              default_value="https://localhost:9453/dashboard/gadgets/bar-chart/datasource/dataFile4.jag">
    </UserPref>
    <UserPref name="appname"
              display_name="Web App Name"
              default_value="">
    </UserPref>
    <UserPref name="startTime"
              display_name="Start time"
              default_value="">
    </UserPref>
    <UserPref name="endTime"
              display_name="End time"
              default_value="">
    </UserPref>
    <UserPref name="node"
              display_name="Node IP"
              default_value="">
    </UserPref>
    <UserPref name="updateGraph" display_name="Update Interval (s)"
              default_value="No">
    </UserPref>
    <UserPref name="appStatType"
              display_name="App Stat Type"
              default_value="request">
    </UserPref>
    <Content type="html">
        <![CDATA[
 <html>
 <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Location</title>
	<link href="css/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="css/open_sans.css" type="text/css" >
	<link rel="stylesheet" href="css/custom.css" type="text/css" >
	<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
	<script language="javascript" type="text/javascript" src="js/jquery-jvectormap-1.2.2.min.js"></script>
	<script language="javascript" type="text/javascript" src="js/jquery-jvectormap-world-mill-en.js"></script>
	<script language="javascript" type="text/javascript" src="js/location.js"></script>

</head>

<body>
<div style="100%; height:300px" class="panel-color">
	<div id="world-map" style="height: 300px; margin: 0 auto;"></div>
</div>

<script>
    fetchData();
</script>

</body>
</html>
    ]]>
    </Content>
</Module>


