I'm new to this as well
but

onMapReady -- is not an answer to "is the Map Busy"  -- so it's only needed
once -- so once the map initializes -- it does whatever else you want done
--

so if you want the map to first load LatLng(47.349497,5.0419416), with zoom
16 and then move to , LatLng(37.4419, -122.1419), 13 -- you can just stack
the setcenter statements --

however if you don't want anything to do with this initial coordinate --
just drop the entire first onmapready block -

-
mat
On Mon, Jun 1, 2009 at 3:33 PM, Matthew <[email protected]> wrote:

>
> So i've tried to put some extra code to make an icon into my AS but i
> haven't got a clue where it should go ?
> I would like to keep the existing coordonates to use as the icon
> marker. eventually with this information, i could possible add other
> private functions, like tags and zooms and whatever.
>
> this is my original actionscript :
>
>
> import com.google.maps.LatLng;
> import com.google.maps.Map;
> import com.google.maps.MapEvent;
> import com.google.maps.MapType;
>
> var map:Map = new Map();
> map.key =
>
> "ABQIAAAA4VURmJWVCIxcSShGXyhXHBTKF6W5Q7EGt8fhGS4MAtlq9morNhSkTxbd6yARnCtDDVFvabKU4D1rdA";
> 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(47.349497,5.0419416), 16,
> MapType.NORMAL_MAP_TYPE);
>  }
>
>
> and this is what i would like to integrate into that :
>
>
> private function onMapReady(event:MapEvent):void {
>  map.setCenter(new LatLng(37.4419, -122.1419), 13,
> MapType.NORMAL_MAP_TYPE);
>
>  var markerA:Marker = new Marker(
>      new LatLng(48.858842, 2.346997),
>      new MarkerOptions({
>                  strokeStyle: new StrokeStyle({color: 0x987654}),
>                  fillStyle: new FillStyle({color: 0x223344, alpha:
> 0.8}),
>                  radius: 12,
>                  hasShadow: true
>      })
>  );
>  map.addOverlay(markerA);
> }
>
>
> please help, it would be nice to understand the first step of API.
>
>
>
>
> On May 25, 11:26 pm, Matthew <[email protected]> wrote:
> > Hi Pamela ... very true ! haha - by the way how much would that cost ?
> >
> > I see the examples but i don't know where to put the code in my action
> > script.
> > take care
> >
> > On May 25, 5:57 pm, pamela fox <[email protected]> wrote:
> >
> > > Hi Matthew-
> >
> > > People don't generally write your code for you unless you pay them. :)
> >
> > > I'd suggest reading through the markers documentation, there are many
> > > examples to learn from:
> http://code.google.com/apis/maps/documentation/flash/overlays.html#Ma...
> >
> > > - pamela
> >
> > > On Sun, May 24, 2009 at 3:21 PM, Matthew <[email protected]> wrote:
> >
> > > > i have the simple starting point for a map :
> > > > all i wanna do is put on a "zoom in/out" and a standard "marker" with
> > > > some personalised text
> >
> > > > can anyone do that for me ?
> >
> > > > import com.google.maps.LatLng;
> > > > import com.google.maps.Map;
> > > > import com.google.maps.MapEvent;
> > > > import com.google.maps.MapType;
> >
> > > > var map:Map = new Map();
> > > > map.key =
> > > >
> "ABQIAAAA4VURmJWVCIxcSShGXyhXHBTKF6W5Q7EGt8fhGS4MAtlq9morNhSkTxbd6yARnCtDDV
> FvabKU4D1rdA";
> > > > 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(47.349497,5.0419416), 16,
> > > > MapType.NORMAL_MAP_TYPE);
> > > >  }
> >
>

--~--~---------~--~----~------------~-------~--~----~
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