Hello Experts

I have started using Google APIs recently (distances matrix and Flash APIs). 

At the moment I am building a non-commercial application in Flash Builder 
4.5 for PHP. I have decided to incorporate 2 types of maps:

   - Simple map with single location (using Geocoding) 
   - More complex map with Driving Directions

I have come across following issues:

   1. I have successfully developed Simple map with single location as 
   a standalone Flex application. I am passing 2 parameters (as FlashVars) 
   namely postcode and location description (for marker) when calling this map. 
   It works perfectly fine. The only glitch (real deal breaker) is that when I 
   use popup (with Flex SWFLoader object) to display it inside my main Flex 
   application some of the map features (zoom -/+ buttons, dragging of the map) 
   do not work. These features work perfectly fine when I am displaying swf in 
   a new browser window (using Flex URLRequest object). I would prefer though 
   (as you can imagine) to continue using popups inside main Flex. It seems to 
   me that some of the events of Flash API do not work with certain wrappers. 
   Please note that some events do work just fine like zooming with scroll of 
   the mouse or by clicking on a zoom scale (using slider on scale does not 
   work as expected though)
   2. I have tried to develop map with Driving Directions using Google 
   sample code (see url: 
   
http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/DirectionsAdvanced.mxml)
 
   however I am getting following compile error:
   
   1118: Implicit coercion of a value with static type 
   com.google.maps.interfaces:IDirections to a possibly unrelated type 
   com.google.maps.services:Directions
   
   for following line of the code:
   
   var dir:Directions = event.directions;
   
   Upon closer inspection both objects Directions and event.directions have 
   exactly same structure

 
Can anyone offer some help in solving these issues?
Regards
Michael

-- 
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/-/dNv0Bptvy-AJ.
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