[mapguide-internals] Some proposed corrections and extensions on php basic layout files

Kenneth Skovhede ks at geograf.dk
Sun Feb 28 08:09:53 EST 2010

For the changes to be included in the next release,
you should create a ticket and attach the files there.
This ensures that those who need to review it can find it.
It also adds the changes to the list of things to do before the next 

Usually you have to sign and submit a Contributor License Agreement form:

Depending on the source of the changes, you need either the individual 
or corporate form.

Regards, Kenneth Skovhede, GEOGRAF A/S

Gabriele Monfardini skrev:
> Hi all,
> we've customized and extended a little bit some php files used for basic layout.
> All modifications are very trivial, so I'm wondering if they could be
> evaluated for possible inclusion in future releases.
> All attached unified diff files refer to <file>_20100226.php (the
> original one) and <file>.php (the modified one).
> I explain briefly the differences
> File: mapviewerphp/layerdefinitionfactory.php
>  - all path pointing to ../../viewerfiles should be corrected to ../viewerfiles
>  - CreateAreaRule has been extended to accept two more parameters,
> $strokeThickness and $strokeColor
>  - CreateLineRule has been extended to accept one more parameter,
> $strokeThickness
>   The two last modifications require to modify accordingly also the
> areaRule e lineRule templates (the following two files)
> File: viewerfiles/linerule.templ
> File: viewerfiles/arearule.templ
>  - added the required %s instead of hardcoded values
> File: mapviewerphp/legend.php
>  - Added a null parameter in BuildClientSideTree invocation, in order
> to avoid an annoying PHP notice "missing argument 7 in
> BuildClientSideTree invocation"
> File: viewerfiles/ajaxmappane.templ
>  - legendHeight initial value of 250px is too small if the number of
> layers is more than a few. We've changed to 500px, that leaves enough
> space for properties on common screen resolutions.
>  - we've extended the box in which symbol url data is retrieved from
> 2x2 to 5x5.
>   In our experience, users often complained that they are not able to
> click on symbols and this was usually due to very small cursor
> misplacement. This modification eases point selections (even for
> complex symbols whose "center" is not always obvious for users).
> Finally, in our machines we've set
>   var us = false;
> in order to display meters instead of miles.
> A true default value is ok, but it would be better, if possible, to
> read this value from some config file.
> Regards,
> Gabriele
> ------------------------------------------------------------------------
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals

More information about the mapguide-internals mailing list