GoogleMaps on android.

54 views
Skip to first unread message

Rocotoco Rodriguez

unread,
Sep 14, 2016, 1:24:54 AM9/14/16
to CodenameOne Discussions
Shai: i was looking about how to set the maximum zoom in a map and i found in https://developers.google.com/android/reference/com/google/android/gms/maps/GoogleMap were i found the   GoogleMap.setMaxZoomPreference function who looks like what i need.

the problem is when i try to compile in androd , so the compiler returns the following error:

Compiling with JDK Java compiler API.
/tmp/build8361734456919142315xxx/MyApplication/src/main/java/com/codename1/googlemaps/InternalNativeMapsStub.java:45: error: incompatible types: void cannot be converted to int
        return impl.setMaxZoom(param0);
                              ^
/tmp/build8361734456919142315xxx/MyApplication/src/main/java/com/codename1/googlemaps/InternalNativeMapsImpl.java:492: error: cannot find symbol
                GoogleMap.setMaxZoomPreference(parZoom);
                         ^
  symbol:   method setMaxZoomPreference(int)
  location: class GoogleMap


any idea about what is happend? thanks


If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

Rocotoco Rodriguez

unread,
Sep 14, 2016, 2:44:42 AM9/14/16
to CodenameOne Discussions
Its possible that the google maps sdk is out of date on the server?

Rocotoco Rodriguez

unread,
Sep 14, 2016, 8:13:46 AM9/14/16
to CodenameOne Discussions
 Shai: i Found in the web that function is available in com.google.android.gms:play-services-maps:9.4.0  , but searching in the error log, i found you use com.google.android.gms/play-services-maps/8.3.0/

how i can upgrade the version?

can you help me?


On Wednesday, September 14, 2016 at 2:24:54 AM UTC-3, Rocotoco Rodriguez wrote:

Shai Almog

unread,
Sep 15, 2016, 1:07:12 AM9/15/16
to CodenameOne Discussions
As far as I can tell we always use the latest: https://github.com/codenameone/codenameone-google-maps/

Where did you get the 8.3 number from?

Rocotoco Rodriguez

unread,
Sep 15, 2016, 7:51:36 AM9/15/16
to CodenameOne Discussions
Shai: right now i dont find the page where i read it, but if you check https://developers.google.com/maps/documentation/android-api/releases youll see that in the latest version , the api allows to set the maximum and the minimum zoom in the map.

i want to contribute with the project adding new functionalities, but im lost right now about how to improve that.

please, tell me why i cant use that procedure in the curret scenario.

thnks!

Shai Almog

unread,
Sep 16, 2016, 1:29:48 AM9/16/16
to CodenameOne Discussions
OK, looking at this again I see that this relates to the Android build process which currently depends on play services 8.3.
You can file an RFE to update it to the latest.

Rocotoco Rodriguez

unread,
Sep 16, 2016, 7:02:51 AM9/16/16
to CodenameOne Discussions
Sorry, but what is a RFE? where?

Shai Almog

unread,
Sep 17, 2016, 1:48:37 AM9/17/16
to CodenameOne Discussions
RFE = Request for Enhancement
It's a bug report that asks for a new feature:
https://www.codenameone.com/blog/issue-submission-guideline.html
Reply all
Reply to author
Forward
0 new messages