This content has been marked as final. Show 4 replies
You might be able to make the windowOpen a property of Marker itself (encapsulation), and let the marker internally handle what you describe. Maybe setting windowOpen to false for all markers would be a class method of Marker.
I thought I should extend the class named Marker with a class named MapMarker and have imported all of the classes used in my main file into the sub-class, but when I do so I get the following message:
No default constructor found in base class com.google.maps.overlays:Marker. GT6/src/com/google/maps/examples MapMarker.as line 18 1223065642171 5791
Is there any reason why I should not be able to create a sub-class of Marker?
Suppose you stored a reference to each marker in an array or hashmap(object) when you create it.
var marker:Marker = ...
_oMarkers["Marker1"] = marker;
Then you could for loop over the array and call whatever method you want on the MapMarker reference.
I have an array, markerArray, that contains references to all of the instances of marker. Are you saying I can do something like this? It doesn't seem right to me.