Skip to main content

Unable to load Google Map Widget

3 replies [Last post]
samdoyle
Offline
Joined: 2006-12-27
Points: 0

Using:
NB 5.5.1 RC1
Visual Web Pack 5.5.1
SWDP R2

So after registering for a API Key the widget failed to load, there is no "apikeys" property specifed in the config.json file as specified in your tutorial:

-- tutorial snippet from http://developers.sun.com/web/swdp/docs/tutorial/doc/p13.html --

6. Open config.json from the Web Pages/resources directory of your web application project that uses jMaki.

7. Find the apikeys property in the file.

8. Go to the google key definitions inside the apikeys property.

-- end snippet --

When I found a snippet of what I assume is an older version of a config.json on the web I tried that syntax and it didn't work. What is required to get the Google Map widget to work?

Thanks, S.D.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Try putting the API key in the same relative location under the apikeys property in much the same way you did in the config.json:

/resources/google/map/widget.json file.

Let us know if this does not work.

samdoyle
Offline
Joined: 2006-12-27
Points: 0

> Try putting the API key in the same relative location
> under the apikeys property in much the same way you
> did in the config.json:
>
> /resources/google/map/widget.json file.
>
> Let us know if this does not work.

Is this a file that is supposed to exist already? If so it does not when I create a new web application and specify to include the jMaki framework.

S.D.

samdoyle
Offline
Joined: 2006-12-27
Points: 0

> > Try putting the API key in the same relative
> location
> > under the apikeys property in much the same way
> you
> > did in the config.json:
> >
> > /resources/google/map/widget.json file.
> >
> > Let us know if this does not work.
>
> Is this a file that is supposed to exist already? If
> so it does not when I create a new web application
> and specify to include the jMaki framework.
>
> S.D.

Hi, disregard my previous post. I see once I dragged the widget from the palette the relevant path and files are created in the project.