In comparing the World Map Kit demos that come with the decimal degree data vs. spherical mercator, I was wondering why in the decimal degree demo, the sample code uses the MultipleShapeFileFeatureLayer class. However, in the spherical mercator data demo, the code manually adds separate layers for each state:
I reviewed the code and think what you said should be the code of function LoadStateSymbolLayers.
I compare both code for Spherical mercator and Decimal degree, it looks totally the same, and I haven’t found we use the MultipleShapeFileFeatureLayer class in both of the 2 solutions.
Our DD dataset was from 2009, and we picked up the SM data either late 2010 or early 2011.
The reason I ask is I cannot get the MultipleShapeFileLayer to work with the SM data. It fails to render the data. Pointing the same code at our DD data renders successfully. I was wondering if there was something fundamentally different with the SM data that prevents it from working.
Do you know why the samples use loops with multiple layers created instead of MultipleShapeFileFeatureLayers?
Thanks Don. I was using the special wildcard naming convention, but it seems that it isn’t looking into the specific state folders. In your example, ctycuShapeFilePattern would be “us\ctycu??ctycu.shp”. But the individual state ctycu files in the World Map Data Kit live in state folders, such as us\ctycu\WA\wactycu.shp. It seems that MultipleShapeFileFeatureLayer isn’t looking in the subfolders. It works if all the ??ctycu.shp files are in the same folder.
Sorry I am not very sure what happened before for the folder format.
But I think that’s should because our WorldMapKit get version upgrade and some optimize.
If it’s hard to you handle your old data, I think you can contact your account rep, he could help you with the detail about upgrade your data. Orelse you need try to find the old render logic of WorldMapKit for your old data.