Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples of Google Maps Features

Icons

  The fallowing sample KML  will display a place marker at the latitude and longitude supplied to it

...

http://maps.google.com/maps?f=q&hl=en&q=http://www.slac.stanford.edu/comp/net/wan-mon/viper/l.kml&layer=&ie=UTF8&z=17&om=1

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

...

http://maps.google.com/maps?f=q&hl=en&q=http://www.slac.stanford.edu/comp/net/wan-mon/viper/fourth.kml&layer=&ie=UTF8&z=3&ll=52.05249,98.4375&spn=81.078359,163.476563&om=1&iwloc=A

 \
 
 

Lines

 Two draw lines between two points the fallowing code can be used

Code Block

<Placemark>
&nbsp;&nbsp;&nbsp; <name>Polyline 1</name>
&nbsp;&nbsp;&nbsp; <description>This is some info aboout polyline 1</description>
&nbsp;&nbsp;&nbsp; <Style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <LineStyle>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <color>ff00ff00</color>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <width>6</width>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </LineStyle>
&nbsp;&nbsp;&nbsp; </Style>
&nbsp;&nbsp;&nbsp; <LineString>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <coordinates>-122.1,37.4,0 122.0,-37.4,0 </coordinates>
&nbsp;&nbsp;&nbsp; </LineString>
&nbsp; </Placemark>

http://maps.google.com/maps?f=q&hl=en&q=http://www.slac.stanford.edu/comp/net/wan-mon/viper/pline.kml&layer=&ie=UTF8&z=3&om=1Image Added

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)