[ka-Map-users] kaLegend image size problem...

Nickolas Simard nsimard at madie.ca
Fri Sep 14 13:55:41 EDT 2007


Hi everyone


 

I’m currently working on a ka-Map! Applications that has quite a good load
of data and therefore the legend has many groups.

 

Here’s the problem: on some IE 6 version (occurs precisely on
6.0.2900.2180.xpsp_sp2_rtm.040803-2158, but not on
6.0.2900.2180.xpsp_sp2_gdr.070227-2254), the generated image does not
appears as it should and as it does on FX 2.x and IE 7. This bug does not
occurs on ALL groups, but only on some of them.

Let me show you a visual: http://www.madie.ca/ztransferts/kalegend_bug.gif

 

Here’s the mapfile part for the “Compilation RAIF” group.

# Start of Layer compilation_raif.shp

#

LAYER

         NAME "Compilation RAIF"

         GROUP "Compilation RAIF"

         TYPE POLYGON

         STATUS OFF

         DATA "tpi/compilation_raif.shp"

         PROJECTION

         "init=epsg:2950"

         END 

         MAXSCALE 1000001

         MINSCALE 1

         CLASSITEM "TRAV_INTER"

         CLASS

                   EXPRESSION "CPRS"

                   NAME "CPRS"

                   STYLE

                            COLOR 255 25 150

                  END

         END

         CLASS

                   EXPRESSION "Coupe de régénération"

                   NAME "Coupe de régénération"

                   STYLE

                            COLOR 255 25 150

                   END

         END

         CLASS

                   EXPRESSION "Coupe partielle"

                   NAME "Coupe partielle"

                   STYLE

                            COLOR 128 64 0

                   END

         END

         CLASS

                   EXPRESSION "Dégagement de plantation"

                   NAME "Dégagement de plantation"

                   STYLE

                            COLOR 255 150 150

                   END

         END

         CLASS

                   EXPRESSION "Préparation terrain"

                   NAME "Préparation terrain"

                   STYLE

                            COLOR 0 200 0

                   END

         END

         CLASS

                   EXPRESSION "Scarifiage"

                   NAME "Scarifiage"

                   STYLE

                            COLOR 0 125 0

                   END

         END

         CLASS

                   EXPRESSION "Éclaircie commerciale"

                   NAME "Éclaircie commerciale"

                   STYLE

                            COLOR 255 128 32

                   END

         END

         CLASS

                   EXPRESSION "Éclaircie précommerciale"

                   NAME "Éclaircie précommerciale"

                   STYLE

                            COLOR 255 0 255

                   END

         END

END # Layer

 

I’m wondering if there is anything wrong with the apps


Another detail that might be of interest, when I copy the image link
(***/legend.php?map=tpi&scale=1000000&g=Compilation RAIF) on IE 6, the
browser tries to download the file, eventhough the header clearly indicate a
png file


 

kaLegend.js file version is ”kaLegend.js,v 1.37 2006/10/25 01:48:05”

 

Thanks in advance for your support.

Nickolas Simard
Programmeur

madie solution publicité
418 548-5556 poste 45  .  1 866 776-0007 
2655, boul. du Royaume, Bureau 600
Jonquière (Québec) G7S 4S9
www.madie.ca

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070914/86ae24d2/attachment.html


More information about the ka-Map-users mailing list