tuarua / google-maps-ane Goto Github PK
View Code? Open in Web Editor NEWGoogle Maps Adobe Air Native Extension for iOS 9.0+ and Android 19+.
License: Apache License 2.0
Google Maps Adobe Air Native Extension for iOS 9.0+ and Android 19+.
License: Apache License 2.0
FD gives out "verify air sdk target version in application.xml" when I add a dependency com.android.support.support-v4
Tell me how to solve the problem? I tried to add com.distriqt.androidsupport.V4 instead com.android.support.support-v4. The program compiled, but in the process issued
[GoogleMapsANE] ANE not loaded properly. Future calls will fail.
AIR 28
Hello,
_googleMaps.addEventListener(GoogleMapsEvent.DID_BEGIN_DRAGGING, onDidBeginDragging);
_googleMaps.addEventListener(GoogleMapsEvent.DID_END_DRAGGING, onDidEndDragging);
_googleMaps.addEventListener(GoogleMapsEvent.DID_DRAG, onDidDrag);
_googleMaps.addEventListener(LocationEvent.LOCATION_UPDATED, onLocationUpdated);
these events listed above doesn't seem to be firing.
for LOCATION_UPDATED
it fires once at the beginning, but then i saw the blue dot move (which i suspect internally the location has been updated) and the handler didn't get called.
Regards,
Carlos
I want to add an GroundOverlay to the map with an custom icon to show the current location of the user. How do i add this to the map? For the marker there's an mapView.addMarker(...:Marker), but not for the GroundOverlay.
Best regards,
Alwin
I use Apache Flex
I try to show alert, callouts, buttons ... but come down the map
any solutions ?
Hi,
Is there a possibility to change the current location marker icon?
Best regards
Hi,
I'm using this wonderful ANE to create an in-car infotainment system. I would like to see a feature of the native Google Maps API added to this ANE; Camera offset. It's mainly used in navigation software and could just be handy for everyone. I know ActionScript, but i don't understand ANE's completely just jet.
This is the code used in the native Google Maps for Android API. I thought it may come in handy. (source: https://stackoverflow.com/questions/41811983/change-google-map-offset-center)
If it helps, i can send over a couple of free McDonald's menus.
public void changeOffsetCenter(double latitude,double longitude) { Point mappoint = mGoogleMap.getProjection().toScreenLocation(new LatLng(latitude, longitude)); mappoint.set(mappoint.x, mappoint.y-100); // change these values as you need , just hard coded a value if you want you can give it based on a ratio like using DisplayMetrics as well mGoogleMap.animateCamera(CameraUpdateFactory.newLatLng(mGoogleMap.getProjection().fromScreenLocation(mappoint))); }
EDIT: I did try the .scrollBy() method, but it can't be used in combination with a .moveCamera(), then the screen flickers, i also can't use the animated method because animations cancel out each other.
Thanks in advance.
-Alwin
Hey there
I'm getting the following error:
ArgumentError: Error #3500: The extension context does not have a method with the name init.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.tuarua::GoogleMapsANE()[/Users/User/flash/Google-Maps-ANE/native_extension/src/com/tuarua/GoogleMapsANE.as:33]
at com.tuarua::GoogleMapsANE$/get mapView()[/Users/User/flash/Google-Maps-ANE/native_extension/src/com/tuarua/GoogleMapsANE.as:44]
at StarlingRoot/start()[D:\Adobe Flash Builder 4.7\GoogleMapsANESample\src\StarlingRoot.as:87]
at GoogleMapsANESample/startGame()[D:\Adobe Flash Builder 4.7\GoogleMapsANESample\src\GoogleMapsANESample.as:91]
at Function/GoogleMapsANESample.as$0:anonymous()[D:\Adobe Flash Builder 4.7\GoogleMapsANESample\src\GoogleMapsANESample.as:84]
at Function/AssetManager.as$3:anonymous()[/Users/redge/Development/starling/starling/src/starling/utils/AssetManager.as:768]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Can I implement this function :
marker.showInfoWindow();
without click event
To show the title and snippet for all markers
Hi,
Good day :) I've checked your ane and really excited to use it but it seems in the sample there is no as3 file which uses the ane. Can you provide a sample project which shows the ane in action and how to properly initialize the ane?
Thanks,
Raymond
from another thread
You are setting googleMaps.visible = false; while the Google Maps are in the middle of rendering.
You are breaking the render of the map.
i think i'm having the same problem. when you set googleMaps.visible = false;
while it is rendering it doesn't appear again if you set it back to true.
is there a workaround for this?
Hello,
I'm on air 26, android 7.1.1.
After calling the googleMaps.getCapture() inside the onBitmapReady listener,
and adding the bitmap to the native stage, I'm only seeing the background of the map & the Google logo.
Regards,
Carlos
Suggestion: Add support for Windows and macOS
Have you got a plan to add this feature ?
Currently i`m using feathers StageTextTextEditor for textinput, and after it appears on screen maps becomes permamently invisible, even if remove textinput.
thanks
Hi tuarua,
event.params
is empty on event GoogleMapsEvent.ON_CAMERA_IDLE
Is this the normal behaviour? coz i was expecting the same latitude
& longitude
properties from the event.params
like that in the event GoogleMapsEvent.ON_CAMERA_MOVE
Regards,
Carlos
Hi,
can the button be anchored to the other 3 corners?
Regards,
Carlos
When my app is done compiling, i get the following error message:
The APK was packaged successfully, but a warning occurred.
Warning: packageName com.google.android.gms used by more than one ANE. Ignoring this entry
Warning: packageName com.google.android.gms used by more than one ANE. Ignoring this entry
NOTE: The application has been packaged with a captive runtime.
I've got and installed all the needed extensions described at the README page.
The app does not work correctly (because of the missing ANE's) and Google Maps does not load at all (again... Missing ANE's).
I'm not using any other extensions.
I'm using AIR 29.0 (Beta) with Animate CC.
Thanks in advance!
Hi,
myLocationButton is still visible even if i have already set it to false in the settings or even if it is false by default.
Regards,
Carlos
is it possible to rotate camera around custom achor point ?
on other native maps plugin we have purchased it restricted to the center point
calling bearing rotates map from center point only.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.