# Specify label's value for each feauture

**URL:** <https://community.thinkgeo.com/t/specify-labels-value-for-each-feauture/5955>\
**Category:** WebForms\
**Created:** [September 29, 2011, 7:57am UTC](https://community.thinkgeo.com/t/specify-labels-value-for-each-feauture/5955 "2011-09-29T07:57:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigi](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/a587f6/32.png) [@gigi](https://community.thinkgeo.com/u/gigi)\
**Post date:** [September 29, 2011, 7:57am UTC](https://community.thinkgeo.com/t/specify-labels-value-for-each-feauture/5955/1 "2011-09-29T07:57:19Z")

</div>

&nbsp;Hello,

I'm&nbsp;trying&nbsp;to&nbsp;add&nbsp;an&nbsp;"InMemoryFeatureLayer"&nbsp;to&nbsp;my&nbsp;map,&nbsp;but&nbsp;I&nbsp;want&nbsp;to&nbsp;specify&nbsp;my&nbsp;own&nbsp;values&nbsp;of&nbsp;each&nbsp;feature&nbsp;label,&nbsp;without&nbsp;using&nbsp;the&nbsp;DFB&nbsp;file.&nbsp;So&nbsp;i'm&nbsp;looking&nbsp;for&nbsp;something&nbsp;like&nbsp;that&nbsp;"labeling&nbsp;(double&nbsp;x,&nbsp;double&nbsp;y,&nbsp;string&nbsp;texteValue)".

Thank&nbsp;you

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [September 29, 2011, 11:49am UTC](https://community.thinkgeo.com/t/specify-labels-value-for-each-feauture/5955/2 "2011-09-29T11:49:18Z")

</div>

Hi&nbsp;gigi,&nbsp;  
  
  
  
We&nbsp;don't&nbsp;have&nbsp;a&nbsp;function&nbsp;like&nbsp;your&nbsp;sample.&nbsp;  
  
  
  
You&nbsp;can&nbsp;add&nbsp;a&nbsp;column&nbsp;for&nbsp;labeling&nbsp;and&nbsp;then&nbsp;add&nbsp;defaultTextStyle.&nbsp;  
  
  
  
Here&nbsp;is&nbsp;some&nbsp;important&nbsp;code&nbsp;part:&nbsp;  
  
  
  
InMemoryFeatureLayer&nbsp;layer&nbsp;=&nbsp;new&nbsp;InMemoryFeatureLayer();&nbsp;  
  
layer.Open();&nbsp;  
  
layer.Columns.Add("label");&nbsp;  
  
layer.Close();&nbsp;  
  
  
  
  
  
Feature&nbsp;feature&nbsp;=&nbsp;new&nbsp;Feature();&nbsp;  
  
feature.ColumnValues.Add("label",&nbsp;"featureLabel");&nbsp;  
  
layer.InternalFeatures.Add(feature);&nbsp;  
  
  
  
layer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle&nbsp;=&nbsp;TextStyles.Country1("label");&nbsp;  
  
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel&nbsp;=&nbsp;ApplyUntilZoomLevel.Level20;&nbsp;  
  
  
  
  
  
  
  
Regards,&nbsp;  
  
  
  
Don
