Marker Masking?
I'm using the AS3/Flex2 codebase and am having an issue with masking of the markers. Using putMarker() everything seems to work correctly, but as I drag the map around, the markers show outside the bounding box. They’er still in the correct place, but the map is properly hidden but the markers aren’t. I haven't seen this posted as an issue for anyone else, so I can't figure out what I'm doing wrong. Here's the code I'm using:
[Embed(source="../assets/interface/mapping/pointer.png")]
private var MarkerImage: Class;
...
var markerImage:Bitmap = new MarkerImage() as Bitmap;
var imgObj:MovieClip = new MovieClip()
imgObj.addChild(markerImage)
imgObj.name = thisLoc[2]
contactMap.map.putMarker(thisLoc[0], thisLocation, imgObj)
Any help/advice would be greatly appreciated!
[Embed(source="../assets/interface/mapping/pointer.png")]
private var MarkerImage: Class;
...
var markerImage:Bitmap = new MarkerImage() as Bitmap;
var imgObj:MovieClip = new MovieClip()
imgObj.addChild(markerImage)
imgObj.name = thisLoc[2]
contactMap.map.putMarker(thisLoc[0], thisLocation, imgObj)
Any help/advice would be greatly appreciated!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?This *should* be fixed in the latest (1.0!) release. Map now has a scrollRect set that will mask markers added with putMarker.
If you're working from subversion you should update the trunk or grab the version 1.0 tagged release.
You can also download the full version 1.0 (with as2, as3 and python code) from modestmaps.com -
Inappropriate?I solved this myself by simply masking the layer I put the markers on. Add a sprite with the same size as the parentclip and set it as a mask.
Loading Profile...



EMPLOYEE
