Welcome to TWiki... Users, Groups
Go

Map Charts

With 10.2 we have merged maps into the new chart engine. In addition to more display flexibility, this provides a couple new abilities. You can now plot Latitude and Longitude on a map, and you can add custom map data.

Latitude and Longitude

Simply drag your Latitude to the Y-axis and Longitude to the X-axis. However, for the United States map we have moved Alaska and Hawaii so they are closer to the other 48 States. The inset transformation is part of the data and is not performed at runtime. If you want to plot your own points in Alaska or Hawaii, you will have to perform the transformation on your data before plotting the points. The transformation is a standard affine transform performed on the coordinates (x=longitude, y=latitude). These are the transformation matrices:

Alaska:

0.204 0.0 -85.0
0.0 0.354 5.0
0.0 0.0 1.0

Hawaii:

1.0 0.0 50.0
0.0 1.0 5.0
0.0 0.0 1.0

Custom Map Data

You can convert SHP files for use in our product using this web-based map conversion tool.

After you have converted your map and downloaded the zip package, extract it into your SREE Home (e.g. WEB-INF/classes directory).

Note that your custom map will be merged with the default maps that come with our product.

If you create multiple custom maps, you will have to manually merge the mapdata.xml files and ensure the IDs are unique. The format is:

<?xml version="1.0" encoding="UTF-8" ?>
<mapdata>

<!-- layer id for point layer must have id >= 1000 -->
<layer name="Custom Shape Layer Name" id="3" />
<layer name="Custom Point Layer Name" id="4" />
<matching layers="3" columns="0"/>
<matching layers="4" columns="0"/>

<map type="Custom Map Name">
  <shapedata data="data/custom-data.csv" layer="Custom Shape Layer Name">
    <sampledata>Example 1</sampledata>
    <sampledata>Example 2</sampledata>
  </shapedata>
  <pointdata data="data/other-data.csv" layer="Custom Point Layer Name">
    <sampledata>Sample 1</sampledata>
    <sampledata>Sample 2</sampledata>
    <sampledata>Sample 3</sampledata>
  </pointdata>
</map>

</mapdata>
r3 - 20 Sep 2010 - 20:01:33 - ByronIgoe
Copyright © by the contributing authors.
Syndicate this site RSSATOM