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
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

[PlayBook - BUG] Google Maps API v3 kills onSwipeDown

[ Edited ]

There may be other libraries killing onSwipeDown, but I've just wasted hours trying to find non-existant bugs in my code until I added a Google map to the onSwipeDown example and got the same result:

 

TypeError: Result of expression 'blackberry.events.getEventHandler(0)' [undefined] is not a function.

 

It be great if this could be confirmed by someone.

 

Just add this to head:

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

 

and this to setHandlers:

var myLatlng = new google.maps.LatLng(-34.397, 150.644);

var myOptions = {  zoom: 8,  center: myLatlng,  mapTypeId: google.maps.MapTypeId.ROADMAP}

var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: [PlayBook - BUG] Google Maps API v3 kills onSwipeDown

Update: Adding Google maps kills ALL app.event events. It's not possible anymore to detect swipes or whether the app is in the foreground or background.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
New Developer
magorich
Posts: 9
Registered: ‎09-06-2011
My Device: Playbook
My Carrier: Developer

Re: [PlayBook - BUG] Google Maps API v3 kills onSwipeDown

Hi, if we want to show only the map, our app will be frozen ?? or only some events ??

 

Thanks

Please use plain text.
Developer
interfaSys
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: [PlayBook - BUG] Google Maps API v3 kills onSwipeDown

Google Maps will work fine, but all the special PlayBook events will be broken. If you just need the map and basic pointers, you would be better off using Bing Maps which offers a better experience on the PlayBook.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.