On Sep 25, 8:49 am, Rossko <
ros...@culzean.clara.co.uk> 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!