If you have data that needs to be plotted at specific latitude-longitude points, add the data items to the map using ITXML or PCScript. For this to work, first be sure the map was derived from latitude/longitude-based data. Maps not derived from latitude/longitude source files cannot correctly locate latitude/longitude data items.
Most Corda-supplied maps are based on latitude/longitude information. To determine if this is the case for a given map, use the following procedure:
To find out if a map supports latitude-longitude data items
Open the .itxml file in a text editor.
Look in the <Coords> tag near the top of the file.
Set the Source attribute to LatLong when plotting lat/long points on the map.
This section includes the following topics:
To add a data item, specify it's longitude and latitude. For acceptable formats for latitude and longitude, see Acceptable Formats for Coordinates below.
Add a data item using either ITXML or PCScript.
To add a data item using ITXML, add a new map-point object. More information about this object is available in the Corda® 7 Object Reference in Corda Builder™.
Add a data item in PCScript with the map.addPoint method.
To dynamically add a line between two latitude/longitude coordinate pairs, use the PCScript map.addLine method.
Specify latitude/longitude coordinates in one of two formats: decimal or degree/minute/second. For example, all the following coordinate specifications are valid:
39.72007, -117.72148
N 39° 43' 12.25", W 117° 43' 17.32"
39° 43' 12.25" N, 117° 43' 17.32" W
39° 43' 12.25", - 117° 43' 17.32"
N 39 43 12.25, W 117 43 17.32
39 43 12.25 N, 117 43 17.32 W
39 43 12.25, - 117 43 17.32