|
POST
|
Hi, We have application with offline content (vtpk). We use vptk packages as basemap. It works fine on Android but on iOS doesn't (blank screen). I have tried different vector tile packages, but only with one of them I succeeded. It was in different coordinate system (WGS 1984 Web Mercator) then our application packages. Our application packages spatial reference wkid is 3346. Another one difference is that working package was created later and maybe with different software versions because we migrate application from AppStudio code to ArcGIS Maps for .NET MAUI. Code below: ArcGISVectorTiledLayer layer = new ArcGISVectorTiledLayer(new Uri(tileCachePath));
_map = new Map(SpatialReference.Create(3346))
{
Basemap = new Basemap(layer),
MinScale = 8000000,
MaxScale = 1200
};
_map.LoadStatusChanged += OnMapsLoadStatusChanged;
private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e)
{
switch(e.Status)
{
case LoadStatus.Loading:
Logger.Debug($"Map's load status : {e.Status}");
break;
case LoadStatus.Loaded:
_map.InitialViewpoint = new Viewpoint(new MapPoint(499629.435, 6124677.283, SpatialReference.Create(3346)), 7500000);
break;
case LoadStatus.FailedToLoad:
Logger.Error($"Map's load status : {e.Status}");
break;
}
} Map and viewpoint spatial reference were changed depending on vtpk source. Any help would be appreciated.
... View more
06-26-2024
01:08 AM
|
0
|
7
|
2387
|
|
POST
|
Hi, Change index of array: // From
var curClassBreak = newColorizer.ClassBreaks[0];
// To
var curClassBreak = newColorizer.ClassBreaks[i];
... View more
06-24-2024
10:40 PM
|
0
|
1
|
1315
|
|
POST
|
Hi, Adding ResizeMode="NoResize" to ProWindow xaml will hide maximize and minimize buttons and disable windows resizing. <controls:ProWindow x:Class="************"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
Title="Window Title"
ResizeMode="NoResize"
>
... View more
06-24-2024
11:06 AM
|
0
|
2
|
1579
|
|
POST
|
Hi, Magnifier window is simple ProWindow opened as modalless with method Show. ProWindow opened with ShowDialog will be modal. Magnifier sample is here.
... View more
06-21-2024
12:22 PM
|
1
|
2
|
2115
|
|
POST
|
Hi, You have situation similar like in thread. I think BlockGroupGeoPackage.GeoPackageFeatureTables[0] makes a bomb. You need to create object from scratch, because Maps SDK saves somewhere your used objects.
... View more
06-19-2024
01:05 PM
|
0
|
1
|
2167
|
|
POST
|
Hi, You need to subscribe to MapPropertyChangedEvent. EventHints will show Name property
... View more
06-19-2024
12:57 PM
|
1
|
0
|
948
|
|
POST
|
Try to put mapView.Redraw(true); in another QueuedTask.Run. Sometimes separating MCT threads helps. Or use RedrawAsync method outside QueuedTask.Run which doesn't need MCT thread.
... View more
06-19-2024
01:17 AM
|
0
|
1
|
2227
|
|
POST
|
I think that you need to set TextSymbol property for your created labelClass. // Blue label
CIMLabelClass blueLabelClass = new CIMLabelClass
{
Name = "Blue",
ExpressionTitle = "Expression-Blue",
ExpressionEngine = LabelExpressionEngine.Arcade,
Expression = "$feature.OBJECTID",
ID = 2,
Priority = 0,
Visibility = true,
TextSymbol = new CIMSymbolReference
{
Symbol = new CIMTextSymbol()
{
Angle = 45,
FontType = FontType.Type1,
FontFamilyName = "Consolas",
FontEffects = FontEffects.Normal,
HaloSize = 2.0,
Symbol = new CIMPolygonSymbol
{
SymbolLayers = new CIMSymbolLayer[]
{
new CIMSolidFill
{
Color = CIMColor.CreateRGBColor(0, 0, 255)
}
},
UseRealWorldSymbolSizes = true
}
},
MaxScale = 0,
MinScale = 0,
SymbolName = "TextSymbol-Blue"
},
StandardLabelPlacementProperties = new CIMStandardLabelPlacementProperties
{
AllowOverlappingLabels = true,
LineOffset = 1.0
},
MaplexLabelPlacementProperties = new CIMMaplexLabelPlacementProperties
{
AlignLabelToLineDirection = true,
AvoidPolygonHoles = true
}
};
... View more
06-18-2024
11:48 AM
|
0
|
3
|
2250
|
|
POST
|
Sorry, I am Esri distributor, and I don't know how it is coded inside. You can set LayerCacheType for FeatureLayer.
... View more
06-17-2024
11:45 PM
|
0
|
0
|
1684
|
|
POST
|
Hi, Annotation layers haven't labels. Showing of annotations is organized with sublayers. CIMAnnotationLayer Sublayers property is array of CIMAnnotationSubLayer.
... View more
06-17-2024
11:39 PM
|
0
|
5
|
2265
|
|
POST
|
Hi, You can open featurelayer as table or featureclass from geodatabase object: const string LAYER_ID = "0";
using (Geodatabase geodatabase = new Geodatabase(new ServiceConnectionProperties(new Uri("https://sdkexamples.esri.com/server/rest/services/GrandTeton/FeatureServer")))
using (var table = geodatabase.OpenDataset<Table>(LAYER_ID))
{
} More details in that thread
... View more
06-16-2024
10:24 PM
|
0
|
2
|
1767
|
|
POST
|
Hi, The best way to solve questions like yours is to use CIMViewer. Compile code, run ArcGIS Pro. Open CIMVIewr and select your layer. All settings you will find in CIMViewer. XML tags are same as objects and properties names. In your case you need to set up Label Property of CIMClassBreak . How to work with CIMClassRenderer you can find in ArcGIS Pro community sample GetSymbolSwatch sample
... View more
06-10-2024
12:36 AM
|
0
|
0
|
1203
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 1 | yesterday | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Online
|
| Date Last Visited |
5 hours ago
|