|
POST
|
There is a sample to do that in CSharp : Xaml and Code behind. You can convert it to VBNet using a convert tool like http://converter.telerik.com/
... View more
09-07-2016
01:03 AM
|
0
|
0
|
1380
|
|
POST
|
You can change the visibility on and off using IsVisible property on all layers.
... View more
08-31-2016
01:38 AM
|
0
|
4
|
2272
|
|
POST
|
You can contact your distributor for the licensing. Also have a look to licensing documentation.
... View more
08-26-2016
05:02 AM
|
0
|
18
|
2445
|
|
POST
|
That should do the trick. If you hook into MapView.SpatialReferenceChanged do you see it being triggered? There might be different events run before that is set (ie. layerloaded) so just make sure that there is no errors on loading the layer.
... View more
08-26-2016
03:53 AM
|
0
|
1
|
1134
|
|
POST
|
I think that WebMap is working with a Map (2d) and not with a Scene (3d). Also note that when you are working with 3d data, you need to use SceneView (with a Scene). You should have two options here: 1) Create SceneView and Scene manually in code 2) Build your own deserialization from JSON that is returned from ArcGIS Portal Item and construct the Scene from that.
... View more
08-26-2016
02:57 AM
|
0
|
0
|
765
|
|
POST
|
Can you provide a repro with the layers that you are trying to use?
... View more
08-25-2016
03:53 AM
|
0
|
1
|
1001
|
|
POST
|
I would need to have more information what you are actually doing and what you mean with the previous comment to be able to give any more detailed answers for that. But basically the application needs to be licensed when it is deployed. Remember that if you have ArcGIS Online / Portal in your organization, you can sign in to license the app.
... View more
08-25-2016
03:14 AM
|
0
|
1
|
2445
|
|
POST
|
Ah, line segments doesn't have events since it's only one action. Ie. Polygons would raise the event. I take that the only way to fix LineSegment is to iterate through the Points collection and fix all the points. Not very convenient but might do the trick.
... View more
08-24-2016
06:27 AM
|
1
|
1
|
1957
|
|
POST
|
Just an idea what to test. You could override editor progress and fix the geometry in the event.
... View more
08-24-2016
04:59 AM
|
0
|
3
|
1957
|
|
POST
|
Hi, Unfortunately this is a bug in Windows 10 when running Windows Store 8.1 apps in different DPI settings. We have submitted support case to Microsoft for it. I'll have a look if we have update for this.
... View more
08-24-2016
02:59 AM
|
1
|
6
|
1957
|
|
POST
|
You can use MapView.MapBackground property. You can also set LineWidth to 0. MyMapView.MapBackground = new MapBackground() { Color = Colors.Yellow };
... View more
08-24-2016
02:46 AM
|
1
|
0
|
2972
|
|
POST
|
I think that you need to do some coding to achieve that. What you could do is to disable navigation model (MapView.InteractionOptions) from zoom ins and zoom outs and build your own handlers to handle that where you would use MapView.SetView(Async) with central point and scale.
... View more
08-24-2016
02:33 AM
|
2
|
1
|
1682
|
|
POST
|
Depending what is the extent that the user wants to download. If that is 'whole world' type of scenario then it will be hitting the limit. Where you are using MapViews extent, you can use custom polygon too. There are several approaches to this problem but I would start from the use case to see if it's really needed to get so large area to offline use. With large areas we hit challenges with very large tpk packages, device storage requirements etc. In future you can easily take large areas offline using vector basemaps but that's taking vectors offline is not supported at the moment. Some ideas / approaches to think and try - Restrict application to specific scale / extent so user uses application only on the area that is relevant (ofc if you need to work all over the world this wont work that well) - Use estimate tile cache size to determine if you need to split the request to multiple tpks / parts. For example split area into 4 segments and try to download those (this will need more than one layer to show the basemap and mechanism to handle multiple downloads / construction of layers dynamically based on the tpks available) - Pre-create tile caches to save the time to generate tiles on requests basis. You could store these for example in ArcGIS Online organization and then you could just analyse which packages are in the are that user wants and download only those to the client. (Needs more infrastructure and work upfront) - Use multiple tpks with different scale ranges to keep individual packages smaller. You can also use different areas for each of them. - If your application is based around specific locations / tasks to do in specific areas, you can generate tile packages around then that could be downloaded when the task is `accepted` in a client. There are probably more options but these came into my mind right from the bat. Hope one the approaches could work for you.
... View more
08-24-2016
01:48 AM
|
0
|
0
|
2164
|
|
POST
|
I agree that the documentation could be a bit more precise with this. We will have a look and see what we can do. To find more how to use ArcGIS Runtime, please have a look on the documentation Guide documentation API reference There is also a lot of videos available here. To license your application have a look on this section in guide.
... View more
08-24-2016
01:24 AM
|
0
|
3
|
4742
|
|
POST
|
It seems that cause here is setting MapView and Maps SpatialRefernce correctly. It is normally taken from the first layer but GroupLayer doesn't have one. Here is code that should work <esri:MapView x:Name="MyMapView"
LayerLoaded="MyMapView_LayerLoaded">
</esri:MapView> using Esri.ArcGISRuntime.Controls;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Hydrographic;
using System;
using System.Diagnostics;
using System.Windows;
namespace HydragraphicLayersDemo
{
public partial class MainWindow : Window
{
private HydrographicS57Layer _layer;
public MainWindow()
{
InitializeComponent();
// Force to use WebMercator which is normally taken from the first layer
var map = new Map()
{
SpatialReference = SpatialReferences.WebMercator,
InitialViewpoint = new ViewpointExtent(new Envelope(0, 0, 0, 0, SpatialReferences.WebMercator))
};
// Create hydrographic layer and set it to the layers collection
_layer = new HydrographicS57Layer()
{
ID = "US1WCO1M",
Path = @"C:\Temp\HydragraphicLayersDemo\HydragraphicLayersDemo\bin\Debug\us1wc01m\US1WC01M.000",
};
map.Layers.Add(_layer);
// Set map to view
MyMapView.Map = map;
// Zoom to the layer when the layer is loaded
ZoomToHydrographicLayers();
}
private async void ZoomToHydrographicLayers()
{
try
{
// wait until all layers are loaded
await MyMapView.LayersLoadedAsync();
Envelope extent = _layer.FullExtent;
// Zoom to full extent
await MyMapView.SetViewAsync(extent);
}
catch (Exception ex)
{
MessageBox.Show("Error occurred : " + ex.Message, "Sample error");
}
}
private void MyMapView_LayerLoaded(object sender, LayerLoadedEventArgs e)
{
if (e.LoadError == null)
return;
Debug.WriteLine(string.Format("Error while loading layer : {0} - {1}", e.Layer.ID, e.LoadError.Message));
}
}
}
... View more
08-23-2016
02:15 AM
|
1
|
5
|
4742
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-12-2014 03:52 AM | |
| 1 | 08-27-2015 03:47 AM | |
| 1 | 12-08-2014 09:58 AM | |
| 1 | 05-05-2015 10:19 AM | |
| 1 | 07-30-2015 08:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|