Text Not appearing on Map

41 views
Skip to first unread message

steve nganga

unread,
Jul 16, 2016, 2:57:37 PM7/16/16
to codenameone...@googlegroups.com
hi,Am using the MapContainer method addMarker nd passing the text but this text is not appearing on the Marker yet the Marker image is visible.Is there something that am missing here...

l = LocationManager.getLocationManager().getCurrentLocation();
Coord c = new Coord(l.getLatitude(), l.getLongitude());
mo = map.addMarker(ei, c, "Steve", "Steve", ac);

Shai Almog

unread,
Jul 17, 2016, 12:23:03 AM7/17/16
to CodenameOne Discussions
Hi,
On which platform isn't it appearing?

steve nganga

unread,
Jul 17, 2016, 1:15:04 AM7/17/16
to codenameone...@googlegroups.com
This is on HTC 601 #android v4.2.2 .i just realised i have to click the marker for the text to appear... is there a way the text can just appear without me clicking the marker.. 


On Sun, Jul 17, 2016 at 7:23 AM, Shai Almog <shai....@gmail.com> wrote:
Hi,
On which platform isn't it appearing?

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b682003d-a306-4610-a21c-b083aec5b220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shai Almog

unread,
Jul 18, 2016, 12:52:19 AM7/18/16
to CodenameOne Discussions
I think you will need to add it either thru the  native code or by encoding it into the marker image.

tas...@gmail.com

unread,
Nov 22, 2016, 12:30:21 PM11/22/16
to CodenameOne Discussions
Any specific classes to paint text into image, with transparent background? Another question is how to define the font size.

Shai Almog

unread,
Nov 23, 2016, 12:29:54 AM11/23/16
to CodenameOne Discussions, tas...@gmail.com
Image supports createImage(width, height, ARGBColor)
Font has a derive method that works with native fonts. It very much depends on the font type.

I suggest going thru the developer guide.
Reply all
Reply to author
Forward
0 new messages