Wasn't it HIC who wrote:
>
>Thanks Mike!
>
>The whole "it may well fail to work in future releases" probably
>wouldnt set well. Id prefer to keep using the KML over the XML,
>eliminating the EGeoXML option at the moment. I will research/work
>with the GeoXML option.
>
>Maybe im stretching by asking, please forgive me as am still fairly
>new developing and the API....By any chance, since the KML includes
>lat/long data for each line drawn, is there a way to link based on the
>lat/long from some sort of primary key from the tabular data? Creating
>a .js file seen in some examples with marker info:
>
>var markers = [
> {
> 'abbr': 'HQ',
> 'name': 'Headquarters',
> 'latitude':34.08517,
> 'longitude':-118.15219,
> 'wp':''
> }
>]; ....
>
>but instead of hardcoding the latitude & longitude, setting a variable
>that will loop through and to get the latitude/longitude from the KML?
As you're using GeoXml rather than GGeoXml, I believe that you can write
your own {createpolyline} callout. That callout function receives the
coordinates as an array of GLatLngs, and the "name" field. You could
arrange for the KML name field to be the same as your XML name field and
use it as your primary key. Perform the polyline creation (grab a copy
of the code from inside geoxml.js and replace the sidebar creation with
code that does whatever you want it to do with the tabular data.
[Lance based GeoXml on EGeoXml which does allow you to do that, I
imagine he kept that feature, but I've not checked. You can certainly do
that with EGeoXml.]
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---