On Jun 21, 12:18 pm, Paulweb <[email protected]> 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
>
> Many, many thanks for any help.
--
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.