Hi Shaun,

thanks, that was crucial piece of info. I couldn't find the docs you are 
mentioning, but I got it to work.

Now, here are my new issues:

I want to use a My Map on one page in a Flash website. So far I have managed 
to include a sample map and place it where I want it on the page.
Two problems:
1 - I have read all I could find about placing a My Map, but I'm far from 
being an AS3 expert. I was hoping I can somehow include the url of the My 
Map with a URLRequest in the code, but not sure how to. I'm obviously open 
to other solutions.

My current AS 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.controls.
MapTypeControl;
import com.google.maps.controls.ZoomControl;
import com.google.maps.controls.PositionControl;
//import flash.net.URLRequest;

var map:Map = new Map();
map.key = 
"ABQIAAAAMIgigqxLNoB8VIs410tzUBQ7OLzG8xncBt9wFTSu5_Tib0bBaxSX2h6ZxZYEAa2BLozx9umYzsrw9A";
map.sensor = "false";
map.x = 260;
map.y = 10;
map.setSize(new Point(stage.stageWidth = 690, stage.stageHeight = 337));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);

import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.controls.MapTypeControl;
import com.google.maps.controls.ZoomControl;
import com.google.maps.controls.PositionControl;
import flash.net.URLRequest;

var map:Map = new Map();
map.key = 
"ABQIAAAAMIgigqxLNoB8VIs410tzUBQ7OLzG8xncBt9wFTSu5_Tib0bBaxSX2h6ZxZYEAa2BLozx9umYzsrw9A";
map.sensor = "false";
map.x = 260;
map.y = 10;
map.setSize(new Point(stage.stageWidth = 690, stage.stageHeight = 337));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);

// var request:URLRequest = new URLRequest( "
http://maps.google.ca/maps/ms?hl=en&ie=UTF8&view=map&ctz=240&msa=0&msid=214720834393249962493.0004a40d182868a25e042&z=14
");

function onMapReady(event:Event):void {
  map.setCenter(new LatLng(40.736072,-73.992062), 14, 
MapType.NORMAL_MAP_TYPE);
  map.addControl(new ZoomControl());
  map.addControl(new PositionControl());
}

function onMapReady(event:Event):void {
  map.setCenter(new LatLng(40.736072,-73.992062), 14, 
MapType.NORMAL_MAP_TYPE);
  map.addControl(new ZoomControl());
  map.addControl(new PositionControl());
}

Is there a way to insert the url into map.setCenter or some other call?

2 - the sample map loads nicely, but when I browse to other pages, it 
doesn't unload like a normal page would. What code do I need to make it go 
away?
Here's the site: 
http://www.industrialmuffins.com

click on the door to enter site, then click on "Pick-up" to view map. Click 
on "Factory", "Office" or "Home" to see map not unloading.

Much appreciated,

KoffeeKat

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api-for-flash/-/LWxUa2FTeDdQZklK.
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