POST
|
You can also adapt building-controls-for-ArcGISRuntime-dotnet/HighlightOverlay.cs at master · anttikajanus/building-controls-for-ArcGISRunt… or similar approach to build custom highlighter.
... View more
06-22-2018
03:59 AM
|
0
|
0
|
634
|
POST
|
I agree that the requirement of selecting the outline to move a shape is an extremely confusing and difficult to use UX. I really hope this can be changed to work from the fill in a future update. I wasted 3 hours today trying to figure out why I was not able to move my polygons and then happened to stumble upon this post. At the very least it would be nice to see the API/docs or samples updated with some information about the expected UI workflow for moving geometries.
... View more
05-14-2018
02:42 PM
|
0
|
0
|
3592
|
POST
|
Dear Marcelo, I implement the code below for GeoViewTapped event.Behaviour class for tabbed event. using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; using Esri.ArcGISRuntime.Xamarin.Forms; using Xamarin.Forms; using System.Diagnostics; using Esri.ArcGISRuntime.Geometry; namespace MasterDetail.Behaviors { class ClsCustomBehviour : BehaviorBase<MapView> { public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(ClsCustomBehviour)); public ICommand Command { get { return (ICommand)GetValue(CommandProperty); } set { SetValue(CommandProperty, value); } } protected override void OnAttachedTo(MapView bindable) { base.OnAttachedTo(bindable); bindable.GeoViewTapped += this.TabbedPointAction; } /// <summary> /// /// </summary> /// <param name="bindable"></param> protected override void OnDetachingFrom(MapView bindable) { base.OnDetachingFrom(bindable); bindable.GeoViewTapped -= this.TabbedPointAction; } private void TabbedPointAction(object sender, Esri.ArcGISRuntime.Xamarin.Forms.GeoViewInputEventArgs e) { if (this.Command != null) { var mapClickPoint = e.Location; if (this.Command.CanExecute(mapClickPoint)) { this.Command.Execute(mapClickPoint); } } } } } ////View XAML//// <esriUI:MapView Map="{Binding MyMap}" GraphicsOverlays="{Binding GraphicsOverlays}"> <esriUI:MapView.Behaviors> <bh:SetMapViewViewportBehavior Viewpoint="{Binding Viewpoint}" /> <bh:MapViewViewpointChangedBehavior Command="{Binding UpdateViewpointCommand}" /> <bh:ClsCustomBehviour Command="{Binding TabbedClickCommand}" /> </esriUI:MapView.Behaviors> </esriUI:MapView> above is my view. ///View MODEL CLASS // TabbedClickCommand = new DelegateCommand<MapPoint>(tabbedPoint); TabbedClickCommand = new DelegateCommand(tabbedPoint); private void tabbedPoint() { Debug.WriteLine("Hello"); throw new NotImplementedException(); } when i click on the map the code run it comes into tabbedpoint event.and print hello.But when i execute like TabbedClickCommand = new DelegateCommand<MapPoint>(tabbedPoint); private void tabbedPoint(MapPoint obj) { throw new NotImplementedException(); } my code not execute.i could not find the way how to execute the below function.Because i need clicked location point for further process.Please help me.how to solve. Thanks again. Waiting........................
... View more
07-17-2017
01:37 AM
|
0
|
0
|
1708
|
POST
|
Funny. I made the same mistake the first time too 🙂 I wish there was a way we could hide the native MapView control when using Forms to avoid this confusion, but AFAIK that can't be done (the Xamarin.Forms MapView control actually uses the native MapView control internally, so it's really just a cross-platform wrapper for all the different platform controls).
... View more
06-01-2017
08:54 AM
|
3
|
0
|
1342
|
POST
|
Hi Alejandro, Here is the exact code/markup that I use in my project and it works. To avoid having the MapView added back to the view at a random spot I put it is a StackLayout which guarantees its always going back where it was originally. You may need to save a reference to the _mapView object in the OnDisappearing() event but I didn't need to. <!-- PART 3/3 of fix for esriUI:MapView never loading on Android see OnAppearing() --> <StackLayout x:Name="_mapContainer" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All"> <esriUI:MapView x:Name="_mapView" HorizontalOptions="FillAndExpand" Map="{Binding Map}" VerticalOptions="FillAndExpand"/> </StackLayout> protected override void OnAppearing() { // PART 1/3 of Fix for second ESRI never loading on Android #if __ANDROID__ if (_mapContainer.Children.Contains(_mapView) == false) _mapContainer.Children.Add(_mapView); #endif base.OnAppearing(); } protected override void OnDisappearing() { // PART 2/3 of Fix for second ESRI never loading on Android #if __ANDROID__ if (_mapContainer.Children.Contains(_mapView)) _mapContainer.Children.Remove(_mapView); #endif base.OnDisappearing(); } Hope this helps Brian
... View more
09-08-2017
08:59 AM
|
0
|
0
|
1623
|
POST
|
You might be able to pull off a PCL using bait'n'switch, but you won't be able to access/expose any functionality of the underlying runtime, but need to wrap everything in PCL compatible types. However just note that bait'n'switch doesn't give you one binary for 'n' platforms, but gives you 'n+1' binaries, as opposed to a shared project giving you 'n' binaries (albeit you can then package them into a single nuget reference which would be the only way to really use bait'n'switch).
... View more
05-22-2017
02:30 PM
|
0
|
0
|
260
|
POST
|
Note that you're getting two MapView controls: You get the native Android Esri.ArcGISRuntime.UI.Controls.MapView control which is to be used in native non-forms Xamarin Android apps, and you get Esri.ArcGISRuntime.Xamarin.Forms.MapView which should be used in Xamarin.Forms apps.
... View more
05-19-2017
11:18 AM
|
1
|
0
|
886
|
POST
|
You could do that. You just need to insert the map view. LayoutRootGrid.Children.Add(AppManager.Instance().SimilationMap()); However I would recommend against that. You really should declare MapView in your app, and not your library. It's considered bad practice to create UI in code, rather than XAML Markup. Instead your library returns the Map, not the MapView. Your app should be creating the views, your libraries model/viewmodel data, and potentially declare custom controls you can add (through markup) to your app xaml. That also gives you binding support. Ie <esri:MapView Map="{Binding AppManagerViewModel.Map}" /> As a getting started reference, I'd encourage you to research the "MVVM" pattern. There's plenty of online presentations that can walk you through and give you a good basis on how to architect XAML-based apps. Lastly your Map and MapView are not sharable. A map can only be rendered in a single MapView at a given time (you can however move it to a different MapView), and you also can't render a visual element like the MapView in multiple places. And as stated earlier, none of this is supported in a server-context, so this would only be supported on a client-side. You could from the server end pass down the Map JSON representation, and then instantiate a map from that json.
... View more
05-23-2017
09:44 AM
|
0
|
0
|
969
|
POST
|
At this point yes, but it's on our backlog as a future enhancement.
... View more
05-23-2017
09:55 AM
|
0
|
0
|
409
|
POST
|
Thanks for the response Morten. Your support person was able to confirm that your code snippet does work with a few small modifications. We are content with waiting for your next release at this point.
... View more
06-06-2017
02:26 PM
|
0
|
0
|
585
|
POST
|
We've identified the rendering issue and will have it fixed in our upcoming release. Thank you for reporting this
... View more
05-19-2017
09:11 AM
|
0
|
0
|
503
|
POST
|
It wasn't removed. They just converged. You'll just use the LocatorTask, but instead of using an online Uri, you use a local uri. Ie var task = new LocatorTask(new Uri("file://c:/data/mylocator...");
... View more
05-16-2017
12:35 PM
|
0
|
0
|
394
|
POST
|
It's possible, but currently you will have to do the CSV parsing first yourself, then create a GraphicsOverlay and generate graphics that represents each row.
... View more
05-05-2017
11:53 AM
|
0
|
0
|
526
|
POST
|
Hi, I was experiencing the same kind of crash for about 22 months on a project. Recently, we have been using support from ESRI France. After investigating for a whole day, we found that the crashes disappeared by passing the RenderingMode from the GraphicsLayer/GraphicsOverlay to "Static" (instead of "Dynamic", by default) But this has a not insignificant impact because: the HorizontalTextAlignment of the TextSymbol is now forced to Center the values of XOffset/ Offset have to be reviewed because the reference is no longer the same idem if you use the rotation of the markers by changing the Angle I hope this information can help ... Regards, damien.
... View more
06-22-2017
04:56 AM
|
0
|
0
|
186
|
POST
|
I looked at your project settings, and you have all the architectures enabled, including the non-supported 64bit (We added a build error to Update 1 so this won't get you again): We do have 64bit support coming in a future update, but it needs some more work.
... View more
05-31-2017
11:07 AM
|
0
|
0
|
2044
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 3 weeks ago | |
1 | 04-11-2024 09:24 AM | |
1 | 3 weeks ago | |
1 | a month ago |
Online Status |
Offline
|
Date Last Visited |
a week ago
|