Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 17
Registered: ‎08-19-2011
My Device: none
My Carrier: none
Accepted Solution

Google Maps V3 API and webworks giving JavaScript errors

The map loads fine and displays, but any attempt to pan throws a JavaScript error.

 

Uncaught TypeError: Object [object Object] has no method 'item'

 

Example URL loaded in ripple will show the issue.

https://google-developers.appspot.com/maps/documentation/javascript/examples/map-simple

 

I also get this when embedding the code into a web works application:

I use my own map key and have added <access uri="*" subdomains="true" /> to the config.

 

The only way that I have found around this is to create it in a separate file and load that into an iframe.

 

Any idea what is wrong?

 

 

 

 

 

Highlighted
Contributor
Posts: 17
Registered: ‎08-19-2011
My Device: none
My Carrier: none

Re: Google Maps V3 API and webworks giving JavaScript errors

Code seems to work on the device,  so I am good now.  Ripple still has the issue though.