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
New Contributor
Posts: 3
Registered: ‎10-24-2012
My Device: BlackBerry Torch 9800

Google map positioning with Google Maps API V3

I am working on a mobile web app that displays  a google map using Google Maps API V3. However, when it's viewed on blackberry the coordinates I have given when creating the map are not what is displayed. 

 

For example I set my center to be 46.4633, -80.9706 but on blackberry the center is around 46.4582, -80.976

 

I have defined the center as:

 

        var mapOptions = {

          center: new google.maps.LatLng(46.4633, -80.9706),

          streetViewControl: false,

          zoom: 14,

          mapTypeId: google.maps.MapTypeId.ROADMAP

 

Has anyone had similar issues or a possible solution?

BlackBerry Development Advisor
Posts: 165
Registered: ‎09-24-2012
My Device: Passport

Re: Google map positioning with Google Maps API V3

[ Edited ]

Hi Juliia,

 

What device/OS version have you tested this with? I tried the following example and it works as intended on a BB10 Dev Alpha https://google-developers.appspot.com/maps/documentation/javascript/examples/map-coordinates

New Contributor
Posts: 3
Registered: ‎10-24-2012
My Device: BlackBerry Torch 9800

Re: Google map positioning with Google Maps API V3

It was tested with version 7 of the OS, people who will be using the app will probably have 7 or lower.

BlackBerry Development Advisor
Posts: 165
Registered: ‎09-24-2012
My Device: Passport

Re: Google map positioning with Google Maps API V3

Are you packaging this into a WebWorks app? Or is this a mobile site that users will visit using their devices?

New Contributor
Posts: 3
Registered: ‎10-24-2012
My Device: BlackBerry Torch 9800

Re: Google map positioning with Google Maps API V3

[ Edited ]

For now just the mobile web that any phone can access. In the future I'm hoping to have it with WebWorks.

 

EDIT: I have tested it with the dev of OS 10 and it works perfectly.