Monday, November 30, 2009

Re: GeoXml questions

On Nov 29, 12:32 pm, tanos_8888888888 <tanos8888888...@gmail.com>
wrote:

> find or guess what the syntax is for retrieving both the name and
> innerHTML for displaying search results for.  Any example or help here
> is appreciated.

the innerHTML of the sidebar elements are normally not interesting. I
suspect what you want
is the description element from the kml which is used when you
construct
mouseover events and click events.

One trick might be to turn on mouseovers
define some container you want the message to be put in then fire a
mouseover
event on the "marker". the mouseover populates a div with appropriate
description.

in your geoxml constructor include
domouseover:true; messagebox:document.getElementById('messagearea')

marker = geoxml.overlayman.markers[n]; // get marker n
GEvent.trigger(marker,'mouseover'); // trigger mouse over event
telling it to populate the messagearea div above.


>
> My other question is, what event is called when folders are opened and
> closed, and checkboxes are checked and unchecked in the sidebar?

No handy event is fired aside from the html elements click event the
sidebar
is created with the sidebar function and uses innerHTML to create it.
Which
by the way is much faster than using the dom to create elements in
most
every browser.

> would like to write a cookie that remembers selections so the next
> time the map is opened it can properly open and close those folders,
> and check and uncheck what is visible on the map.
>
> Thanks

That is certainly an interesting idea but might not be a novice
project
It could be a nice enhancement for GeoXml.

--

You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate