On Sep 22, 3:00 pm, Daniish <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I use MarkerManager to control the display of my markers, however, it
> is interfering with the display of my infowindow.
>
> My code is defined as follows:
> // A function to create the marker and set up the event window
> function
> createMarker(point,name,infotitle,html,icontype,maxZoom) {
> // === create a marker with the requested icon ===
> var marker = new GMarker(point, gicons[icontype]);
> if(icontype == 'pushpin' || icontype == 'arrow') {
> GEvent.addListener(marker, "click",
> function() {
> //
> map.setCenter(marker.getPoint(),maxZoom,G_SATELLITE_MAP);
>
> map.setCenter(marker.getPoint(),maxZoom);//no infowindow only
> center on point,maxZoom and maptype
> });
> }else{
> GEvent.addListener(marker, "click", function() {
> map.setCenter(marker.getPoint(),maxZoom);
> marker.openInfoWindowHtml({maxContent:
> html, maxTitle:
> infotitle, noCloseOnClick: true});
> // noCloseOnClick works - but a double
> click will still close
> the IW and zoom in!! Can this be prevented?
> });
> }
>
> The problem is in my ELSE statement.
>
> At the moment, one click on the marker zooms in, and a second click on
> the marker opens a small infowindow.
> I would like one click to do both and for the infowindow to open
> maximised [- something like this: map.getInfoWindow().maximize() ].
>
> I can do this by turning the markerManager off but i need them to work
> together - any ideas?
In the click processing open the infoWindow and use setTimeout to
schedule a function that maximizes the infoWindow after the browser
has time to render it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---