Filed a bug. Follow at http://code.google.com/p/gmaps-api-issues/issues/detail?id=2697
-Francesco On Sep 4, 10:03 am, Francesco <[email protected]> wrote: > Hi, in the end I think it's a bug. > > You can reproduce it browsing to > http://ousia.mine.nu/index_v2.html > http://ousia.mine.nu/index_v3.html > > The first URL uses Google Maps API v2, the second one v3. > Both use the same KML resources. > > Via API v2 the networklink's href is called with BBOX params, via API > v3 the same endpoint is called without BBOX params: it could be an > error. > I'm going to open an issue. > > -Francesco > > On Sep 4, 8:15 am, Francesco Angelillo <[email protected]> > wrote: > > > > > Hi Sharry, > > thank you for your help. > > > About 1) and 2) you're right: I've modified the kml and now it validates as > > well-formed XML, as you can see here > > http://validator.w3.org/check?uri=ousia.mine.nu%2Fhen.kml&charset=%28... > > > About 3) you are referring to an outdated resource: the one active by now > > is get.kml > > > Pay attention: get.kml is, indeed, an Erlang script that parse the query > > string to retrieve BBOX parameter (as the one passed by Google Earth or by > > the servicehttp://maps.google.com/?q=http://ousia.mine.nu/hen.kml) and > > returns a kml document. > > The Erlang script works quite well: you can test it by browsing to > > http://ousia.mine.nu/hen/get.kml?BBOX=-10.9423828125,-6.5336451305675... > > or > > http://maps.google.com/?q=http://ousia.mine.nu/hen.kml > > or by opening > > http://ousia.mine.nu/hen/hen.kml > > in Google Earth. > > > The problem is that Google Maps Javascript API v3 KmlLayer object doesn't > > pass BBOX parameter when calls the <href> referred by a KML NetworkLink. > > > Now I'm going to see if v2 works (maybe it is a bug of v3 release). > > > To be continued... > > > -Francesco > > > Il giorno 03/set/2010, alle ore 17.20, Sharry ha scritto: > > > > Hi, I've just ran the kml through a validator, I notice 3 things: > > > 1) Beware using < > characters in XML/KML, use < and > instead > > > whilst within elements > > > 2) The validator throws errors when using refreshInterval (refreshMode > > > value must be "onInterval") & viewRefreshTime (refreshMode value must > > > be "onStop"), see > > > here:http://service.kmlvalidator.com/ets/ogc-kml/2.2/#LinkRefresh > > > 3) The feed http://ousia.mine.nu/hen/get_kmlisthrowing some errors: > > > "Internal error, yaws code crashed". > > > > Hope this helps! > > > > code > > > <?xml version="1.0" encoding="UTF-8"?> > > > <kml xmlns="http://www.opengis.net/kml/2.2"> > > > <Folder> > > > <name>Network Links</name> > > > <visibility>0</visibility> > > > <open>0</open> > > > <description>Hen</description> > > > <NetworkLink> > > > <name>Hen</name> > > > <open>0</open> > > > <description>--></description> > > > <Link> > > > <href>http://ousia.mine.nu/hen/get_kml</href> > > > <refreshInterval>2</refreshInterval> > > > <viewRefreshMode>onStop</viewRefreshMode> > > > <viewRefreshTime>1</viewRefreshTime> > > > </Link> > > > </NetworkLink> > > > </Folder> > > > </kml> > > > > On Sep 3, 3:09 pm, Francesco <[email protected]> wrote: > > >> Hi Joseph, > > >> thank you for the advice, but it's not the solution. > > > >> I changed the href but nothing happens. > > >> Moreover I've checked supported KML tags in Google Maps on > > >> http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html > > >> and I removed the unsupported one: viewFormat, but, still, > > >> http://maps.google.dk/?q=http://ousia.mine.nu/hen.kml > > >> works while > > >> http://ousia.mine.nu > > >> does not. > > > >> -Francesco > > > >> On Sep 3, 2:43 pm, Joseph Elfelt <[email protected]> wrote: > > > >>> Your KML file says: > > >>> <href>/hen/get_kml</href> > > > >>> Try using a complete URL to your KML file and deleting the next 4 > > >>> lines. > > > >>> On Sep 3, 4:18 am, Francesco <[email protected]> wrote: > > > >>>> Hi, > > >>>> I'm experiencing the same strange behaviour. > > > >>>> You can see the kml working at > > >>>> http://maps.google.dk/?q=http://ousia.mine.nu/hen.kml > > > > -- > > > 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 > > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
