开发者

Using Rhomobile MapView not loading tiles only gray grid

I am trying to display a map using Rhomobile framework Rhodes

I have followed the webinar and tutorial I have done exactly the same, but my map tiles are not loading on my android device nor on the emulator.

I have generated the api key following the instructions here and I got the debug key: 05dXWxC1NSKgk7itJZnjJr1-AobLz3l5iN2iAWg

I added the key to my build.yml like this:

android:
  version: 2.1
  mapping: true
  apikey: 05dXWxC1NSKgk7itJZnjJr1-AobLz3l5iN2iAWg

in my controller I have the follo开发者_运维技巧wing:

   map_params = {
          :settings => {:map_type => "hybrid",:region => [@customer.lat, @customer.long, 0.2, 0.2],
                        :zoom_enabled => true,:scroll_enabled => true,:shows_user_location => false,
                        :api_key => 'Google Maps API Key'},

I have tried adding the apikey where it says Google Maps API Key but it still doesn't work. I have read that for Android there are two keys involved, but I only have one. Where do I get the other key if this is necessary?

I have also read in some threads that by setting the uses_permission to INTERNET in the android manifest it has solved the problem, but I don't know how to do that using rhodes framework. I have added the gps capabilities to the build.yml, but I can't seem to find that a internet capability exists in this framework.

I hope you can help me out. Thank you in advance


Ok, so in fact it wasn't a problem of my apikey.

The problem was solved by deleting the bin folder and recompiling the app... I guess all it needed was some sort of a clean build.

problem solved!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜