Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Central icon display problem #100

Open
ValentinD45 opened this issue Nov 21, 2019 · 4 comments
Open

Central icon display problem #100

ValentinD45 opened this issue Nov 21, 2019 · 4 comments
Labels

Comments

@ValentinD45
Copy link

ValentinD45 commented Nov 21, 2019

Hi,

I just started to develop with this library (version 1.38). I recovered the method "Draw Unit" from sample code to add it to my code, I just changed the display PNG method because I'm using JavaFX but nothing from the core.

When i click on the button to generate a symbol (code SSSCCLBB----), I get this

Capture

But I should get this

Capture1

On all other symbols it's the same, I have no icon inside the symbol. I can only generate the outside and not the inside.

Is this normal, how can I solve the problem?

My code :
Capture
Capture1

@michael-spinelli
Copy link
Contributor

Just to check, above you said you used "SSSCCLBB----". The symbol ID needs to be 15 characters.

Using "SSSCCLBB----" I got an empty symbol like you. Using "SSSCCLBB--*****" I got the icon inside the symbol. Now if you are using a 15 character symbol ID I'll have to look at it some more as I'm not having any problems with that.

@ValentinD45
Copy link
Author

Thanks ! I did not even notice the number of characters now I understand.

I just have another quick question for when is the 2525D and APP-6 D support planned?

Thanks

@michael-spinelli
Copy link
Contributor

michael-spinelli commented Nov 22, 2019

Short answer is no further development is planned.

The renderer is not being actively developed right now. Until there is a deadline for 2525D support for the Army, I don't see any further development getting funded. The only open source renderer that supports 2525D that I'm aware of is in JavaScript and is located here:
https://www.spatialillusions.com/

They have a library that does 2525D single points. They started a library for multipoints but I believe that work as stalled.

We did some mapping of 2525D codes for multipoints but that's not officially supported and only works via the web service and doesn't have any of the checks to make sure what you're sending in is good.

I made a post here:
https://groups.google.com/forum/#!topic/mission-command-milstd-renderer/Gy_rtD2ZDro

2525D still not supported in any capacity and there is no current plan to.

However, I created a branch where I unlock what 2525D functionality we do have:
https://github.com/missioncommand/mil-sym-java/tree/unlock_limited_2525D_support

-Unblocked 2525D in the renderer
-only multipoints supported
-you must pass in 2 for your symbology standard. the 2525D constant is still set to 1 which is 2525C
-you must pass in a line color or you'll just get black every time.
-no checks are done due to lack of Symbol Definitions and support functions for 2525D
-this is just to play around with. Implemented the majority of 2525D multipoint symbology as most of it existed in 2525C already
-This is all just to play around with, I DO NOT RECOMMEND using this in any official capacity.
-I just did a quick test using an html page against the web service. Using the JARs directly should work as well but again I only did light testing.
-Expect Issues

@michael-spinelli
Copy link
Contributor

Here's a build of the branch I referenced above for anyone that is interested.

mil-sym-renderer-0.1.38D.zip

mil-sym-service-0.1.38D.war.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants