Hi JP!
I like your solution because it would still allow an application to use its own brushes/pens, or allows the application to directly modify GMap's clones. So the degree of lightweightedness, while probably only important to mobile, is still entirely up to the implementing application.
Your solution works for me so long as we let Garbage Collection take care of the clean-up (i.e. GMap does not ever explicitly dispose the pens/brushes).
Perhaps radioman will chime in here...
I like your solution because it would still allow an application to use its own brushes/pens, or allows the application to directly modify GMap's clones. So the degree of lightweightedness, while probably only important to mobile, is still entirely up to the implementing application.
Your solution works for me so long as we let Garbage Collection take care of the clean-up (i.e. GMap does not ever explicitly dispose the pens/brushes).
Perhaps radioman will chime in here...