![]() See why the Pro-Line In ground became one of the highest selling in ground rectangle trampolines ever manufactured. ![]() Introducing Europe's finest premium in ground rectangle trampoline! Designed in the Netherlands, the Pro-Line Avyna trampoline offers amazing performance, high quality engineering with European style. Var bottomLeft = MapPointBuilder.CreateMapPoint(xMin, yMin, displaySpatialReference) ī = yMax2 ī = yMin2 ī = xMax2 ī in-ground trampoline solution. Var topRight = MapPointBuilder.CreateMapPoint(xMax, yMax, displaySpatialReference) Create MapPoints with desired SpatialReference from Map-Coordinates Var displaySpatialReference = SpatialReferenceBuilder.CreateSpatialReference(31466) I changed SketchOutput to Map instead of Screen.Īnd then convert the geometries coordinates to the desired spatial Reference as follows: Ok guess I found also a solution that for but I am unsure if thats the correct way. When I exchange the daml-ID of my custom tool with another one from esri, like "esri_mapping_selectByRectangleTool", then the tool is changed and I directly can draw a selecting rectangle on the map. So basically the tool can be found, but not executed. The daml-ID seems to be correct, because in ccmd I can see the custom tooltip defined in the daml of the tool. There seems to be something wrong in the way I am doing. In the second approach I can see while debugging that CanExecute results to false. Var qf = new QueryFilter() ") įor (int i = 0 i CanExecute results to falseĬurrentTool = FrameworkApplication.CurrentTool ĪctiveTool = FrameworkApplication.ActiveTool go through all feature layers and do a spatial query to find featuresįoreach (var featOids in featuresObjectIds) getFeatures returns a dictionary of featurelayer and a list of Object ids for eachĭictionary> featuresObjectIds = mv.GetFeatures(geometry) Get the features that intersect the sketch geometry. Protected override async Task OnSketchCompleteAsync(Geometry geometry) Protected override Task OnToolActivateAsync(bool active) ![]() SketchOutputMode = SketchOutputMode.Screen SketchType = SketchGeometryType.Rectangle Public class CoordinatesByRectangleMapTool : MapTool This also is copied from the sample mentioned above but just renamed and relocated in namespace: This is the Tool I just placed between our usual code. I added my tool to the daml as follows based on the tool defined here:Īpplication\Images\Light\earthquake32.png I tried with another esri-tool which works. If not, maybe there is another way to achieve getting the coordinates from a button-click within my custom usercontrol? It is very difficult to find any documentary about MapTools so I am unsure whether it even is possible to call a MapTool like I wish here. The thing is, that my VS cannot resolve symbol tool. Identify features on the current map using a circular sketch. I tried adding the corresponding XML of the MapTool to my userControl (instead of button which is there as placeholder). As said I want to be able to have the click inside on of my custom usercontrols. The problem with this and all other samples I found so far about MapTool or SketchTool is that they all are added directly to the AddIn-Tab. I found this sample which does almost what I found another thread you told that you posted that sample. After MouseRelease the coordinates of the drawn rectangle are gathered and shown in the dialog. On Click the user shall be able to draw a rectangle directly on the map. Within this dialog the user shall be able to click a button. I have an AddIn where the user gets a dialog to do some Stuff.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |