i can't figure out whats going wrong i copied the sample code from google, changed it a little bit. you should see a map of the Netherlands, and a route from 52.78743 , 6.107261 to 51.735602 , 5.517159.
on my computer it works on ie8, ff but not on chrome .. on the clients computer its not working. he does see the map not the route... anyone has a clue thanks mels le noble site : http://historone.nl/test_GoogleMaps.html code: import com.google.maps.LatLng; import com.google.maps.MapEvent; import com.google.maps.Map; import com.google.maps.services.*; import com.google.maps.LatLng; import com.google.maps.Map; import com.google.maps.MapEvent; import com.google.maps.MapType; import flash.external.ExternalInterface var map:Map = new Map(); map.key = "ABQIAAAAI-3uG0C4gEuS8SawKuyQiBQwVIQD1wGzsLiDKWLG8ZsgG0ILEhSqpCv88LtNJKZ81md7rAkqX6Cm0w"; map.setSize(new Point(stage.stageWidth, stage.stageHeight)); map.addEventListener(MapEvent.MAP_READY, onMapReady); this.addChild(map); function onMapReady(event:MapEvent):void { map.setCenter(new LatLng(52.37951,4.637087), 8); // var v:String = "52.78743 , 6.107261 to 51.735602 , 5.517159"; var dir = new Directions(); dir.addEventListener(DirectionsEvent.DIRECTIONS_SUCCESS, onDirLoad); dir.addEventListener(DirectionsEvent.DIRECTIONS_FAILURE, onDirFail); dir.load(v); } function onDirFail(event:DirectionsEvent):void { ExternalInterface.call("alert" , "Process failure:DirectionsEvent"+event.name ); } function onDirLoad(event:DirectionsEvent):void { var dir:Directions = event.directions; map.clearOverlays(); map.addOverlay(dir.createPolyline()); ExternalInterface.call("alert" , "All worked" ); } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
