Hey!
I will love to know how can I chnage the control look from a big
normal one to a small one please?

In JS I use this code:
---------------------------------------------------
      mapTypeControl: true,
      mapTypeControlOptions: {style:
google.maps.MapTypeControlStyle.DROPDOWN_MENU},
      navigationControl: true,
      navigationControlOptions: {style:
google.maps.NavigationControlStyle.SMALL},
      mapTypeId: google.maps.MapTypeId.ROADMAP
---------------------------------------------------


How can I do the same in flash please?

This is my current code:
---------------------------------------------------
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;
import com.google.maps.controls.MapTypeControl;
import com.google.maps.controls.ZoomControl;
import com.google.maps.controls.PositionControl;

var map:Map = new Map();
map.key = "MY-API-KEY";
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(52.091959,5.115442), 16,
MapType.NORMAL_MAP_TYPE);
  map.addControl(new ZoomControl());
  map.addControl(new PositionControl());
  map.addControl(new MapTypeControl());

  var markerA:Marker = new Marker(
      new LatLng(52.091959,5.115442)
          );
  map.addOverlay(markerA);
}
---------------------------------------------------


BTW: if there is also a way to make the LatLng of the center and the
marker as a flashvars,
so I will be able to change it in the embed code instead of the need
to change it all the time into the flash code,
so I will love to know how to do it too please!

I'm using the flash map instead of the JS because I need it for my
Myspace profile page that not allow any JS there.

Thanks and have a nice week, Gil.

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