Garthanos / geoxml

Automatically exported from code.google.com/p/geoxml
1 stars 0 forks source link

Parsing KML feeds with different options? #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is is possible to include 2 (or more) different KML feeds, each with 
different options? For example, would it be possible for one feed to show up 
in the sidebar with all folders open, another with all folders closed?

I cannot figure out a way to parse the feeds separately, giving each its own 
set of options.

Thanks.

Original issue reported on code.google.com by scottbje...@gmail.com on 15 Mar 2010 at 7:48

GoogleCodeExporter commented 9 years ago
You can make two separate GeoXml instances two vars.

Original comment by lanceala...@gmail.com on 15 Mar 2010 at 8:14

GoogleCodeExporter commented 9 years ago
Then I would make 2 separate parsing commands as well?

e.g.:

 exml.parse("My KML");
 exml2.parse("My KML"); 

Original comment by scottbje...@gmail.com on 15 Mar 2010 at 8:25

GoogleCodeExporter commented 9 years ago
yes .. if you want it do its stuff... you have to tell it to.
you could also reuse the same sidebar or not on the second

Original comment by lanceala...@gmail.com on 15 Mar 2010 at 8:49

GoogleCodeExporter commented 9 years ago
Makes sense, I think I understand what you mean. Is it also possible to create 
a 
function to toggle these KML feeds on an off, similar to this:

    function toggleMyKml() {
  if (toggleState == 1) {
    mmap.removeOverlay(kmloverlay);
    toggleState = 0;
  } else {
    mmap.addOverlay(kmloverlay);
    toggleState = 1;
  }
}

Original comment by scottbje...@gmail.com on 15 Mar 2010 at 8:51

GoogleCodeExporter commented 9 years ago
hide an show if you just want them to display and not display.

http://code.google.com/p/geoxml/wiki/GeoXmlMethods

if you want them to refresh information that takes 
clear and parse

Original comment by lanceala...@gmail.com on 15 Mar 2010 at 10:40

GoogleCodeExporter commented 9 years ago
Thanks, I got that part working.

I have question about the "markerfollowlinks" option. If I set it to 
markerfollowlinks:true, I can no longer click on the placemarks...nothing 
happens if 
I try.

What I am trying to do is set the links in my infowindow up to open in the same 
browser window, NOT the same iframe window, which is the way I have my map put 
into 
my site now. Any suggestions? Can I do this? Are there more options than "true" 
or 
"false" for markerfollowlinks?

Original comment by scottbje...@gmail.com on 16 Mar 2010 at 1:56

GoogleCodeExporter commented 9 years ago
if you have a link in the description clicking on the marker is then a go to 
the 
location... if there isnt any.. it doesnt go... could be an error show me?

target="_top" or something like that in your html

Original comment by lanceala...@gmail.com on 16 Mar 2010 at 4:17

GoogleCodeExporter commented 9 years ago
Dear Lance,

Could you offer any additional information regarding the use of the 
"sidebarsnippet" 
option? I have tried including "sidebarsnippet:true" into my code and got no 
result 
whatsoever. I have a feeling there's something else I need to do but I don't 
know 
what. You mention controlling the sidebarsnippet with css...does that mean it 
must go 
into a div tag somewhere?

Thanks in advance.

Original comment by scottbje...@gmail.com on 18 Mar 2010 at 4:54

GoogleCodeExporter commented 9 years ago
You might want to include snippets in your kml... 
there is actually a Snippet tag...

And emulate this page.... 
http://www.dyasdesigns.com/geoxml/customsidebar.htm

Original comment by lanceala...@gmail.com on 19 Mar 2010 at 12:28