On Jun 21, 11:32 am, Nathan Raley <
nlrale...@gmail.com> wrote:
> Finally found some documentation on kml files, I had to do some digging.
>
> Basically for a simple marker I'd just need to define the kml entry as
> something along the lines of:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="
http://www.opengis.net/kml/2.2">
> <Placemark>
> <name>Simple placemark</name>
> <description>Attached to the ground. Intelligently places itself
> at the height of the underlying terrain.</description>
> <Point>
> <coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
> </Point>
> </Placemark>
> </kml>
>
> Is this correct?
Looks like it to me - although I'm no expert at mentally parsing
KML :-)
>If so is there a way to go about doing this dynamically on
> the fly? The reason I ask is that I am reading a file from my c++ app and
> my map is basically on an embedded html object. I read the information from
> the c and was just passing it to the javascript to store and then create the
> markers then bulk add with marker manager. Is there a way to create this on
> the fly, or will I need to work this into my c++ program and save another
> file in this format instead?
I dynamically generate my Kml. Remember though, that Kml files MUST be
served from a public web server. Google's servers actually request the
file and parse it. The client only sees the resulting tiles - not the
Kml file directly.
You can use whatever server-side language/platform you are most
comfortable with.
Chad Killingsworth
> >>
google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B
unsub...@googlegroups.com>
> >> .