iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library

13.07.2015 Views

iReport Ultimate GuideFigure 13-4Advanced options on the Map Configuration tabWith the advanced properties you can enter static or dynamic expressions for any property that is supported by URon map elements.Click Add to add a property. In the Map property window that appears, enter a property name or select one from the dropdownmenu, and specify a proper expression. For information about all the available properties, refer to the Fusion MapsHTML documentation at /ireportpro/FusionMaps_Enterprise/Maps/index.html.It is important that the expressions return the Java types expected for each property.• Properties that you toggle on and off with check boxes in the Simple Options view must have an expression that evaluatesto a Boolean value.• Properties that represent a color must return an object of type java.awt.Color.• Numbers must return valid numeric objects.• The rest of the attributes are of type String.• To define a color you can use an expression such as:java.awt.Color.REDnew java.awt.Color(255,255,255) /* This is the color white */Refer to the Javadoc of the java.awt.Color class for the list of static color names and instantiation parameters.Regardless of whether you use the simple or advanced properties, the map configuration that is saved in the XML of yourreport consists of pairs of property names and value expressions.13.2.2 Determining Map Entity IDsThe countries or other geographical regions in a map are called “entities” in Maps Pro. Each entity is identified by an ID that isunique within a map but not among all maps. Entity IDs are sometimes called entity codes. In some cases, entity IDscorrespond to the geographical regions they represent; in other cases they are simply numbers.244

Flash ChartsThe following figure shows a map of the United States of America, which is composed of 51 entities representing the statesplus the District of Columbia:Figure 13-5Map of the United States of AmericaIn the case of the United States, the entity IDs for the states are the same as their two-letter postal abbreviations:Table 13-1 Entity IDs of States of the USAEntity ID Entity ID Entity IDAlabama AL Louisiana LA Ohio OHAlaska AK Maine ME Oklahoma OKArizona AZ Maryland MD Pennsylvania PACalifornia CA Michigan MI Rhode Island RIColorado CO Minnesota MN South Carolina SCConnecticut CT Mississippi MS South Dakota SDDelaware DE Missouri MO Tennessee TNFlorida FL Montana MT Texas TXGeorgia GA Nebraska NE Utah UTHawaii HI Nevada NV Vermont VTIdaho ID NewHampshireNH Virginia VAIllinois IL New Jersey NJ Washington WAIndiana IN New Mexico NM West Virginia WVIowa IA New York NY Wisconsin WIKansas KS North Carolina NC Wyoming WYKentucky KY North Dakota ND District ofColumbiaDC245

Flash ChartsThe following figure shows a map of the United States of America, which is composed of 51 entities representing the statesplus the District of Columbia:Figure 13-5Map of the United States of AmericaIn the case of the United States, the entity IDs for the states are the same as their two-letter postal abbreviations:Table 13-1 Entity IDs of States of the USAEntity ID Entity ID Entity IDAlabama AL Louisiana LA Ohio OHAlaska AK Maine ME Oklahoma OKArizona AZ Maryland MD Pennsylvania PACalifornia CA Michigan MI Rhode Island RIColorado CO Minnesota MN South Carolina SCConnecticut CT Mississippi MS South Dakota SDDelaware DE Missouri MO Tennessee TNFlorida FL Montana MT Texas TXGeorgia GA Nebraska NE Utah UTHawaii HI Nevada NV Vermont VTIdaho ID NewHampshireNH Virginia VAIllinois IL New Jersey NJ Washington WAIndiana IN New Mexico NM West Virginia WVIowa IA New York NY Wisconsin WIKansas KS North Carolina NC Wyoming WYKentucky KY North Dakota ND District ofColumbiaDC245

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!