Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/02/2009, 09:15
bribon
 
Fecha de Ingreso: febrero-2009
Mensajes: 2
Antigüedad: 15 años, 2 meses
Puntos: 0
Problemas con google maps

Hola,
Estoy realizando una aplicacion con flash cs3 y he añadido el API de google maps. Google maps funciona bien cuando ejecuto la aplicacion desde mi ordenador, es decir, localmente. Sin embargo, cuando la subo al sevidor no funciona. He estado buscando la solucion pero no la encuentro. Seria de gran ayuda si alguien me puede resolver la duda. Aqui dejo el codigo:

import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.LatLng;
import com.google.maps.controls.ZoomControl;
import com.google.maps.MapMouseEvent;
import com.google.maps.overlays.Marker;
import com.google.maps.InfoWindowOptions;
import com.google.maps.overlays.MarkerOptions;


var map:Map = new Map();

function startMap():void
{
map.x = 0;
map.y = 0;
map.key = "ABQIAAAAGdMm4-sqkZBfzZBdQtPJCRRvUpVxOFLyB3vKQJG5z-kzO_1GzBTCnVSz00QLhngwV6RoPuSdEiUZ6Q";
map.setSize(new Point(621.4, 392));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);
}

function onMapReady(event:Event):void
{
var latLng = new LatLng(42.602203, -2.841386);
map.setCenter(latLng, 14, MapType.NORMAL_MAP_TYPE);
map.continuousZoomEnabled();
map.enableScrollWheelZoom();
map.addControl(new ZoomControl());
var marker:Marker = new Marker(latLng, new MarkerOptions({label: "T"}));
map.addOverlay(marker);

}


startMap();