Hello,


>Hi Map Lovers,
> Iam using MapX V 3 . I had created a Geoset and I had to label the
>particular layer with feature name  (say the names of the hotels ) , but
>this field is not showing up in the geoset layers dialog.
> I have also indexed the particular field which needs to be labelled
>. Iam not able to figure out whats the problem. 
> - I just wanted to lable a particular layer in the geoset of MapX
>but the layer with options says "none" !!


You have to add dataset to the layer you are going to label - before adding the 
dataset,
MapX does not know anything about the data stored in a MapInfo table which builds up
the layer. Here is an example of adding the dataset and setting up the label 
properties:

map1.datasets.add miDataSetLayer, map1.Layers("canada"), "Canada"
set map1.Layers("Canada").labelproperties.dataset = map1.datasets("Canada")
set map1.Layers("Canada").labelproperties.datafield = map1.datasets("Canada").fields(1)

This example adds the dataset to the layer Canada, using the attributive part of the 
Canada
table as the source of the data. Then, it sets the dataset and datafield properties of 
the
LabelProperties object. Now, if you will check Auto Label checkbox in layer control - 
first
field of the Canada table will be used to label the objects.

Dmitry

Dmitry Bogdanov
GIS Department Manager
Kiev Software Factory Ltd.
room 46 9/12 Baumana St, Kiev, Ukraine 252190
Tel: (380 44) 442-6077; (380 44) 443-7925
Fax: (380 44) 443-7925
Internet: http://www.ksf.kiev.ua


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to