Are you making a mobile app? On Apr 24, 2011 5:52 AM, "Andi" <[email protected]> wrote: > How can i get the current lan and lng ?any functions ? > > -- > 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. > I have never done this but I am going to this week. So, if any of these work let me know.
1. import flash.sensor.Geolocation and flash.events.GeolocationEvent (I these will only work in AIR 2.5) 2. Change my_geo:Geolocation = new Geolocation() don't declare your var in the getGeolocation() method declare it outside and just create a new instance of it in the method 3. Check that the map's sensor property is set to "true" 4. If those don't work (I would assume there is already a default value set but just in case) my_geo.setRequestedUpdateInterval(int); 5. <![CDATA[<manifest> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> </manifest>]]> </manifestAdditions> Hope that helps! -- 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.
