On Jun 21, 12:18 pm, Paulweb <
walkhighla...@gmail.com> wrote:
> My GMaps API V3 page loads a kml file fine if there is no parameter
> passed to the kml file
>
> e.g. var hilllayer = new google.maps.KmlLayer('
http://www.walkhighlands.co.uk/munros/bagged.kml', { preserveViewport :
> true });
>
> but as soon as I add a parameter it just doesn't load.
Because your server isn't generating valid xml when you do that. I
see this if I look at the "kml" directly:
[phpBB Debug] PHP Notice: in file /home/walkhigh/public_html/munros/
bagged.kml on line 8: mysql_fetch_array(): supplied argument is not a
valid MySQL result resource
If I remove the parameter, the kml is valid.
-- Larry
>
> e.g. var hilllayer = new google.maps.KmlLayer('
http://www.walkhighlands.co.uk/munros/bagged.kml?usid=2508',
> { preserveViewport : true });
>
> This is true even if a nonsense parameter which isn't used by the kml
> is passed.
>
> Seehttp://
www.walkhighlands.co.uk/munros/hills-pages