--- In [email protected], [email protected] wrote:
>
> Hi:
> > ... So, if the user makes a selection in one of two maps, the
> selection> will be made in the two maps because the layer names are
> equals.
> It's not because the layer names are equal, but rather, because
> thelayers are one and the same.
> Selection sets are by layer, not by map.  So, by necessity, they "cross"
> anyand all open maps.  If you have the "Provinces" layer open in three
> maps,and you select it in one map, you select it in all maps.  This does
> notmean that the style or status of the selection set has to be the same
> inall maps.
> Many GISDK functions that accept a layer and/or selection set as a
> parameterlet you specify the specific map in question.
> Example:
> SetFillColor("Map_Three|Provinces|Rural")
> Similarly, most of these functions apply to the current map by default,
> so theireffect can be constrained by explicitly setting the current map.
> So for example, to effect a visible change in a selection set in onlyone
> map, you could go through your maps, and set the "display status" to
> be"Inactive" for all but the desired map:
> lyr = "Provinces"my_map = "Map_Three"OpenMaps = GetMaps()for i = 1 to
> OpenMaps[1].Length do    SetDisplayStatus(OpenMaps[1][i] + "|" + lyr +
> "|Rural", "Inactive")    end
> // make the desire map's selection set
> 'Active'SetMap(my_map)SetDisplayStatus(lyr + "|Rural", "Active")
> The naming conventions for maps|layers|sets is documented in the
> GISDKon-line help under the topic, "Identifying Maps, Layers, and
> Selection Sets"
> Maptitude Mapping Software <http://www.caliper.com>  Group Moderator
> 
> 
> 
> --- In [email protected], Ivan Marcelo Ferreira
> <ivan.marcelo.ferreira@> wrote:
> >
> > I'm having some troubles when I try to open the same map twice.
> > I'm developing an application with GISDK and in some occasions the
> same map
> > will be open twice at the same time. So, if the user makes a selection
> in
> > one of two maps, the selection will be made in the two maps because
> the
> > layer names are equals.
> > Is there some solution to this problem? Or, if there isn't, how
> Maptitude
> > works with the layer names when the user open a map twice?
> >
>

I did what you suggest and now it's running well. 

Very thanks




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Maptitude/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Maptitude/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to