Labelling issue

4 messages Options
Embed this post
Permalink
LGS

Labelling issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi Guys,

 

I have a field in my layer that is for Lake Names “Freds Lake”. I would like to have it label as “Lake” being returned to the next line. I have this statement but I am getting no where.

 

Concat(NAME, concat("\n", NAME))

 

 

Trevor Robar

Landmark Geographic Solutions

www.gissolutions.ca

 


_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Andy Morsell

RE: Labelling issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Try using single quotes instead of double quotes around your string constants.   In your below example you are going to get:

 

Freds Lake

Freds Lake

 

Andy Morsell, P.E.

Spatial Integrators, Inc.

47° 46' N 116° 49' W

www.SpatialGIS.com

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of LGS
Sent: Wednesday, November 04, 2009 4:36 PM
To: [hidden email]
Subject: [mapguide-users] Labelling issue

 

Hi Guys,

 

I have a field in my layer that is for Lake Names “Freds Lake”. I would like to have it label as “Lake” being returned to the next line. I have this statement but I am getting no where.

 

Concat(NAME, concat("\n", NAME))

 

 

Trevor Robar

Landmark Geographic Solutions

www.gissolutions.ca

 


_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Andrew DeMerchant

Re: Labelling issue

Reply Threaded More More options
Print post
Permalink
In reply to this post by LGS
Some javascript/style in this post has been disabled (why?)
I'm not sure you can do that - you'd have to have the label code look for a space and replace it with a \n...but like I said, I'm not so sure that you can do that.

Andrew

On 11/4/2009 8:35 PM, LGS wrote:

Hi Guys,

 

I have a field in my layer that is for Lake Names “Freds Lake”. I would like to have it label as “Lake” being returned to the next line. I have this statement but I am getting no where.

 

Concat(NAME, concat("\n", NAME))

 

 

Trevor Robar

Landmark Geographic Solutions

www.gissolutions.ca

 

_______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users

--
Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470

GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6



This e-mail message (including attachments, if any) is confidential and may be privileged. Any unauthorized distribution or disclosure is prohibited.  Disclosure to anyone other than the intended recipient does not constitute waiver of privilege.  If you have received this e-mail in error, please notify us and delete it and any attachments from your computer system and records.
------------------------------------------------------
Ce courriel (y compris  les pièces jointes) est confidentiel et peut être privilégié.  La distribution ou la divulgation non autorisée de ce courriel est interdite.  Sa divulgation à toute personne autre que son destinataire ne constitue pas une renonciation de privilège.  Si vous avez reçu ce courriel par erreur, veuillez nous aviser et éliminer ce courriel, ainsi que les pièces jointes, de votre système informatique et de vos dossiers.

_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Martin Morrison

RE: Labelling issue

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

You should be able to.  Does TRANSLATE(NAME,' ','\n'')  work in MapGuide like it does in Map?

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew DeMerchant
Sent: Thursday, November 05, 2009 8:22 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Labelling issue

 

I'm not sure you can do that - you'd have to have the label code look for a space and replace it with a \n...but like I said, I'm not so sure that you can do that.

Andrew

On 11/4/2009 8:35 PM, LGS wrote:

Hi Guys,

 

I have a field in my layer that is for Lake Names “Freds Lake”. I would like to have it label as “Lake” being returned to the next line. I have this statement but I am getting no where.

 

Concat(NAME, concat("\n", NAME))

 

 

Trevor Robar

Landmark Geographic Solutions

www.gissolutions.ca

 

 
 
_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
  

 

--

Andrew DeMerchant
Computer Technologist
ph.1-877-2GEMTEC x.163
fax 506-453-9470

GEMTEC Limited
191 Doak Road
Fredericton, NB, Canada
E3C 2E6

 



_______________________________________________
mapguide-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapguide-users