POST
|
Dear Gurus! After choosing "Select elements" tool can I get access to the event when the selection is finished in order to handle the selection. Now I use axMapControl1_OnMouseUp event and check if current is "Select elements" tool , but I doubt that this is the best choice. I also tried to use SelectionChanged event of axMapControl.Map as IActiveViewEvents_Event, but when selected more, than one element, than interrupts occurs for each selected item, which is inconvenient.
... View more
07-21-2015
11:59 PM
|
0
|
0
|
2687
|
POST
|
Dear Gurus! After choosing "Select elements" tool and selecting area how do I get access to the envelope of selection?
... View more
07-21-2015
11:48 PM
|
0
|
0
|
2521
|
POST
|
There are exists instrument - "Select elements" in standart tools for selecting elements and "Identify" tools to select features in rectangle. But to combine these tools into one, i.e. highlight both the elements and properties, I would like to understand how to obtain the polygon (rectangle), using the above mouse actions, and then to find features and elements inside it (just the same as with Draw object in silverlight).
... View more
07-21-2015
04:43 AM
|
0
|
0
|
203
|
POST
|
I will explain the problem, required the following. User click the point on the map, moving the mouse without releasing the button, draw the rectangular polygon. After releasing the button - all elements, which fall into a rectangle - become selected. I wonder - how to draw a polygon. In WPF , silverlight the problem is solved with "Draw" object.
... View more
07-21-2015
12:47 AM
|
0
|
1
|
203
|
POST
|
Dear Gurus! Can't anybody help to find - how to implement graphic elements selection similarly with the "i" instrument in arcmap?
... View more
07-20-2015
08:02 AM
|
0
|
2
|
2674
|
POST
|
May be with IGraphicsContainer.LocateElementsByEnvelope method? Any other ideas?
... View more
07-16-2015
05:14 AM
|
1
|
0
|
170
|
POST
|
Dear Gurus! How to make spatial queries for elements. For example, I have some graphic container (IGraphicsContainer) with elements (IElement). Elements are created from x,y-table. Is there method to retrieve elements from some circle area around the point? (Similarly, for example, finding features within a polygon)
... View more
07-16-2015
05:04 AM
|
0
|
1
|
2680
|
POST
|
It looks like the problem is solved with the help of CustomProperty http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/CustomProperty_Property/001200000471000000/
... View more
07-16-2015
02:26 AM
|
0
|
0
|
196
|
POST
|
Dear Gurus! I have a few dozen tables with x,y coordinates. Should be displayed any table elements on the map, and when you click on the symbol of the element - to display the fields values. Currently I do it in the WPF(silverlight) with using arcgis server. How this is done in arcObject. Can I join attributes to graphic elements?
... View more
07-16-2015
12:37 AM
|
0
|
1
|
2734
|
POST
|
I want to create several views with the same Map element for different task. I am using Prism and want to be able to load views in the different regions with the same parameteres of the map. Can I do it and how if it is possible?
... View more
06-30-2015
07:47 AM
|
0
|
0
|
162
|
POST
|
Dear Gurus! Unexpected problem. For some operations I decide to show new tab with copy of the Map element from the current tab (in the tabControl). <esri:Map x:Name="MyMap" Background="White" WrapAround="true"
Extent="3200000,8500000,4250000,10130000">
<esri:OpenStreetMapLayer ID="OSMLayer" Style="Mapnik" />
<esri:ArcGISDynamicMapServiceLayer ID="Карта РК"
Url="http://myServer:6080/ArcGIS/rest/services/karelia/MapServer" />
<esri:GraphicsLayer ID="MyGraphicsLayer" MouseLeftButtonDown="GraphicsLayer_MouseLeftButtonDown" />
</esri:Map> And want to set centerPoint and resolution from the first tab. In the next event <i:Interaction.Triggers>
<i:EventTrigger EventName="Loaded">
<i:InvokeCommandAction Command="{Binding SetMapRefCommand, Mode=OneWay}"
CommandParameter="{Binding ElementName=MyMap,Mode=OneWay}" />
</i:EventTrigger>
</i:Interaction.Triggers> as follows in the ViewModel for this control public void SetMapRef(object item)
{
myMap = (Map)item;
MapModule.ViewModels.MapViewModel.centerAndZoom(myMap, currentCentrPointFromFirst, MapResolutionFromFirst);
} Where centerAndZoom procedure is public static void centerAndZoom(ESRI.ArcGIS.Client.Map map, ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint, double resolution)
{
double ratio = 1.0;
if (map.Resolution != 0.0)
ratio = resolution / map.Resolution;
if (ratio == 1.0)
map.PanTo(mapPoint);
else
{
ESRI.ArcGIS.Client.Geometry.MapPoint mapCenter = map.Extent.GetCenter();
double X = (mapPoint.X - ratio * mapCenter.X) / (1 - ratio);
double Y = (mapPoint.Y - ratio * mapCenter.Y) / (1 - ratio);
map.ZoomToResolution(resolution, new ESRI.ArcGIS.Client.Geometry.MapPoint(X, Y));
}
} But it does not work. When I do it from the click button Event - all works fine. I can't understand - what is the reason... How to fix?
... View more
06-30-2015
07:01 AM
|
0
|
1
|
3018
|
POST
|
Yes, I get information from the other group, especially for this subject .NET and the Esri JavaScript API
... View more
06-30-2015
06:49 AM
|
0
|
0
|
86
|
POST
|
Sorry, I found it How I can download JavaScript API ?
... View more
06-29-2015
07:21 AM
|
0
|
0
|
477
|
Title | Kudos | Posted |
---|---|---|
1 | 07-16-2015 05:14 AM | |
1 | 06-29-2015 07:38 AM | |
2 | 06-29-2015 06:51 AM | |
1 | 06-29-2015 06:36 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|