> That is not what I am trying to do, all I am trying to do is have the
> one zoom level for the entire map in an XML file rather than on the
> page itself, because it is a template and I only would like to change
> the reference to an XML file.

I'm a little lost as to what you're trying to do, so this may be
irrelevant, but here's what I think you want: That when someone clicks
on your sidebar, for the map to center and zoom on the marker they
just clicked on.

Here's how I'd do it:
in your gmap.js file, change this:
GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });

to this:

GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
    map.setZoom(5);
    map.setCenter(point);
        });

but then like I say I don't really get the need to be doing what you
are trying to do by first adding the zoom level to your xml file then
parsing it out again. Apologies if that's unhelpful.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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.

Reply via email to