Google Groups Home
Help | Sign in
Using different icons for geoxml GeoRSS feeds
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Singeo  
View profile
 More options Jul 3, 11:49 pm
From: Singeo <singeo...@gmail.com>
Date: Thu, 3 Jul 2008 20:49:12 -0700 (PDT)
Local: Thurs, Jul 3 2008 11:49 pm
Subject: Using different icons for geoxml GeoRSS feeds
Hi, I hope someone can help me with this.

I have a map at http://singeo.dyndns.org/risk/risk1.html

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.

Many thanks.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile
 More options Jul 4, 12:36 am
From: Lance Dyas <lance...@inetnebr.com>
Date: Thu, 03 Jul 2008 23:36:20 -0500
Local: Fri, Jul 4 2008 12:36 am
Subject: Re: Using different icons for geoxml GeoRSS feeds

Singeo wrote:
> Hi, I hope someone can help me with this.

> I have a map at http://singeo.dyndns.org/risk/risk1.html

> 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.

> Many thanks.

Using GeoXml
http://www.dyasdesigns.com/geoxml

after the first georss has parsed

geoxml.rssicon = "newiconurl";
geoxml.push("nextrssurl");
geoxml.parse();

rinse wash and repeat


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Singeo  
View profile
 More options Jul 4, 2:16 am
From: Singeo <singeo...@gmail.com>
Date: Thu, 3 Jul 2008 23:16:49 -0700 (PDT)
Local: Fri, Jul 4 2008 2:16 am
Subject: Re: Using different icons for geoxml GeoRSS feeds
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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile
 More options Jul 4, 1:40 pm
From: Lance Dyas <lance...@inetnebr.com>
Date: Fri, 04 Jul 2008 12:40:10 -0500
Local: Fri, Jul 4 2008 1:40 pm
Subject: Re: Using different icons for geoxml GeoRSS feeds
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

You will probably want to download an update, hope it suits your needs...
http://www.dyasdesigns.com/geoxml/

and see this for a specific usage of this method.
http://www.dyasdesigns.com/geoxml/riskmap


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
strangebuttrue  
View profile
 More options Jul 5, 10:46 pm
From: strangebuttrue <jonepeter...@gmail.com>
Date: Sat, 5 Jul 2008 19:46:28 -0700 (PDT)
Local: Sat, Jul 5 2008 10:46 pm
Subject: Re: Using different icons for geoxml GeoRSS feeds
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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Garthan  
View profile
 More options Jul 6, 12:33 am
From: Garthan <lance...@inetnebr.com>
Date: Sat, 5 Jul 2008 21:33:27 -0700 (PDT)
Local: Sun, Jul 6 2008 12:33 am
Subject: Re: Using different icons for geoxml GeoRSS feeds
Let me know what use you put it to, sounds interesting I might link
to your pages once you have it going.

On Jul 5, 9:46 pm, strangebuttrue <jonepeter...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Singeo  
View profile
 More options Jul 6, 2:39 am
From: Singeo <singeo...@gmail.com>
Date: Sat, 5 Jul 2008 23:39:50 -0700 (PDT)
Local: Sun, Jul 6 2008 2:39 am
Subject: Re: Using different icons for geoxml GeoRSS feeds
Lance, I've updated http://singeo.dyndns.org/risk/risk1.html based on
your suggestions and now have various feeds displaying. However one of
the feeds from GDACS which comes from http://www.gdacs.org/XML/RSS.xml
is not being parsed by geoxml, any idea why?

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:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile
 More options Jul 6, 8:24 am
From: Lance Dyas <lance...@inetnebr.com>
Date: Sun, 06 Jul 2008 07:24:52 -0500
Local: Sun, Jul 6 2008 8:24 am
Subject: Re: Using different icons for geoxml GeoRSS feeds
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.)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lance Dyas  
View profile
 More options Jul 6, 8:35 am
From: Lance Dyas <lance...@inetnebr.com>
Date: Sun, 06 Jul 2008 07:35:57 -0500
Local: Sun, Jul 6 2008 8:35 am
Subject: Re: Using different icons for geoxml GeoRSS feeds
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.

<Placemark>
<Icon></Icon>
<Style><LineStyle>
<width>3</width>
<color></color>
</LineStyle></Style>
<LineString>
<coordinates>
,,0.0
</coordinates>
</LineString>
</Placemark>


    Reply    Reply to author    Forward