for those interested the page i am working on is here....
http://www.thanet-webdesign.co.uk/shad/contact.htm
On Oct 10, 10:02 am, Thanweb <[EMAIL PROTECTED]> wrote:
> I'mnot quite sure how, but i got it working from playing around with
> coding from the flex pages?
>
> hereis my code....
>
> // Import Maps
> import com.google.maps.Map;
> import com.google.maps.MapEvent;
> import com.google.maps.LatLng;
> import com.google.maps.MapType;
>
> //Import Controls
> import com.google.maps.controls.MapTypeControl;
> import com.google.maps.controls.ZoomControl;
> import com.google.maps.controls.PositionControl;
>
> //Import Overlays - Markers etc
> import com.google.maps.overlays.Marker;
> import com.google.maps.overlays.MarkerOptions;
> import com.google.maps.InfoWindowOptions;
>
> var map:Map = new Map();
> map.key = "REMOVED REMOVED REMOVED";
> var myMapSize:Point = new Point(400,400);
> map.setSize(myMapSize);
> map.addEventListener(MapEvent.MAP_READY, onMapReady);
> this.addChild(map);
> map.x = 230;
> map.y = 50;
>
> var Pic;
>
> function onMapReady(event:MapEvent):void {
> map.setCenter(new LatLng(51.37270,1.12850), 14,
> MapType.NORMAL_MAP_TYPE);
> map.addControl(new PositionControl());
> map.addControl(new ZoomControl());
> map.addControl(new MapTypeControl());
>
> var markerOptions:MarkerOptions = new MarkerOptions();
> markerOptions.icon = Pic;
> markerOptions.tooltip = "We are here";
> markerOptions.iconAlignment =
> MarkerOptions.ALIGN_HORIZONTAL_CENTER;
> markerOptions.iconOffset = new Point(2, 2);
>
> var marker:Marker = new Marker(map.getCenter(), markerOptions);
> map.addOverlay(marker);
>
> }
>
> On Oct 10, 9:24 am, Thanweb <[EMAIL PROTECTED]> wrote:
>
>
>
> > I was given a link fro this forum to view source code for markers but
> > it turns out this was code for end users to add their own markers.
>
> > i want a static marker so when the map loads it has a marker on the a
> > specific road already there.
>
> > i am using the map on a website to say 'we are here'!
>
> > Many thanks in advance- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---