Select to view content in your preferred language

Overlay KML Network link of a Fusion Table

950
5
Jump to solution
02-02-2012 09:47 AM
DaleSimper
Occasional Contributor
I am wondering if it is possible to overlay a KML network link of a fusion table using the javascript api.  I got the overlay working using the flex api by just using https://www.google.com/fusiontables/exporttable?query=select+col1+from+2817988+&o=kmllink&g=col1 for the KML layer. Any help and examples would be much appreciated, thanks.
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
It works if you replace the plus signs in the URL to the KML file with spaces:  http://jsfiddle.net/uyAuW/

View solution in original post

0 Kudos
5 Replies
derekswingley1
Deactivated User
If a URL points to a KML file, you should be able to pass it to the KMLLayer class to create a layer from the KML. See the simple KML Layer sample for an example.
0 Kudos
DaleSimper
Occasional Contributor
Yeah, that's what I was using, but it doesn't seem to work. I can get it to work using the KMLLayer class using the Flex API and according to this thread 
http://forums.arcgis.com/threads/40348-Display-layer-based-on-Google-Fusion-Tables it works with silverlight. So I was just wondering if anyone has had success using the API for Javascript.
0 Kudos
derekswingley1
Deactivated User
It works if you replace the plus signs in the URL to the KML file with spaces:  http://jsfiddle.net/uyAuW/
0 Kudos
DaleSimper
Occasional Contributor
Thanks Derek, I figured it had to be something simple.
0 Kudos
JohnGravois
Deactivated User
just an fyi, i tested this in 3.4 and found that a '+' is now acceptable, while a space is not...

http://jsfiddle.net/C5mdZ/
0 Kudos