setting default zoom doesn't work with clientsidekml

bouton - February 6, 2009 - 18:01
Project:GMap Addons
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a map which I build and populate in a node.tpl

It works fine when I populate it with individual markers via the marker array. The zoom upon opening of the map is what I have the default set to..
However if I populate the markers using clientsidekml the default zoom is ignored. All the markers come up fine, just at the wrong zoom level. Also, I do have autozoom turned off.

Thanks

[code]

$overlays = array(
array('type'=>'clientsidekml',
'url' => 'test.xml',
)
);

$map_array = array(
'id' => 'soilSurveyResults',
'maptype' => 'Map',
'align' => 'Center',
'zoom' => '6',
'controltype' => 'Large',
'mtc' => 'standard',
'behavior' => array(
'locpick' => FALSE,
'nodrag' => FALSE,
'nokeyboard' => TRUE,
'overview' => TRUE,
'autozoom' => FALSE,
'dynmarkers' => TRUE,
'scale' => TRUE,
),
'overlay' => $overlays
);

 
 

Drupal is a registered trademark of Dries Buytaert.