Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Creating nested objects
08-30-2008, 03:46 PM #1
- Join Date
- Aug 2008
- Thanked 0 Times in 0 Posts
Creating nested objects
I am trying to use prototype to declare and use an object and having difficulties in coding for nested objects.
Basically my object called layercontrol will contain and array of layergroup which in turn contains map layer objects. The layergroup and layer object should be just like any object of properties and methods.
I should be able to access each layergroup in my object and within each layergroup, I should be able acess each layer object.
the concept is simple, but am jut struggling !!
Any help from you guys is most welcome.
look forward to hearing from you.
Thank you very much in advance,