On Sep 25, 8:49 am, Rossko <[email protected]> wrote: > > My setCenter is not working. Can you recommend what I should do? > > You could just let KmlLayer do its own thing > http://code.google.com/apis/maps/documentation/javascript/overlays.ht... > "By default, when displaying a KmlLayer, the map is zoomed and > positioned to show the entirety of the layer's contents"
That works for the view that displays all articles. In this case only the articles posted to the same domain should display and they're all near same geograpical center. > > map.setCenter(saopaulo) > won't work, see the docs > http://code.google.com/apis/maps/documentation/javascript/reference.h... > setCenter expects to be given a LatLng object, not a KmlLayer object I reworked the javascript to support the wanted effect real glad it was easy. Thanks a lot! -- 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.
