[mapguide-users] Map Layers Transferring Between Users

Paul Spencer pagameba at gmail.com
Thu Jul 26 11:11:27 EDT 2007


Hi pD,

it sounds as if you are modifying something in the Library:// rather  
than making a copy in the Session:// and modifying it there (either  
your Layer or FeatureSource I'd guess).  Perhaps you could describe  
what the code does (in general terms) and we might be able to point  
out where you should be using the Session instead.

Cheers

Paul

On 25-Jul-07, at 4:23 PM, passionlessDrone wrote:

>
> Hello friends -
>
> We've created a piece to dynamically add layers and points based on  
> human
> input.  If the user submits input for which there is no matching  
> criteria,
> we make no modifications to the map, but I still call
> GetMapFrame().Refresh().   Great.  However, if two humans are  
> running the
> report, the following can happen:
>
> 1) User A runs a report with successful criteria that returns with  
> points
> and new layers.  They are displayed correctly on the map at refresh  
> time.
> 2) User B runs a report with successful criteria that returns with  
> points
> and new layers.  They are displayed correctly on the map at refresh  
> time.
> 2) User A runs a report without succesful crieteria that makes no
> modifications to the base map.
> 3) User A's map refreshes, and he sees the new layers / points that  
> User B
> sees.
>
> User A and User B are logged in as separate entities and debugging  
> validates
> that they have separate session id values.   The layer names are  
> the same
> between the two users.
>
> I suppose I could just write something that when no criteria match  
> I get the
> map, get the layers, and strip out any that fit the criteria that  
> the layers
> that he 'shouldn't' see, but this is more like hiding the problem than
> understanding it and fixing it.  I guess I'm also not sure if this  
> might
> impact another user.
>
> Any insight is greatly appreciated!
>
> -pD
>
>
> -- 
> View this message in context: http://www.nabble.com/Map-Layers- 
> Transferring-Between-Users-tf4147718s16610.html#a11799272
> 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

+-----------------------------------------------------------------+
|Paul Spencer                          pspencer at dmsolutions.ca    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+







More information about the mapguide-users mailing list