I think you can use markOptn.hasShadow=false; to disable the shadow. and you can use: markOptn.iconOffset = new flash.geom.Point::Point(0, 0); to change the offset.
On Apr 13, 5:06 pm, Steve T <[email protected]> wrote: > I have seen a number of threads about this issue, from last year but > none that seemed to resolve it. > I have jsut started using the Google Maps API for Flash and I am now > experiencing this problem: > > I create a custom Marker inside my onMapReady() method using the > following code: > > var loader:Loader = new Loader(); > var urlRequest:URLRequest = new URLRequest("images/rt7marker.png"); > loader.load(urlRequest); > var markerOptions:MarkerOptions = new MarkerOptions({}); > markerOptions.icon = loader; > markerOptions.iconAlignment = MarkerOptions.ALIGN_HORIZONTAL_CENTER | > MarkerOptions.ALIGN_BOTTOM; > marker = new Marker(latLng, markerOptions); > map.addOverlay(marker); > > latLng is a valid LatLng object and > map is a valid Map. > > The problem is that the custom marker appears on the map, but the > iconAlignment does not take effect until the map is moved or zoomed, > at which point it snaps to its correct position. > > I tried implementing map.addOverlay(marker) in a delayed function > call and it appears to work (*differently) if I use about a 2 second > delay. > > *The reason for my "differently" qualifier is that when the custom > icon appears in the correct position after using the delay it > magically has a shadow applied. The shadow appears to be generated by > the framework from my custom graphic shape; the shadow is the correct > shape for the icon, skewed to 45 degrees right. > If I don't use the delay the icon only aligns correctly after a moving/ > zooming he map, and has no shadow. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
