Select to view content in your preferred language

marine traffic kml

4077
12
12-19-2011 06:52 AM
philippschnetzer
Frequent Contributor
Any ideas why this won't work?  It does bring up some layer names and such in the TOC but no info will appear on the map...

<layer label="marine traffic" type="kml" visible="false"
                   url="http://www.marinetraffic.com/ais/ge_marinetraffic.kml"/>


I'm using FV 2.5...and my web server is setup for kml/kmz mime types...

Thanks!
Tags (2)
0 Kudos
12 Replies
FaizanTayyab
Deactivated User
clicking the link on the marineTraffic website gives 404 - File or directory not found message.
0 Kudos
philippschnetzer
Frequent Contributor
Hmmm....the link was working for me when I was testing it, must just be down temporarily...

here's the site where it 'can' be accessed:

http://www.marinetraffic.com/ais/ge.aspx
0 Kudos
JeffAzevedo
Deactivated User
This might have something to do with it not working.

{"error":{"code":400,"message":"The KML file is too large. Its 24679290 bytes exceed the allowable maximum of 10485760 bytes.","details":[null]}}
0 Kudos
philippschnetzer
Frequent Contributor
Ah I see...that could explain it!  Where did you find that error message...firebug??  Is this something that could be changed in the code to allow for a larger size kml?
0 Kudos
JeffAzevedo
Deactivated User
Fiddler 2

I looked for a way of increasing the limit but couldn't find anything. It must be part of the compiled source.

I'm trying to limit the load using <Region>, but that hasn't worked yet. Still tinkering...
0 Kudos
philippschnetzer
Frequent Contributor
Thanks! 

Do you have any idea what this means? :


serviceurl�??Optional, URL to your own utility service for converting KML files to features. [Added in version 2.5]


I found the above quote here: http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Layer_tag/01m30000000p000000/

...does this mean you can somehow link to a kml in arcmap and publish it using arcgis server and use that service instead?
0 Kudos
JeffAzevedo
Deactivated User
You can do KML to Layer for instance, but I think it's a snapshot. I believe it doesn't honor the Dynamic nature of the KML Network. You can also use the AGS Manager to publish a KMZ Network link. (which is what I did)

I also loaded the KML in Arcmap (KML to Layer), and it is very slow(large). Someone smarter than me may have a better idea.

btw, I did get <Region> to work in the KML file, but unfortunately, once you hit the set spatial box, it loads the entire feed, not the singular Region I hoped for. So if the size is indeed the problem, this will not fix it. Works great in Google Earth 😞
0 Kudos
philippschnetzer
Frequent Contributor
Thanks for your continued effort!  Maybe I will give the kml to layer a try - but as you say if it's not dynamic it's pretty much worthless for this very dynamic dataset!  Thanks again, Happy Holidays!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Thanks! 

Do you have any idea what this means? :


serviceurl�??Optional, URL to your own utility service for converting KML files to features. [Added in version 2.5]


I found the above quote here: http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Layer_tag/01m30000000p000000/

...does this mean you can somehow link to a kml in arcmap and publish it using arcgis server and use that service instead?


Phillip,

  I was hoping one of the API team member would chime in on this... But as far as the bits and pieces that I know the service url is for when esri distributes the KML utitlity that converts the kml to a featurelayer that previously was only available and hosted by esri. This is just hear say but I believe that the method to receive the KML utlity service was going to require you to contact esri customer services and request it. You would then install it on your web server and point that attribute to your server and then the requirement for have public KMLs goes away. Now once again this is what I believe to be true from my bits and pieces of knowledge.
0 Kudos