NetXMS Support Forum

English Support => General Support => Topic started by: gkaudewitz on May 07, 2024, 03:22:25 PM

Title: networkmaps backgroundimge dispaly partially broken in new gui 5.0.1
Post by: gkaudewitz on May 07, 2024, 03:22:25 PM
At my installation I'm using a networkmap for every floor with a jpg or png image as background and some other informations. These images are of different sizes. Til now it worked fine getting the image from image-library and it was displayed perfectly.
With version 5.0.1 mapsize within map properties has to be changed from width=0 and height=0 to a value that fits imagesize to be displayed correctly.
Is this a bug or intended behavior?
If this is intended behavior I have to change the values for many, many maps....
Title: Re: networkmaps backgroundimge dispaly partially broken in new gui 5.0.1
Post by: Filipp Sudanov on May 10, 2024, 03:05:48 PM
We will discuss internally, if background image size can be considering when opening map.

As for now, if size in map properties is 0, 0 then default values are taken from server configuration settings Objects.NetworkMaps.DefaultHeight (or ...Width), or coordinates of farthest objects are taken as size, if they are bigger then default values. So you can increase these default values to the size of your biggest background image.

Also, there's a difference between desktop and web version - in the latter background image is not cropped to map size.

Title: Re: networkmaps backgroundimge dispaly partially broken in new gui 5.0.1
Post by: Victor Kirhenshtein on June 27, 2024, 06:48:08 PM
I changed map size logic a bit - now map will not be smaller than background image size if it's size set to default (0 values for width and height). This change will be included into upcoming release 5.0.5.

Best regards,
Victor