On Dec 7, 10:49 pm, Mike Williams <[email protected]> wrote:
> If you want other people to share your data (e.g. for Google to index your
> data file directly) use KML. Otherwise avoid KML because you want to do
> things that are not directly included in GGeoXml, EGeoXml or GeoXml, so it
> all gets a little messy.
At this point, I don't care if anyone else can index my file (that may
change someday, but I'll worry about that when I'm direct to restrict
indexing of our data).
> So choose whichever of XML, Plain text or JSON you find easiest to generate.
>
> The main thing you need to think about is the total amount of data that
> you're going to need to work with.
Currently I have around 300 markers, but I'm sure as we search the web
for more WA state OHV area/trails, that number will grow. But I think
the end total will be around 1,000 or less.
> Your choice of data file type doesn't limit what you can put in the side bar.
> My examples only use a short name field for the side bar info because I was
> too lazy to write long descriptions into my data. You can easily add fields
> to your data that are the equivalent of KML <description> and <Snippet> tags.
I've never written an XML file before - other than copy some of your
excellent examples.
Just went out to the w3schools website and took a quick course in XML
and it appears I can link the XML file to a style sheet so my sidebar
can be just about any format I like. Is this pretty much a correct
assumption?
> In order to achieve that (paulp575 wrote 'Would also like the side-bar item
> to be highlighted when a marker on the map is clicked on.'), you need to add
> a unique "id" attribute to your sidebar entries. Then, when gmarker[i] gets
> clicked you can access document.getElementById("sidebarEntry" + i) and change
> its style.
>
> Remember which sidebar entry is currently highlighted, so you can unhighlight
> it whenever you see an "infowindowclose" event.
That's something I'm going to have to learn!
Do any of your excellent tutorials cover that?
Thanks for your very informative response!
paulp575
--
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.