MapTools.org

Re[2]: [maplab-users] embedded scalebar and MapBrowser

Wolfgang Lahr BGIV <bgiv@gmx.de>
Mon, 17 Mar 2003 12:47:30 +0100
Hallo Daniel,

Friday, March 14, 2003, 4:13:04 PM, you wrote:
DM> Wolfgang Lahr wrote:
>> 
>> there seems to be a problem with MapBrowser and embedded scalebars.
>> This is what I get when I try to load a mapfile:
>> 
>> Warning: MapServer Error in getSymbol():
>> (QUERYONLY):(76) in
>> C:\msapps\maplab-2.0-RC5\htdocs\common\wrapper\map_session.php on line 208
>> 
>> This is the scalebar section:
>> 

DM> I don't think that is directly related to using an embedded scalebar. 
DM> The problem would be around line 76, likely on the line that comes
DM> before the QUERYONLY keyword.  Please have a look there or send the
DM> relevant section of your mapfile, including line numbers if you can.

thanks for your reply.

Below is the relevant section of the mapfile that causes the error
msg. There is no "QUERYONLY" keyword. Furthermore, I'm experiencing this problem in
MapBrowser only. The file works fine on direct access via
MapServer/PHPMapScript. If I comment out line 65 it works; it works as
well if scalebar STATUS is ON or OFF. It is merely the STATUS EMBED that
MapBrowser doesn't seem to like.

63      SCALEBAR
64        STYLE 1
65        STATUS EMBED
66        POSITION LR
67        IMAGECOLOR 255 255 255
68        TRANSPARENT OFF
69        LABEL
70          COLOR 0 0 0 
71          SIZE SMALL
72        END
73        SIZE 175 5
74        COLOR 0 0 0
75        BACKGROUNDCOLOR 255 255 255
76        OUTLINECOLOR 0 0 0
77        UNITS meters
78        INTERVALS 1
79      END   #SCALEBAR



This archive was generated by Pipermail.