Giter Site home page Giter Site logo

tuarua / google-maps-ane Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 9.0 5.75 MB

Google Maps Adobe Air Native Extension for iOS 9.0+ and Android 19+.

License: Apache License 2.0

ActionScript 34.85% Batchfile 0.33% Java 1.25% Kotlin 22.21% Shell 2.21% Objective-C 4.67% Swift 34.48%
actionscript adobe-air air-native-extensions google-maps kotlin kotlin-android native-extension swift

google-maps-ane's People

Contributors

tuarua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-maps-ane's Issues

com.android.support.support-v4 air sdk (Flash Develop)

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

some events not calling

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

How do i add an GroundOverlay to the map?

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

Feature Request: Camera offset.

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

The extension context does not have a method with the name init On Sony XPERIA XA

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()

showInfoWindow Function

Can I implement this function :

marker.showInfoWindow();

without click event
To show the title and snippet for all markers

Sample AS3 Implementation

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

breaking the render of the map

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?

event.params is empty on GoogleMapsEvent.ON_CAMERA_IDLE

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

Getting an PackageName Error while compiling in Animate CC

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!

myLocationButton visibility

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.