I've got the same (or similar) problem with my custom icons.  They
aren't exactly aligned properly and seem to be a few pixels off of
where the default marker is.  I'd like to be able to make a marker
with a point (similar to the default marker) and have the point be
aligned exactly on the lat/lng in question.

Can anyone help with this one?

Thanks!

On Mar 24, 9:45 am, "[email protected]" <[email protected]> wrote:
> Hi,
>
> Can anyone tell me what's wrong with my code?
>
> I want my custom icon to be alligned in the center horizontally but
> whatever I set it, it doesn't change.
>
> See my code below.
>
> import com.google.maps.LatLng;
> import com.google.maps.Map;
> import com.google.maps.MapEvent;
> import com.google.maps.MapType;
> import com.google.maps.overlays.Marker;
> import com.google.maps.overlays.MarkerOptions;
>
> var map:Map = new Map();
> map.key = "ABQIAAAADdIl-
> ShiSAAosP0wulsOzBRjYKdqRnBNayGfpvm29jnXequ1DRS3dfHSXeI4SQvhHYRonhSkchKr6g";
> map.setSize(new Point(stage.stageWidth, stage.stageHeight));
> map.addEventListener(MapEvent.MAP_READY, onMapReady);
> this.addChild(map);
> function onMapReady(event:Event):void {
>         map.setCenter(new LatLng(50.8774856, 4.4025487), 14,
> MapType.NORMAL_MAP_TYPE);
>         var request:URLRequest = new URLRequest("../img/cycling.png");
>     var imageLoader:Loader = new Loader();
>     imageLoader.load(request);
>         var G1:Marker = new Marker(
>                 new LatLng(50.8774856, 4.4025487),
>                 new MarkerOptions({
>                         iconAlignment: 1,
>                         icon: imageLoader,
>                         tooltip: "G1",
>                         radius: 8,
>                         hasShadow: true
>                 })  );
>         map.addOverlay(G1);
>
> }
>
> Thanx in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to