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
New Contributor
MacLuky
Posts: 7
Registered: ‎02-11-2013
My Device: Z10

Is it possible draw overlays on a map?

Hi

 

I want to draw a circle and trail on top of a map, but ideally it should move with the map. Does anyone know if this can be done?

 

Regards

 

Chris

Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Is it possible draw overlays on a map?

[ Edited ]

Not sure about the trail but you can change the image used for a Marker...

 

http://developer.blackberry.com/cascades/reference/bb__platform__geo__marker.html

 

The map returned is essentially just an image with no smart object data (i.e. it doesn't know where the roads are on the image) so to do the trail you'd have to get that data from a different location.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Contributor
MacLuky
Posts: 7
Registered: ‎02-11-2013
My Device: Z10

Re: Is it possible draw overlays on a map?

Yes i tried that, but the image doesn't scale. I am now using an image overlay and dynamically resize and reposition the image to match the maps position, but it lags and is cumbersome.

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

Re: Is it possible draw overlays on a map?

Drawing objects on maps such as circles, polylines, etc. is not available at the current time but is slated for a future release IIRC from one of the webcasts on maps.



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
New Contributor
MacLuky
Posts: 7
Registered: ‎02-11-2013
My Device: Z10

Re: Is it possible draw overlays on a map?

Thanks, 

I'm creating an image in C++ now and move it arround with the Map. It works, but really painfull :-)

Looking forward to that functionality in the platform itself

New Developer
gbreth
Posts: 8
Registered: ‎10-12-2013
My Device: Z10

Re: Is it possible draw overlays on a map?

@MacLuky: Hi MacLuky, may I ask you how you did it in C++? I tried some things with ImageView and QImage but the scaling of the used image was not perfectly done and the result was not satisfying. What I ant to do is to draw a circle around my device position on the map, like a radar. BR gbreth
Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Is it possible draw overlays on a map?

[ Edited ]

@gbreth Welcome to the forums. macluky hasn't been on the forums for 3 months instead of reopening old threads it's better to start your own one with your own problem and the code you have so far.

 

[Edit] Well done for searching your problem first though.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
gbreth
Posts: 8
Registered: ‎10-12-2013
My Device: Z10

Re: Is it possible draw overlays on a map?

Thx for the info! I will open my own thread.

New Contributor
MacLuky
Posts: 7
Registered: ‎02-11-2013
My Device: Z10

Re: Is it possible draw overlays on a map?

But he gets email alerts  :smileywink:

New Developer
gbreth
Posts: 8
Registered: ‎10-12-2013
My Device: Z10

Re: Is it possible draw overlays on a map?

And me too ;-)

 

So may I ask you again, how you did it? :-)