another quick and dirty patch for very long labels

21 views
Skip to first unread message

zbencik

unread,
Mar 18, 2013, 4:51:31 PM3/18/13
to mapsfo...@googlegroups.com
Hi all!

It appears that many of the node captions are pretty lengthy for the OSM extract I'm working on, and it gets very ugly while rendering them all.
I've decided to break lengthy captions which are longer than 100 pixels(?).
I used android.text.StaticLayout for breaking the long text into multiple lines.
Patch files are attached.

br,
-zbencik.
PointTextContainer.java.patch
CanvasRasterer.java.patch

Thilo Mühlberg

unread,
Mar 18, 2013, 6:34:45 PM3/18/13
to mapsfo...@googlegroups.com
I didn't have time to actually look at your code, but:

1) be aware that the whole labeling will be reimplemented from scratch
in the (near) future to overcome many of the current limitations / bugs.
There are already issues in our bug tracker for some of them. The
current code is legacy crap, absolutely undocumented and tested. Nobody
will spend any more time in maintaining / fixing it.

2) The mapsforge-map module is an Android independent maven artifact. It
uses only plain standard Java classes which are available as well in
Android as in a desktop Java API. Importing any classes from android.*
breaks this concept and renders the AWT based MapViewer useless. As it
doesn't have an Android dependency, maven will also fail to build it.

3) The whole map library is currently being rewritten. All improvement
ideas and patches should thus be made based on the latest Git "rewrite"
branch. There will be no more official releases of the old 0.3.x branch.

Greetings,
Thilo
> --
> You received this message because you are subscribed to the Google
> Groups "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapsforge-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


signature.asc
Reply all
Reply to author
Forward
0 new messages