[mapguide-users] deleting feature source
Jackie Ng
jackie.ng at aecsystems.com.au
Wed Mar 19 03:06:54 EDT 2008
I see, why don't you store the feature source into the session repository as
well? Session-based resources are temporary and get cleaned up when that
particular session has expired.
- Jackie
Kencana wrote:
>
> Hi Jacky,
>
> I only want that particular user to see the marker added by themselves not
> other user's.
>
> Regards,
> Kencana Kesuma
>
>
> Jackie Ng wrote:
>>
>> Just to clarify, is this a shared feature source for temporary features?
>> You want other user's to see temporary features inserted by all users?
>>
>> What you could try to do is alter the feature class to include an extra
>> property: User
>>
>> When a user adds a temporary marker to the map, include that user's id as
>> part of the new feature.
>>
>> You can then hook onto the onunload javascript event to invoke a
>> server-side script to remove all features from that feature source where
>> the [User] is the ID of the user who just closed the web app.
>>
>> Hope that helps.
>>
>> - Jackie
>>
>>
>> Kencana wrote:
>>>
>>> Hi all,
>>>
>>> Is that possible to delete the feature source when user leave the map
>>> web app?
>>> Previously, I used one feature source to draw the temporary layer,
>>> however when there are more than 1 user using the map application at the
>>> same time, the marker will be either missing or it is pointed to another
>>> location. therefore, i decided to create one unique feature source for
>>> each user who visits the map app. it solves the missing marker issue,
>>> but i believe it is not the correct solution for this, as it keeps
>>> create new feature source it will take more server storage. Any idea for
>>> solving this problem?
>>>
>>> Thank you
>>>
>>> Regards,
>>> Kencana Kesuma
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/deleting-feature-source-tp16112200s16610p16138072.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list