Struggling to get a GeoRSS feed to display on the map...here's the
relevant code. The page displays, with map, with controls, but without
overlays, and the reload() function (as it applies to the overlay)
doesn't. Link: http://www.harrowell.org.uk/viktormap.html
var map;
var geoxml;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(25.252778, 55.364444), 6);
map.setMapType(G_NORMAL_MAP);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
geoXml = new GGeoXML("http://www.harrowell.org.uk/ viktorfeed.xml");
map.addOverlay(geoXml);
}
}
function reload() {
map.removeOverlay(geoXml);
geoXml = new GGeoXML("http://www.harrowell.org.uk/ viktorfeed.xml");
map.addOverlay(geoXml);
}
//]]>
</script>
</head>
On Tue, Oct 7, 2008 at 2:34 PM, TYR <a.harrow...@gmail.com> wrote:
> Struggling to get a GeoRSS feed to display on the map...here's the > relevant code. The page displays, with map, with controls, but without > overlays, and the reload() function (as it applies to the overlay) > doesn't. Link: http://www.harrowell.org.uk/viktormap.html
You can make a kml that fails in google earth.... but works fine in
the API
... my GeoXml parser can make sense of things and find styles created
with
Google Earth that dont work in GGeoXml ..
test everywhere...
On Oct 7, 9:06 am, TYR <a.harrow...@gmail.com> wrote:
You can make a kml that fails in google earth.... but works fine in
the API
... my GeoXml parser can make sense of things and find styles created
with
Google Earth that dont work in GGeoXml ..
test everywhere...
On Oct 7, 9:06 am, TYR <a.harrow...@gmail.com> wrote:
On Tue, Oct 7, 2008 at 3:06 PM, TYR <a.harrow...@gmail.com> wrote:
> On Oct 7, 2:48 pm, "Barry Hunter" <barrybhun...@googlemail.com> wrote: >> The XML parser is quite strict, possibly a good idea to tackle these first:
I
On Oct 7, 3:43 pm, "Barry Hunter" <barrybhun...@googlemail.com> wrote:
> On Tue, Oct 7, 2008 at 3:06 PM, TYR <a.harrow...@gmail.com> wrote:
> > On Oct 7, 2:48 pm, "Barry Hunter" <barrybhun...@googlemail.com> wrote:
> >> The XML parser is quite strict, possibly a good idea to tackle these first:
> > Oh God. Google Maps happily renders it but the GMaps API chokes on it?
> You didnt say that! I just stopped at the first error I found.
I've now altered the program that generates the GeoRSS and the feed is
valid, but it doesn't help. The Firefox error console shows "GGeoXML
is not defined". I disagree - http://code.google.com/apis/maps/documentation/services.html#XML_Over... does as well. I defined a var for it, then called it giving the URL as
an argument.
> I
> On Oct 7, 3:43 pm, "Barry Hunter" <barrybhun...@googlemail.com> wrote:
> > On Tue, Oct 7, 2008 at 3:06 PM, TYR <a.harrow...@gmail.com> wrote:
> > > On Oct 7, 2:48 pm, "Barry Hunter" <barrybhun...@googlemail.com> wrote:
> > >> The XML parser is quite strict, possibly a good idea to tackle these first:
> > > Oh God. Google Maps happily renders it but the GMaps API chokes on it?
> > You didnt say that! I just stopped at the first error I found.
> I've now altered the program that generates the GeoRSS and the feed is
> valid, but it doesn't help. The Firefox error console shows "GGeoXML
> is not defined". I disagree -http://code.google.com/apis/maps/documentation/services.html#XML_Over...
> does as well. I defined a var for it, then called it giving the URL as
> an argument.