Reputation: 4231
I am implementing a map as a computer game accessory; it should show the geography of the computer game with a few informative overlays. I wonder what's the best way to achieve this in JavaFX, or more precisely ScalaFX.
Right now, I have a very naive implementation:
ImageView
s in a Group
and transform that group, so that all zoom levels use the same coordinates.ScrollPane
.That has a few limitations:
Obviously, this is one of the approaches I tried. This question mentions a library by some eppleton, but it doesn't seem to be maintained, and the blog that used to describe the library doesn't exist anymore. Also, it seems to focus on providing a game engine, with a tile having meaning to the game; a tile in a map is just an image, and the overlay doesn't care where one tile begins or ends.
To finish this with a concrete question: Are there any libraries or techniques that I can use to fulfill my needs? I'm especially interested in my third bullet point (UX), but I guess that if there's a suitable approach, it would cover points 1 to 3.
Upvotes: 3
Views: 1927
Reputation: 17369
UPDATED: Few more options are on the table now:
One option is not to build but use existing open source project, such as openmapfx
Upvotes: 1