06-20-2011 08:07 PM - edited 06-20-2011 08:24 PM
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_canva
06-26-2011 11:20 PM
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.
09-07-2011 02:46 PM
Hi, if we want to show only the map, our app will be frozen ?? or only some events ??
Thanks
09-07-2011 04:50 PM
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.