The cordova googlemaps plugin will be bumped up version 2.0 soon.
The performance is improved overall, and multiple maps in one page, and also works in the multiple pages.
The reason of I wrote here is that some method names and some event names are changed from version 1.
I don’t know who managers the Google Map module for ionic,
but you need to update the wrapper code.
Unfortunately I’m not familiar with ionic. So I can not contribute.
Hey @wf9a5m75! Thanks for the heads up, sounds like a great improvement the community will love. We will work on getting that updated in ionic-native. Cheers
I changed the method names a little of the map class.
And event names are reorganized.
I wrote the migration document at here.
I also added some properties to Map (or other classes) for new features.
I will write the documents one by one.
And JS code is stored on separated files.
Some people has been trying to use the v2-beta version and ionic (without wrapper plugin).
It seems they does not have critical issue so far, so the plugin v2 should work on the ionic.
Please update the wrapper plugin.
The final release date is not set yet, but we are planing to release it in couple of weeks.
Thank you for your help.
Error: There was a conflict trying to modify attributes with <edit-config> in plugin cordova-plugin-googlemaps.
The conflicting plugin, undefined, already modified the same attributes.
The conflict must be resolved before cordova-plugin-googlemaps can be added.
You may use --force to add the plugin and overwrite the conflicting attributes.
Then I used --force and build my app and…
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find com.google.android.gms:play-services-maps:9.6.1.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.pom
https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.jar
https://jcenter.bintray.com/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.jar
file:/media/cezary/9c1a0b57-d4f9-47fb-9779-386da6a843ff/android-sdk-linux/extras/android/m2repository/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.pom
file:/media/cezary/9c1a0b57-d4f9-47fb-9779-386da6a843ff/android-sdk-linux/extras/android/m2repository/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.jar
file:/media/cezary/9c1a0b57-d4f9-47fb-9779-386da6a843ff/android-sdk-linux/extras/google/m2repository/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.pom
file:/media/cezary/9c1a0b57-d4f9-47fb-9779-386da6a843ff/android-sdk-linux/extras/google/m2repository/com/google/android/gms/play-services-maps/9.6.1/play-services-maps-9.6.1.jar
Required by:
:android:unspecified
Wondering when the new one will be available for use?
We will be integrating the map into our application in the next sprint and I’m wondering whether I should use it as just the Cordova plugin or wait for the Ionic Native wrappers.
The native wrappers tend to behave predictably so thats my preference but I’m unsure of the complexity from your end in terms of getting the changes out?
I tried updating to the new version but I get this error when running “ionic run android”:
/home/ben/foo/app/platforms/android/src/plugin/google/maps/PluginMap.java:76: error: package cordova.google.maps does not exist
import cordova.google.maps.R;
^
/home/ben/foo/app/platforms/android/src/plugin/google/maps/PluginMap.java:875: error: package R does not exist
View dummyView = cordova.getActivity().getLayoutInflater().inflate(R.layout.dummy_infowindow, null);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
I already reinstalled the plugin as well as the android platform, but this did not help.
Do you have any idea what causes this? I tried to compile the example cordova project and this worked without problems.
This plugin rocks! NIce work @wf9a5m75. Using .setClickable() is a pain though, since I am new to Ionic2 final. I have ion-fab buttons and other elements over the map and the clicks passing to the map require some attention. I don’t know what to do to make those elements aware of clicks over them. The rest is working perfectly, better impossible. I’ll keep googling, but would appreciate any hint.
Edit:
Putting the FAB inside map’s div make it work.