The map plots some locations and uses geoxml to display layers fed by
georss feeds. I've been able to change the icon displayed for the
feeds by editing geoxml.js but what I would really like is a different
icon being displayed on the map for each of the three feeds. Is this
possible.
> The map plots some locations and uses geoxml to display layers fed by > georss feeds. I've been able to change the icon displayed for the > feeds by editing geoxml.js but what I would really like is a different > icon being displayed on the map for each of the three feeds. Is this > possible.
Hi Lance, thanks for the quick advice but I'm not sure how I should
implement it. At the moment I am submitting all 3 georss feeds to
exml.parse as an array. Are you saying I should send each one
separately?
Also I have experimented sending just one feed and then after it's
parsed using
geoxml.rssicon = "newiconurl";
to change the icons displayed on the map and it has now effect. I
think I've misunderstood how this works.
Regards
Singeo
On Jul 4, 12:36 pm, Lance Dyas <lance...@inetnebr.com> wrote:
> > The map plots some locations and uses geoxml to display layers fed by
> > georss feeds. I've been able to change the icon displayed for the
> > feeds by editing geoxml.js but what I would really like is a different
> > icon being displayed on the map for each of the three feeds. Is this
> > possible.
I normally recommend using a single GeoXml but this is a case where in order to make parameter changes between feeds you will need to use a different geoxml instance in other words due to the asynchronous nature of downloads.. the method I suggested wont work unless you go to some effort of adding listeners for the parsed event and similar things which are way too much work.
Insted I recommend distinct instances of GeoXml to allow distinct settings.
var exml = new GeoXml("exml", mmap, gdacsfl, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false}); exml.rssicon = "tsunami.gif"; exml.parse("GDACS Floods");
var exml1 = new GeoXml("exml1", mmap, eq25url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:icon}); exml1.parse("Eathquakes > 2.5");
var exml2 = new GeoXml("exml2", mmap, eq5url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:ricon}); exml2.parse("Earth Quakes > 5");
I did fix an error where RSS feeds where ignoring the allfoldersopen option and also made sure the baseicon size settings were being used
Singeo wrote: > Hi Lance, thanks for the quick advice but I'm not sure how I should > implement it. At the moment I am submitting all 3 georss feeds to > exml.parse as an array. Are you saying I should send each one > separately?
> Also I have experimented sending just one feed and then after it's > parsed using
> geoxml.rssicon = "newiconurl";
> to change the icons displayed on the map and it has now effect. I > think I've misunderstood how this works.
> Regards
> Singeo
> On Jul 4, 12:36 pm, Lance Dyas <lance...@inetnebr.com> wrote:
>>> The map plots some locations and uses geoxml to display layers fed by >>> georss feeds. I've been able to change the icon displayed for the >>> feeds by editing geoxml.js but what I would really like is a different >>> icon being displayed on the map for each of the three feeds. Is this >>> possible.
> I normally recommend using a single GeoXml but this is a case where in
> order
> to make parameter changes between feeds you will need to use a different
> geoxml instance
> in other words due to the asynchronous nature of downloads.. the method
> I suggested wont work
> unless you go to some effort of adding listeners for the parsed event
> and similar
> things which are way too much work.
> Insted I recommend distinct instances of GeoXml to allow distinct settings.
> var exml = new GeoXml("exml", mmap, gdacsfl, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false});
> exml.rssicon = "tsunami.gif";
> exml.parse("GDACS Floods");
> var exml1 = new GeoXml("exml1", mmap, eq25url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:icon});
> exml1.parse("Eathquakes > 2.5");
> var exml2 = new GeoXml("exml2", mmap, eq5url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:ricon});
> exml2.parse("Earth Quakes > 5");
> I did fix an error where RSS feeds where ignoring the allfoldersopen option
> and also made sure the baseicon size settings were being used
> Singeo wrote:
> > Hi Lance, thanks for the quick advice but I'm not sure how I should
> > implement it. At the moment I am submitting all 3 georss feeds to
> > exml.parse as an array. Are you saying I should send each one
> > separately?
> > Also I have experimented sending just one feed and then after it's
> > parsed using
> > geoxml.rssicon = "newiconurl";
> > to change the icons displayed on the map and it has now effect. I
> > think I've misunderstood how this works.
> >>> The map plots some locations and uses geoxml to display layers fed by
> >>> georss feeds. I've been able to change the icon displayed for the
> >>> feeds by editing geoxml.js but what I would really like is a different
> >>> icon being displayed on the map for each of the three feeds. Is this
> >>> possible.
> Lance, that did the trick, thanks for all your help (and for
> geoxml....).
> On Jul 5, 1:40 am, Lance Dyas <lance...@inetnebr.com> wrote:
> > I normally recommend using a single GeoXml but this is a case where in
> > order
> > to make parameter changes between feeds you will need to use a different
> > geoxml instance
> > in other words due to the asynchronous nature of downloads.. the method
> > I suggested wont work
> > unless you go to some effort of adding listeners for the parsed event
> > and similar
> > things which are way too much work.
> > Insted I recommend distinct instances of GeoXml to allow distinct settings.
> > Singeo wrote:
> > > Hi Lance, thanks for the quick advice but I'm not sure how I should
> > > implement it. At the moment I am submitting all 3 georss feeds to
> > > exml.parse as an array. Are you saying I should send each one
> > > separately?
> > > Also I have experimented sending just one feed and then after it's
> > > parsed using
> > > geoxml.rssicon = "newiconurl";
> > > to change the icons displayed on the map and it has now effect. I
> > > think I've misunderstood how this works.
> > >>> The map plots some locations and uses geoxml to display layers fed by
> > >>> georss feeds. I've been able to change the icon displayed for the
> > >>> feeds by editing geoxml.js but what I would really like is a different
> > >>> icon being displayed on the map for each of the three feeds. Is this
> > >>> possible.
As you can see from the map I can get round this by using egeoxml to
parse the kml (at http://www.gdacs.org/xml/gdacs.kml), but would
prefer to use geoxml as it gives me more control over the sidebar.
I've tried using ggeoxml to parse the kml file but it produces some
strange results.
Thanks.
On Jul 5, 1:40 am, Lance Dyas <lance...@inetnebr.com> wrote:
> I normally recommend using a single GeoXml but this is a case where in
> order
> to make parameter changes between feeds you will need to use a different
> geoxml instance
> in other words due to the asynchronous nature of downloads.. the method
> I suggested wont work
> unless you go to some effort of adding listeners for the parsed event
> and similar
> things which are way too much work.
> Insted I recommend distinct instances of GeoXml to allow distinct settings.
> var exml = new GeoXml("exml", mmap, gdacsfl, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false});
> exml.rssicon = "tsunami.gif";
> exml.parse("GDACS Floods");
> var exml1 = new GeoXml("exml1", mmap, eq25url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:icon});
> exml1.parse("Eathquakes > 2.5");
> var exml2 = new GeoXml("exml2", mmap, eq5url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:ricon});
> exml2.parse("Earth Quakes > 5");
> I did fix an error where RSS feeds where ignoring the allfoldersopen option
> and also made sure the baseicon size settings were being used
> Singeo wrote:
> > Hi Lance, thanks for the quick advice but I'm not sure how I should
> > implement it. At the moment I am submitting all 3 georss feeds to
> > exml.parse as an array. Are you saying I should send each one
> > separately?
> > Also I have experimented sending just one feed and then after it's
> > parsed using
> > geoxml.rssicon = "newiconurl";
> > to change the icons displayed on the map and it has now effect. I
> > think I've misunderstood how this works.
> >>> The map plots some locations and uses geoxml to display layers fed by
> >>> georss feeds. I've been able to change the icon displayed for the
> >>> feeds by editing geoxml.js but what I would really like is a different
> >>> icon being displayed on the map for each of the three feeds. Is this
> >>> possible.
It works for me.. but hard to tell what you were doing at the moment on your page the url is set up for EGeoXml and so has the proxy at the front of it (geoxml does that automagically and you dont want it doubling up) also Your kml has unneeded newline characters throughout...? which had some anomolous behavior in GeoXml ... removing them There is still an extra un-named place found in the each of the cyclones areas but I am not seeing the cause
(note there is currently no ScreenOverlay support in my GeoXml parser and since kml put into a Gmaps page often lacks the real estate of a Google Earth screen, if I put it in it will default to off.)
> As you can see from the map I can get round this by using egeoxml to > parse the kml (at http://www.gdacs.org/xml/gdacs.kml), but would > prefer to use geoxml as it gives me more control over the sidebar.
> I've tried using ggeoxml to parse the kml file but it produces some > strange results.
> Thanks.
> On Jul 5, 1:40 am, Lance Dyas <lance...@inetnebr.com> wrote:
>> I normally recommend using a single GeoXml but this is a case where in >> order >> to make parameter changes between feeds you will need to use a different >> geoxml instance >> in other words due to the asynchronous nature of downloads.. the method >> I suggested wont work >> unless you go to some effort of adding listeners for the parsed event >> and similar >> things which are way too much work.
>> Insted I recommend distinct instances of GeoXml to allow distinct settings.
>> var exml = new GeoXml("exml", mmap, gdacsfl, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false}); >> exml.rssicon = "tsunami.gif"; >> exml.parse("GDACS Floods");
>> var exml1 = new GeoXml("exml1", mmap, eq25url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:icon}); >> exml1.parse("Eathquakes > 2.5");
>> var exml2 = new GeoXml("exml2", mmap, eq5url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:ricon}); >> exml2.parse("Earth Quakes > 5");
>> I did fix an error where RSS feeds where ignoring the allfoldersopen option >> and also made sure the baseicon size settings were being used
>>> Hi Lance, thanks for the quick advice but I'm not sure how I should >>> implement it. At the moment I am submitting all 3 georss feeds to >>> exml.parse as an array. Are you saying I should send each one >>> separately?
>>> Also I have experimented sending just one feed and then after it's >>> parsed using
>>> geoxml.rssicon = "newiconurl";
>>> to change the icons displayed on the map and it has now effect. I >>> think I've misunderstood how this works.
>>> Regards
>>> Singeo
>>> On Jul 4, 12:36 pm, Lance Dyas <lance...@inetnebr.com> wrote:
>>>>> The map plots some locations and uses geoxml to display layers fed by >>>>> georss feeds. I've been able to change the icon displayed for the >>>>> feeds by editing geoxml.js but what I would really like is a different >>>>> icon being displayed on the map for each of the three feeds. Is this >>>>> possible.
Lance Dyas wrote: > It works for me.. > but hard to tell what you were doing at the moment on your page the url > is set up for EGeoXml and so > has the proxy at the front of it (geoxml does that automagically and you > dont want it doubling up) > also > Your kml has unneeded newline characters throughout...? > which had some anomolous behavior in GeoXml ... removing them > There is still an extra un-named place found in the each of the cyclones > areas but I am not seeing the cause
Aha there is some garbage in the kml. looks like this.
> (note there is currently no ScreenOverlay support in my GeoXml parser > and since kml put into a Gmaps page often lacks the real estate of a > Google Earth screen, if I put it in it will default to off.)
>> As you can see from the map I can get round this by using egeoxml to >> parse the kml (at http://www.gdacs.org/xml/gdacs.kml), but would >> prefer to use geoxml as it gives me more control over the sidebar.
>> I've tried using ggeoxml to parse the kml file but it produces some >> strange results.
>> Thanks.
>> On Jul 5, 1:40 am, Lance Dyas <lance...@inetnebr.com> wrote:
>>> I normally recommend using a single GeoXml but this is a case where in >>> order >>> to make parameter changes between feeds you will need to use a different >>> geoxml instance >>> in other words due to the asynchronous nature of downloads.. the method >>> I suggested wont work >>> unless you go to some effort of adding listeners for the parsed event >>> and similar >>> things which are way too much work.
>>> Insted I recommend distinct instances of GeoXml to allow distinct settings.
>>> var exml = new GeoXml("exml", mmap, gdacsfl, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false}); >>> exml.rssicon = "tsunami.gif"; >>> exml.parse("GDACS Floods");
>>> var exml1 = new GeoXml("exml1", mmap, eq25url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:icon}); >>> exml1.parse("Eathquakes > 2.5");
>>> var exml2 = new GeoXml("exml2", mmap, eq5url, {sidebarid:"the_side_bar", allfoldersopen:false, iconFromDescription:false, domouseover:false, baseicon:ricon}); >>> exml2.parse("Earth Quakes > 5");
>>> I did fix an error where RSS feeds where ignoring the allfoldersopen option >>> and also made sure the baseicon size settings were being used
>>>> Hi Lance, thanks for the quick advice but I'm not sure how I should >>>> implement it. At the moment I am submitting all 3 georss feeds to >>>> exml.parse as an array. Are you saying I should send each one >>>> separately?
>>>> Also I have experimented sending just one feed and then after it's >>>> parsed using
>>>> geoxml.rssicon = "newiconurl";
>>>> to change the icons displayed on the map and it has now effect. I >>>> think I've misunderstood how this works.
>>>> Regards
>>>> Singeo
>>>> On Jul 4, 12:36 pm, Lance Dyas <lance...@inetnebr.com> wrote:
>>>>>> The map plots some locations and uses geoxml to display layers fed by >>>>>> georss feeds. I've been able to change the icon displayed for the >>>>>> feeds by editing geoxml.js but what I would really like is a different >>>>>> icon being displayed on the map for each of the three feeds. Is this >>>>>> possible.