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?
>