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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Using maps? Read this! Lightweight Maps for Mobile, Part 1: Introduction to Map APIs and Libraries

I really hope everyone has seen this blog post, but if you haven't yet, its worth a read and/or bookmark.

 

http://devblog.blackberry.com/2012/05/lightweight-maps-for-mobile-part-1/

 

Anyone considering using Maps in their WebWorks application development should read this for a clear understanding of what options are (currently) out there, and why some may be better than others for your needs.  

 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Using maps? Read this! Lightweight Maps for Mobile, Part 1: Introduction to Map APIs and Libraries

Interesting!

Has leaflet been tested on the PlayBook and found to be a 100% compatible with WebWorks? Google Maps cannot be used because it breaks the event system.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
New Contributor
Posts: 2
Registered: ‎04-01-2011
My Device: Torch 9810, PlayBook

Re: Using maps? Read this! Lightweight Maps for Mobile, Part 1: Introduction to Map APIs and Libraries

Olivier,

 

We haven't fully tested it with WebWorks yet so I can't say it's 100% compatible, but I have built several apps for the PlayBook using Leaflet, and it performs really well. It also runs well on smartphones.

 

What events were you running into with Google Maps?

 

Thanks.

 

Jim

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

Re: Using maps? Read this! Lightweight Maps for Mobile, Part 1: Introduction to Map APIs and Libraries

[ Edited ]

Good to know about performance, Jim Smiley Happy

 

IIRC, all calls to blackberry.app.event.* fail as soon as you load the Google Maps API, but in my tests, here are the ones which stopped working: onSwipeDown, onForeground and onBackground.

 

Here is the issue in the bug tracker. I haven't made any tests recently, but that bug is still open.

 

 

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: Using maps? Read this! Lightweight Maps for Mobile, Part 1: Introduction to Map APIs and Libraries

Thank you for providing this resource. The speed and rendering improvements are incredible!

 

Developer
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: Using maps? Read this! Lightweight Maps for Mobile, Part 1: Introduction to Map APIs and Libraries

Has anyone got this to work with bbui.js?

 

I followed many tutorials and that post but cannot get it to work.  Keep getting the error: 

Uncaught TypeError: Cannot read property '_leaflet' of null

 

Not really a javascript guru, still learning.

If it helped you, click like. Smiley Happy