Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView is shown on Kindle but I cant move or do anything #66

Open
univ3rse opened this issue Dec 10, 2015 · 3 comments
Open

WebView is shown on Kindle but I cant move or do anything #66

univ3rse opened this issue Dec 10, 2015 · 3 comments

Comments

@univ3rse
Copy link

I am working for Properly Inc on our Anrdoid app and since we want to support Kindle and other Android OS variations that dont support the Play Services, I found our guys plugin. We are already using your deeplink plugin too.

But for some reason I cant interact with the Map in the WebView, the log shows ReferenceErrors.
I tried doing things through the AirMapView and the AirMapInterface, nothing helped.

To setup the the plugin for this use I followed your sample project and got it to display.

Do I have to interact with the webmap in another way, or should I use/try MapBox?

Thank you,

Matt

@petzel
Copy link
Contributor

petzel commented Dec 10, 2015

Hey Matt,

Could you post the logs you see containing the error? As well as the code you are using to setup the map/fragment?

-eric

@univ3rse
Copy link
Author

hi Eric,

thanks for the fast response.

AirMapView:

 mapView = (AirMapView) view.findViewById(R.id.map_view);

AirMapInterFace:

 DefaultAirMapViewBuilder defaultAirMapViewBuilder = new DefaultAirMapViewBuilder(getActivity());
 AirMapViewBuilder builder = null;

 if (playServicesAvailable)
 {
   builder = defaultAirMapViewBuilder.builder().withOptions(new AirGoogleMapOptions(new     GoogleMapOptions()).liteMode(true));
   mapInterface = builder.build();
 } else
 {
   mapInterface = new WebAirMapViewBuilder().build();
 }

 mapView.initialize(getActivity().getSupportFragmentManager(), mapInterface);

I tried various calls such as:

 mapInterface.setCenterZoom(new LatLng(propertyLatitude, propertyLongitude),zoom);
 mapInterface.animateCenter(new LatLng(propertyLatitude, propertyLongitude));

All produced the following logs
screen shot 2015-12-10 at 10 11 55 pm

I also noticed that the WebAirMapView doesn't trigger the OnMapInitializedListener.

Hopefully you can tell me what I did wrong, cause it is an awesome plugin otherwise.

Thanks,

Matt

@univ3rse
Copy link
Author

I figured out that the bigger issue is, that the listener does not trigger. After the map is loaded I can use a programmed button to show places on the map.

For some reason the location is not right, SupportMapFragment shows the right one, but both WebView and Mapbox dont.

edit: The coordinates are right as I tested them on an interactive html-version of the map

Matt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants