Hi,
There are many types of layers listed in the wiki and for some types of layers, I wanted to know when it is appropriate to use them
My questions relate to the grouplayer, multipleFeatureLayer, MultipleShapeFileFeatureLayer.
Currently, I have severals layers that I added directly in an overlay.
is it appropriate to put them in a grouplayer ?
When is it appropriate to use Multishapelayer, ?
Thanks for your help.
Regards.
Steph.
GroupLayer, multiplefeaturelayer,
Hi Steph,
Please see my explanations below:
- GroupLayer is simple a layer collection, it only supports to draw by loop each layers and I remember we rarely use this layer.
- MultiFeatureLayer is more functionality comparing with GourpLayer. As all the layer type has to inherit from FeatureLayer, we can execute most of functions from FeatureLayer to a single layer. For example, executing GetAllFeatures method of MultiFeatureLayer, you can get all features from all Features layers in the MultiFeatureLayer. So if you want to many FeatureLayer have same style, and don’t want to operate them one by one, then this layer is the expected one.
- MultipleShapeFileFeatureLayer is like a subset of MultiFeatureLayer but inherit more functions like build all the shape files index file to a single index file. If all your files are shape files, I think using this one is better.
Actually, I still recommend you to use Overlay rather than the above ones, as Overlay is more powerful like performance improvement, multi tile, Tile cache etc…
Please let me know if any questions.
Thanks,
Troy
Hi troy,
Thanks.
Regards.
Steph.
Hi Steph,
You are welcome!
Any other queries, don’t hesitate to let us know.
Thanks,
Troy