I believe you can refresh without a full reload of the map. How it behaves may 
also depend on other layers that also have labels that may be displaced as the 
new labels are recalculated.

I'm not 100% sure how you update the layer definition in the session other than 
update the layer_name resource that has the session appended to it in the 
session repository.

You can probably find an example in other mailings or the dev guide on how to 
do that.

Regards,
Dave

From: [email protected] 
[mailto:[email protected]] On Behalf Of Jonathan Rizzo
Sent: Wednesday, November 03, 2010 12:22 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Dynamic label size

Thanks,  I'll give that a try.  Can this be done without reloading the map?


From: [email protected] 
[mailto:[email protected]] On Behalf Of Dave Wilson
Sent: Tuesday, November 02, 2010 5:27 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Dynamic label size

The label size is set in the layer definition and for the most part based on 
the font size if I am not mistaken. You could implement a +/- on the toolbar 
which updates the layer definition to change the size by some fixed increment. 
Not sure if this is the best way, but it is one way.

Regards,
Dave

From: [email protected] 
[mailto:[email protected]] On Behalf Of Jonathan Rizzo
Sent: Tuesday, November 02, 2010 12:41 PM
To: [email protected]
Subject: [mapguide-users] Dynamic label size

Hello,

I am getting back in to MapGuide development after an extended hiatus.  I am 
trying to make changes to an application that I developed a long time ago, and 
I'm not exactly sure how to accomplish what I am trying to do.  I would like to 
allow the user to manipulate the size of a layer's labels.  Ideally, I would 
like to put a + and - icon on the toolbar which resizes the labels up or down 
by some fixed amount.  Is this possible?  Can anybody point me to an existing 
sample or bit of code that that shows how this would be done?  Any assistance 
that you can offer would be greatly appreciated.  Thanks!

Jon
This electronic transmission may contain confidential, proprietary or 
privileged information.  No confidentiality or privilege is intended to be 
waived or lost by erroneous transmission of this message.  If you receive this 
message in error, please notify the sender immediately by return email and 
delete this message from your system.  Disclosure, use, distribution or copying 
of this message, any attachments thereto or their contents is strictly 
prohibited.
This electronic transmission may contain confidential, proprietary or 
privileged information.  No confidentiality or privilege is intended to be 
waived or lost by erroneous transmission of this message.  If you receive this 
message in error, please notify the sender immediately by return email and 
delete this message from your system.  Disclosure, use, distribution or copying 
of this message, any attachments thereto or their contents is strictly 
prohibited.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to