nullValue


I have a very basic embedded map that displayed an overlayed VE collection. Sometime last week it stopped working though I made no changes to my source page. Now, when a user loads the page, the base map comes up properly but instead of loading the collection, I get a message overlayed "Error: Unable to load source file". Here's a snippet of the source:

<p><!-- #include file ="common/Header.htm" -->Our dive sites...</p>
<div id='myMap' style="position:relative; width:600px; height:400px;"></div>
<div id="txtSource" type="text" value="860EE197209E1905!162" name="txtSource">
<div id="loadCollection" type="button" value="Map our dives" onclick="AddMyLayer(VEDataType.VECollection);">
<p>

I noticed that even the VE SDK page that I used as a reference when creating mine has the same basic problem. My collection still exists (I can load it on local.live.com) and I've tried plugging in other collection IDs into my page, all with the same result. I've also tried setting my script src to use the new v6 control.

Any thoughts on how to get my collection to show up again




Re: Collection no longer working?

bayern2205


Hello,

I've exactly the same problem!!!






Re: Collection no longer working?

Derrick (MSFT)

There's currently a problem loading collections. We're looking at this issue now.






Re: Collection no longer working?

Richard_Brundritt

VE 6 does not currently support collections. This is a known issue that is planned to be fixed in an update in the near future.





Re: Collection no longer working?

IanBlackburn

As a workaround you can export your collections as a GeoRSS file, add them to your web site, then load them directly.

See this thread for details on getting the GeoRss file from the collection: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2272069&SiteID=1

Then use the VEDataType.GeoRss for the VEShapeSourceSpecification to open the file

Code Block

var l = new VEShapeLayer();
var veLayerSpec = new VEShapeSourceSpecification(VEDataType.GeoRSS, "MyGeoRssFile.xml", l);
map.ImportShapeLayerData(veLayerSpec, onFeedLoad, true);

Cheers




Re: Collection no longer working?

Richard_Brundritt

Collections are now working for V3-V5, V6 does not support them yet.




Re: Collection no longer working?

Keith K (MSFT)

Here is another unofficial workaround for loading collections in v6 ...

Execute this code block in JavaScript after including the v6 script

Code Block

VE_CollectionsManagerConstants.Market="";

Msn.VE.API.Globals.language="";





Re: Collection no longer working?

SoulSolutions

Very good. Keith notes this is a workaround until the problem is fixed at the other similar thread here:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2272069&SiteID=1

Side note: this now mean we have 3D models loading from collections:

http://www.soulsolutions.com.au/Blog/tabid/73/EntryID/273/Default.aspx

John.






Re: Collection no longer working?

Keith K (MSFT)

We just updated v6 and you should no longer need to add those extra 2 lines of code for collections to work. Collection import should be working now.

Thanks,

Keith