just add after georssLayer.setMap(map); map.setZoom(6); bye
2010/8/4 SBS_Mags <[email protected]> > When my map loads it uses the zoom and center position settings I > defined, but as soon as it pulls my GeoRSS data it zooms out. I'm not > sure how to override this. > > Full map: http://louisianagardener.com/maps/ > Zoom Error: http://www.louisianagardener.com/card_members_map2.php > RSS Feed: http://louisianagardener.com/maps/rss/ > > Thanks, > Christopher > > > Code: > > <!-- Google Maps JavaScript --> > <script type="text/javascript" src="http://maps.google.com/maps/api/js? > sensor=false <http://maps.google.com/maps/api/js?%0Asensor=false> > "></script> > <script type="text/javascript"> > function initialize() { > var myLatlng = new google.maps.LatLng(31.292778, -92.459167); > var myOptions = { > zoom: 6, > center: myLatlng, > disableDefaultUI: false, > mapTypeId: google.maps.MapTypeId.ROADMAP > } > > var map = new google.maps.Map(document.getElementById("map_canvas"), > myOptions); > > var georssLayer = new google.maps.KmlLayer('http:// > www.louisianagardener.com/maps/rss/'<http://www.louisianagardener.com/maps/rss/%27> > ); > georssLayer.setMap(map); > } > </script> > > <!-- Google Maps JavaScript --> > > -- > 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]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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.
