godson KALIPE
godson KALIPE

Reputation: 45

Show blank google maps in codename one

I'm building a codename one mobile application and i need to fetch a blank google maps on which i can place icons showing my own coordinates (not places i can fetch through the google places api). How can i do that ? Since i don't want to fetch anything other than a blank map, i wonder if i need a webservice for that. I have read that instantiating the MapContainer would show me a blank google map but i am stil getting a osm map (on both the emulator and a real Android 4.4 device). I have already done all the procedures required to get a key and all the steps of the maps demo work fine for me. Now what i need to know is how to be able to get a blank map.

Thank you advance for the answers.

Upvotes: 1

Views: 286

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

You get OSM on the device as a fallback when initializing the native map failed. Make sure you followed the integration instructions as explained here.

You can debug the issue on an Android device by connecting the device with a cable and launching the DDMS tool from the Android command line SDK. In 90% of the cases this means your SHA1 is different from the one defined in the maps API and this will be printed when you try to open the map.

On the simulator OSM is shown unless you provided the Google maps provider in the constructor.

Upvotes: 2

Related Questions