Okay, what I wanted to do was just refocus the map on a marker of my
choice, which I found tricky for some reason.  Not sure if that's what
you wanted to do, but I found a solution that works for me, based on
this thread
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/1fb376b9685d79e2/3376673297b2ae07?lnk=gst&q=focusmap#3376673297b2ae07:

<script type="text/javascript">
function setFocus(myMarker) {
        var myLatLng = myMarker.getPosition();
        map.setCenter(myLatLng);
}
</script>

Then just call the function in the usual way:

<a href="#map" onClick="javascript:setFocus(someMarker);">Click to
focus</a>

Hope this helps.

Cheers,

Ralph


On Jul 16, 12:16 pm, Ralpharama <[email protected]> wrote:
> I'm also searching, if anyone has any other ideas? The mini map isn't
> really suitable for my purposes...
> Thanks,
>
> On Jun 2, 10:43 am, Chris Hunt <[email protected]> wrote:
>
> > In version 2 of the API, markers had ashowMapBlowupmethod that would
> > show a mini map of the marker location. You'd typically set an event
> > handler to display it when the marker is clicked.
>
> > This method appears to be no longer present in v3, does anybody know
> > how I'd achieve the same effect?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to