If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Native Development

Reply
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

MapView and map pins

Hello,

 

My app requires map pins in order to fully function. I noticed in the known issues that this was stated:

 

Push pins for geographic data on a MapView control
Push pins are added to MapView through MapData. MapData for a Mapview is obtained by calling the mapData() function. Push pins can be added through MapData::add(bb::platform::geo::Geographic *geo) or MapData::add(const bb::platform::geo::GeoList &elements). If you add the push pins to the MapView, the push pins will not render at all. Subsequently, the user is not able to interact with push pins. Bubbles around the push pins will not render either. The APIs do not show any errors during compilation or cause an unexpected termination at runtime.

 https://developer.blackberry.com/cascades/download/releasenotes/

 

Does anyone know if this will be fixed prior to launch? It seems to me that this is a MAJOR feature to be missing in a Gold SDK. Any application that requires geo awareness will essentially be useless or very incomplete.

 

Thanks,

 



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
bobdodd
Posts: 116
Registered: ‎10-31-2012
My Device: BB10 Dev Alpha B
My Carrier: -

Re: MapView and map pins

Just out of interest, how well are the maps rendering for you?

 

I'm finding that pan and pinch-to-zoom are leaving some map tiles at the wrong resolution, and that if I zoom in too far, the map renders grey until I zoom back out (I expected to get to best resolution and stop).

 

Do you get this, or is this something unique to me?

Please use plain text.
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: MapView and map pins

I'm experiencing the same rendering issues as you bobdodd.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
New Contributor
ATraversi
Posts: 6
Registered: ‎12-14-2012
My Device: Z10 Limited Edition
My Carrier: Claro

Re: MapView and map pins

Hi searingmedia, any news about your question?.

 

It's possible to show a pin on MapView using only Cascades?

 

 

Thanks

Please use plain text.
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: MapView and map pins

As far as I can tell, this won't be possible by launch.. which is quite upsetting.

 

I'm currently working a on a workaround using a webview, OpenStreetMaps and Leaflet. 



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
ekke
Posts: 1,440
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: MapView and map pins


searingmedia wrote:

As far as I can tell, this won't be possible by launch.. which is quite upsetting.

 

I'm currently working a on a workaround using a webview, OpenStreetMaps and Leaflet. 


a github sample would be great

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
New Contributor
ATraversi
Posts: 6
Registered: ‎12-14-2012
My Device: Z10 Limited Edition
My Carrier: Claro

Re: MapView and map pins

Hi searingmedia, look at the new cascade sample "mapviewdemo" (10 days ago):

 

https://github.com/blackberry/Cascades-Samples/tree/master/mapviewdemo

 

Enjoy

 

Regards

 

 

Please use plain text.
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: MapView and map pins

Very interesting, that does work.

 

 

For anyone who's interested, I've posted a gihub sample of my webview/osm workaround at https://github.com/RileyGB/BlackBerry10-Samples/tree/master/MapWebViewSample

 

There's still some features that I haven't got to work (such as pinch zooming) and some bugs (map pins stay selected after zooming), but it's a pretty decent example of how to communicate with webviews.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: MapView and map pins

Actually, even with that last cascades sample, I'm still not happy enough with the rendering to use it in a production app. I feel more comfortable with my OpenStreetMaps solution as it is smoother and easier to use.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.
New Contributor
ATraversi
Posts: 6
Registered: ‎12-14-2012
My Device: Z10 Limited Edition
My Carrier: Claro

Re: MapView and map pins

I agree with you

Please use plain text.