MapTools.org

[maplab-users] dropdown list and direct value entry

Jeff McKenna maplab-users <maplab-users@dmsolutions.ca>
Wed, 17 Jul 2002 15:16:06 -0400
Hi Peter,

This issue has been dealt with in the development version
(http://www2.dmsolutions.ca/webtools/maplab/maplab_dl.html).  This is what is
listed in the mapfile reference for the SIZE property of the LABEL object:

> SIZE [integer]|[tiny|small|medium|large|giant]

> Text size. Use "integer" to give the size in pixels of your TrueType font based
> label, or any of the other 5 listed keywords to bitmap fonts.

Our interface uses [integer] for the textbox, and
[tiny|small|medium|large|giant] for the drop-down list.  So we've rearranged the
LABEL object's interface in MapEdit so that the following is displayed for the
SIZE property:

Font size:[textbox](integer)   Or   Bitmap size:[dropdown]

We've also added javascript so that when a user selects from the dropdown and
applies the changes the textbox value is removed.  If a user then enters a value
in the textbox the dropdown value is removed.  Keep in mind that the textbox is
for truetype fonts and the dropdown-list is for Bitmap fonts.

I hope these changes make some sense to you and everyone else.


Jeff






"Bruton, Peter" wrote:
> 
> Hello;
> 
> There seems to be a problem with property specification for those properties
> that have both a drop-down list of preset values and direct entry through a
> text entry box.
> 
> I added a Label object to a class.  When I specified the Size property I
> selected one of the options (SMALL) from the drop-down list.  I decided to
> change the Size value by entering an integer value in the text entry box
> (20).  After clicking on the Apply Changes button, the integer value was not
> saved.  SMALL appeared in the text entry box.
> 
> All properties that have both the drop-down list and direct entry in the
> Label object form have the same behavior.
> 
> A work around does exist.  Integer values for Size can be entered directly
> in the map file via the Edit Source button.   After entering the Size value
> in integer format and pressing the Apply button, the Size in integers
> appears in the Label object's Size property.
> 
> Peter Bruton
> GeoAccess Division
> Canada Centre for Remote Sensing
> 615 Booth Street, Room 650
> Ottawa, Ontario, K1A 0E9, Canada
> telephone 1-613-947-0465
> fax 1-613-947-2410
> 



-- 

Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca/


This archive was generated by Pipermail.