Hi,

This problem occurs when there are layers in the map with Show In Legend =
false. It tries to hide the layers in the legend but fails when there's
nothing to hide.

A patch for Web\www\fusion\widgets\Legend.js is attached.

After applying the change, I rebuilt fusionSF-compressed.js using the tools
and instructions from here:
https://trac.osgeo.org/mapguide/wiki/Release/3.1.2/Notes#Fusionbuildtools
The generated file looks right to me, so it seems like those scripts still
work for this version.

Best regards,
Patrik Johansson

On Fri, Apr 7, 2023 at 1:01 PM Dan Nilsson <dan.nils...@tyrens.se> wrote:

> Hi!
>
>
> Test with MapGuide OpenSource 4.0 Beta 1 on my virtual machine (Windows 11 
> x64).
>
> Configured with IIS and using .Net.
>
>
> MapGuide version: 4.0.0.10048
>
> I get this error when I open my map.
>
> Number of layers: 1033 (and it's growing...)
>
>
>
> If I reduce number of layers it works fine without any error:
>
>
>
> Med vänlig hälsning
>
> *Dan Nilsson *
> Projektledare
> ------------------------------
>
>
> Box 27
> 291 21 Kristianstad
> Besök: Östra Boulevarden 56
> Tel vx 010 452 20 00
> Direkt 010-452 27 18 Mob 070-750 17 01
> www.tyrens.se
>
> <http://www.facebook.com/tyrensab>  <https://twitter.com/tyrens_ab>
> <http://www.linkedin.com/company/tyrens-ab>
> <https://www.instagram.com/tyrens_ab/>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>

Attachment: fusion_legend_hideemptygroup.patch
Description: Binary data

_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to