APC3100 - PaperWidget / SVG scale + translate work in ARSim but not with real hardware

Hello community
I use the PaperWidget with mappScript.
To enlarge specific areas at events I use “scale” and “translate” so that the widget “jumps to the correct positions”.

It works fine in ARSim on PC. When I run the software on an APC3100, additional elements (navigation buttons, map, etc.) are displayed, but the actual transformation does not take place (Paper Widget continues to display the full SVG as loaded at startup).

Does anyone know the problem?

Hello Paddern!

I dont know what the issue is, what are you using as a display when running it on APC3100?
You can however monitor the behavior in your diagnostics page if you have it enabled and see what is happening with the transformation and compare it from PC to APC
Hopefully there is some error there that gives us a hint what is wrong
Also check the logger if something is popping up there

Best regards
Nicolas

I wrote my own logger.

As mentiond: mappScript

“Display” is the same: My notebook.

Problem is not the browser or the display because it’s 100% same thing.

Difference is:

ARSim (Notebook) vs. APC3100

ArSim is more forgiving, it accepts transform commands even when the SVG structure or IDs are not perfect.

The APC3100 runtime, however, validates the transform instructions more strictly. If anything is off, the PaperWidget simply keeps the original full SVG.
It might be the case that the transform targets are not being recognized on the APC3100 because the SVG elements do not have IDs or the transform lacks a select field.

Do you want to share your script where you translate and I can have a look?

Hi Niwal

My logger tells me what is sent:

[{“select”:“#g0”,“translate”:[-869,-138],“scale”:[2,2]}]
(-> real string which is sent)

For me it looks correct…

Yup true looks correct to me!

Do you have the latest APC3100 firmware?

There are also some settings that can mess with the translate set the settings below and test
minZoomLevel = 10
maxZoomLevel = 500

sizeMode = “manual”
autoSize = false

Both are set to 100. Because it’s not allowed to use zoom “manual” (UX → 100% mode to see everything or specific zoom [which is made by “scale” and “translate”] where elements have a specific size).

I found these properties in “Image” but they are not available in “Drawing”.

Both are set to 100. Because it’s not allowed to use zoom “manual” (UX → 100% mode to see everything or specific zoom [which is made by “scale” and “translate”] where elements have a specific size).

I found these properties in “Image” but they are not available in “Drawing”.

I updated every upgrade (also newest AS).

Hi @Pad_Dern

Are you using Chrome? You could try to see, if the SVG got the correct position with the Development Tools (Ctrl + Shift + I)

For example in Elements Tab, you can see all your widgets

Other point, it could be the viewBox, and did you checkt already if you need to some scaling between your Paper Widget and SVG ?

BR

Vanessa

Thanks @all for help.

Problem was “special multi SVG config scripting” of a colleague.

Works now!

Yes, of course :wink: SVG can be changed by user (depends on user level) and aspect ration can be different => checked