[Google Maps API v3] Re: Is it possible to add a kml but center the map to another location?

2011-07-19 Thread az
Disregards the above, I got it working, kml_layer = new google.maps.KmlLayer('http://some.kmz', {preserveViewport: true}); my bad :) Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web vi

[Google Maps API v3] Re: Is it possible to add a kml but center the map to another location?

2011-07-19 Thread az
is this the exact syntax? var ctaLayer = new google.maps.KmlLayer('http://garnet2k.dyndns.org:8080/people1.kml', '{opts?preserveViewport: true'}); -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the

[Google Maps API v3] Re: Is it possible to add a kml but center the map to another location?

2011-07-19 Thread az
Hi I tried this but it doesnt show the kml file. http://www.kupuvalnik.com/test23.php the map is centered over 25 east, there is a 3 point kml in britain (around -2W and 52 N) but it is not shown. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups

[Google Maps API v3] Re: Is it possible to add a kml but center the map to another location?

2011-07-18 Thread samsoe
just add preserve viewport var kml_layer = new google.maps.KmlLayer('http://some.kmz', {preserveViewport: true}); -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google

[Google Maps API v3] Re: Is it possible to add a kml but center the map to another location?

2011-07-18 Thread geocode...@gmail.com
On Jul 18, 10:54 am, az wrote: > I have a kml containing some points, its center is say, lat 45 long 50 > When I first initialize the map i do it with coords lat 40 long 10, but it > always centers itself on the kml's center. > Is it posible to make the map center on 40,40 even if the kml is not v