语言

Menu
Sites
Language
Problem with a reverse geocoding example

Hello,

I am trying to test a Reverse Geocoding example from this web site https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse on a web application, but when I run it on the RD-PQ test device, I got the following error on the IDE console:

index.html (36) :ReferenceError: Can't find variable: google
js/main.js (19) :init() called

And the Map didin't show up on the screen!

What am I missing?

Thank you in advance.

响应

5 回复
AVSukhov

Hello,

 

Do you add Javascript API Google map in your web app?

<script type="text/javascript"
      src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
    </script>
karray gargouri

<script type="text/javascript"
      src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAQVuKhtKehsc7wn5nU_op1NwGRTLhRhcc&sensor=TRUE">
    </script>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>

In deed, after the creation of the API Key, I obtain these two instructions, which one should I put?

Marco Buettner

Do you setup your config.xml with access for http://maps.googleapis.com and https://maps.googleapis.com ;)

karray gargouri

Still no results!

AVSukhov

Hello,

You can use good tutorial about use google map api on tizen:

https://developer.tizen.org/documentation/articles/google-maps-on-tizen?langredirect=1

there is a test project in which you can see the implementation. i tested it Z1 device and it works.

I hope this will help you