On Apr 26, 11:03 am, Plymouth <[email protected]> wrote: > Is it possible to set a zoom level when the preserveViewport is set to > false? > > I have a few single point KML files that when I specify to not preserve the > viewport, the zoom level is far greater than I'd like it to be. Is it > possible specify a zoom level for each KML layer variable? > > This is a line of code from my site that i'm attempt to work from. I can > provide a link if necessary... > > zipLayer = new > google.maps.KmlLayer('https://sites.google.com/site/gec5349/kmz-files/ZipCode.kml?attredire...,{preserveViewport:false}); > > Thanks.
have you tried listening for the metadata_changed or zoom_changed event and setting the zoom you would like? -- Larry -- 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.
