[mapguide-users] Redline Text
Beverage
Bev.Love at capita.co.uk
Wed Apr 29 11:42:03 EDT 2009
Perfect!!!
That worked a treat - thanks.
Bev
Dave Wilson wrote:
>
> There is a DeleteResource API command you can use if you know the name of
> the resource.
>
> Dave
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Beverage
> Sent: Wednesday, April 29, 2009 8:47 AM
> To: mapguide-users at lists.osgeo.org
> Subject: Re: [mapguide-users] Redline Text
>
>
> Well I managed to get the code working, and can add text to the map as a
> label for a point. But have a bit of an issue as a result.
>
> Because a user maybe adding more than one block of text to the map, I am
> creating a unique feature source in the Library for each one (rather than
> reusing one, as the buffer code does), but as a result I am now getting
> loads of feature sources being created.
>
> Does anyone know of anyway I can delete these feature sources (in code).
> What I want to do is remove the layer from the map, and at the same time
> delete any feature sources from the library - they all start with the same
> word but then have a time stamp on the end to make them unique.
>
> Any help would be really appreciated =)
>
> Thanks,
>
> Bev
>
>
> Kenneth Skovhede, GEOGRAF A/S wrote:
>>
>> If your data has a spare column (or you can add one), simply set the
>> Feature Label to use this column, and
>> you can update the column data to change the text.
>>
>> If you have no spare columns, you can add a new FeatureSource (or table
>> in a database) that has a text column.
>> Then insert points that correspond to the desired location (pehaps the
>> feature centroid), and update text as you like.
>>
>> If you are writing this from scratch, take a look at the buffer code, as
>> it shows how to add a (temporary) feature source,
>> and corresponding layer.
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>> Love, Bev (Capita Symonds) skrev:
>>>
>>> Afternoon,
>>>
>>>
>>>
>>> I'm hoping someone will be able to help me out.
>>>
>>>
>>>
>>> I am trying to create some functionality which will allow the user to
>>> add text to a layer, something similar to how a user can draw a line
>>> on the map.
>>>
>>>
>>>
>>> Does anyone know if this is at all possible, and if so does anyone
>>> know of any example code out there??
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>> Bev
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> This email and any attachment are intended solely for the addressee,
>>> are strictly confidential and may be legally privileged. If you are
>>> not the intended recipient any reading, dissemination, copying or any
>>> other use or reliance is prohibited. If you have received this email
>>> in error please notify the sender immediately by email and then
>>> permanently delete the email. Copyright reserved.
>>>
>>> All communications, incoming and outgoing, may be recorded and are
>>> monitored for legitimate business purposes.
>>>
>>> The security and reliability of email transmission cannot be
>>> guaranteed. It is the recipient's responsibility to scan this e-mail
>>> and any attachment for the presence of viruses.
>>>
>>> The Capita Group plc and its subsidiaries ("Capita") exclude all
>>> liability for any loss or damage whatsoever arising or resulting from
>>> the receipt, use or transmission of this email.
>>>
>>> Any views or opinions expressed in this email are those of the author
>>> only.
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
> --
> View this message in context:
> http://n2.nabble.com/Redline-Text-tp2663424p2740977.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/Redline-Text-tp2663424p2741357.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list