...
Examples of Google Maps Features
Icons
The fallowing sample KML will display a place marker at the latitude and longitude supplied to it
...
Charts
JFreeChart or any other graphing API can be used to display Router Utilization Graphs. The Graphs can be saved as images and then there URL can be provided to the CallOut to display the graph. Here is a sample code
...
Lines
Two draw lines between two points the fallowing code can be used
Code Block |
---|
<Placemark>
<name>Polyline 1</name>
<description>This is some info aboout polyline 1</description>
<Style>
<LineStyle>
<color>ff00ff00</color>
<width>6</width>
</LineStyle>
</Style>
<LineString>
<coordinates>-122.1,37.4,0 122.0,-37.4,0 </coordinates>
</LineString>
</Placemark>
|
The thickness, color, size and transparency of the line can be adjusted.
Currently I am writing a KMLWriter Class that will have functions for producting all the KML output, so the user will only need to supply the arguments to its functions. Currently the Class has three methods
drawIcon(String title, String description, String latitude, Sting longitude)
drawLine(String lat1, String lon1,String lat2, String lon2, String color)