Constant server busy error when trying to load vecollection from local.live via scripting

Greetings,

Apologies up front if I missed something obvious in the VE3 documentation, but I'm trying to load a vecollection from local.live via the collection's provided permalink URL in my clientside script, but I always get the server busy error in my map control as a response. Is the server in fact generally maxed out, or am I using the wrong URL for the job etc..

The exact same URL does work to open the local.live site and successfully show the collection in that map control when I pop open a window with it from the same script function, so I don't think it's a typo or such.

And, if the remote load is not do-able, is it possible to create a vecollection file on my server that I can then load locally (I know about and am leveraging georss feeds now, but I was wondering if a locally situated vecollection might not be easier to implement via the VE api)

Thanks for help on this one!!




Answer this question

Constant server busy error when trying to load vecollection from local.live via scripting

  • eHaze

    Thanks both of you!  Caleb nailed it and it's wortking great now!

  • darynk21

    If you are using the js files from local.live and an exception gets thrown, it is caught and shows up as a 'Server Busy' message. Look into the ve.js file.
  • markus79

    It sounds like the problem is that you are using the permalink (the complete URL). You do not need to do this--just pass in the collection ID.

    For example:

    function AddMyLayer()
    {
    var veLayerSpec = new VELayerSpecification();
    veLayerSpec.Type = VELayerType.VECollection;
    veLayerSpec.ID = 1;
    veLayerSpec.LayerSource = "1234567890!0123456"; //this is the ID of the collection. Note that it is NOT the URL
    veLayerSpec.Method = 'get';
    veLayerSpec.FnCallback = onFeedLoad;
    map.AddLayer(veLayerSpec);

    layerid++;
    }


  • Tradingbasics

    I am having this problem currently, both when working with the map control script and working on local.live itself creating collections.

    Is this a serverside problem because I am using only the collectionid when trying to load a collection layer.


  • Constant server busy error when trying to load vecollection from local.live via scripting