POST
|
Is there an example out there that shows how to create a custom widget for Angular (one which extends the Widget class?) I have been trying to create a custom widget which extends Widget on Angular (6.0) with no success There is an example in the ArcGIS API for Javascript (Using widgets with AngularJS | ArcGIS API for JavaScript 4.8 ), but it is for AngularJS (1.x).
... View more
07-30-2018
02:45 PM
|
1
|
2
|
2867
|
POST
|
MapView 100.1 WPF I am using Raster and Vector Tile Layers, and the scales are not out of range when the issue is occuring WebMercator is the projection I do not have a test application that can recreate the issue, but I can provide other notes below which may help: For this scenario, when I say I'm calling SetViewpointCenterAsync, I am calling it from another method called CenterMapAsync. async Task<bool> CenterMapAsync(double latitude, double longitude) { //run other stuff... return await mapView.SetViewpointCenterAsync(new MapPoint(longitude, latitude, SpatialReferences.Wgs84), _mapView.MapScale); } When I call CenterMapAsync from our test application it always works; it is when it's being used in our cilent application that it occasionally does not center (So I personally have never been able to recreate it. I have seen screenshots from when this happens when other people recreate it, and the logs when this occurs show that it's being called and SetViewpointCenterAsync is completing successfully).
... View more
01-03-2018
03:25 PM
|
0
|
2
|
1715
|
POST
|
Yes, I am always using the WGS84 spatial reference...I have not tried to use the SetViewpoint method yet
... View more
01-03-2018
12:41 PM
|
0
|
4
|
1715
|
POST
|
Hello, In my application I call SetViewpointCenterAsync(MapPoint center, double scale), with scale being the current scale of the map. Most of the time it centers correctly on the MapPoint I pass in, but there are times where it centers on a MapPoint that's different from the one I passed in. I can't see a common trend when it's different - sometimes the point it's centered on is north, sometimes is south, sometimes is west, sometimes is southwest, etc. of the MapPoint it's supposed to be centered on. At first I thought maybe it was being interrupted by another view navigation (thus returning false) which was causing this, but I have verified in my logs that the method is still returning true when not centering correctly, which I interpret as the set view animation is completing and thus should be centered correctly. I have also verified that in these cases there are not other MapView methods being called around the same time, which could also potentially cause this issue. I was wondering if there's perhaps a known bug that causes SetViewpointCenterAsync correctly (doubtful, but want to confirm since I have been looking into this for awhile and am stumped why it's not working sometimes). If not, could there be something wrong with how/when I'm calling it, or the parameters I'm passing in?
... View more
01-03-2018
08:33 AM
|
0
|
9
|
2066
|
POST
|
Using ArcGIS Runtime SDK for .NET - Version: 100.1.0.0, I am creating label definitions for various layers, using this documentation: labelingInfo | ArcGIS for Developers However, I'm unable to determine if there's any property where I can add a leader to the label. Right now, the label is just a rectangle(attached) - I'd like it to have a leader from the left side as part of the label (attached a leader too for better understanding of what I'm talking about). Is this possible using the labelingInfo object, and if so, how do I do it?
... View more
11-21-2017
02:13 PM
|
2
|
0
|
664
|
POST
|
Using ArcGIS Runtime SDK for .NET - Version: 100.1.0.0, I am trying to use the GeoView.ViewInsets property to properly center a map point when a panel pulls out from the left. I am doing this by setting mapview.ViewInsets = new Thickness(panelWidth, 0, 0, 0), with mapView being a MapView. However, when I call await mapView.SetViewpointCenterAsync after setting the ViewInsets, it is still centering the map point on the map as if the panel isn't there. When I put a breakpoint there I can see that the ViewInsets have been set to what I want, and even when I change different parts of the ViewInsets it still centers in the same place. Is SetViewpointCenterAsync the correct method to call if I want to center a point properly, taking the ViewInsets into account, or is there a different method I should be using? If it is the proper method, what else could be causing this not to center correctly? I’ve attached a rough illustration of what’s going on. The black represents the panel The green represents the map The red dot represents the map point that should be centered in relation to the map area
... View more
11-07-2017
09:33 AM
|
0
|
1
|
834
|
Title | Kudos | Posted |
---|---|---|
1 | 07-30-2018 02:45 PM | |
2 | 11-21-2017 02:13 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|