|
POST
|
Hi Richard, Of course! Here is how I made this work: I first picked the map scale at which I want my symbol to draw at the desired size. In the screenshot below, I picked the map scale of 1:1,650,255. In my code, I then used this this scale as the "Map Reference scale". The map will now use this scale and as you zoom in and out, the symbol size will be resized. Screenshot below: Here is the code I used: protected override async void OnClick()
{
var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(f => f.ShapeType == esriGeometryType.esriGeometryPoint).FirstOrDefault();
await QueuedTask.Run(() => {
var symbol = CreateSymbol();
var renderer = lyr.GetRenderer() as CIMSimpleRenderer;
renderer.Symbol = symbol.MakeSymbolReference();
lyr.SetRenderer(renderer);
MapView.Active.Map.SetReferenceScale(1650255);
});
}
private CIMPointSymbol CreateSymbol()
{
CIMCharacterMarker marker = SymbolFactory.Instance.ConstructMarker(
57,
"ESRI Business",
"Regular",
15,
ColorFactory.Instance.BlackRGB) as CIMCharacterMarker;
var symbol = SymbolFactory.Instance.ConstructPointSymbol(marker);
symbol.UseRealWorldSymbolSizes = true;
symbol.SetSize(23.75);
return symbol;
}
}
... View more
09-04-2019
08:51 AM
|
2
|
3
|
2621
|
|
POST
|
Hi Richard, UseRealWorldSymbolSizes property allows you to use Map Units to size the symbol instead of Pixels. To allow your symbols to scale based on zoom level of the map, use Map reference scales. Thanks Uma
... View more
08-29-2019
11:04 AM
|
0
|
5
|
2621
|
|
POST
|
Hi Here is a snippet to add a WMS service to Pro: Add a WMS service Thanks Uma
... View more
08-26-2019
11:35 AM
|
0
|
0
|
872
|
|
POST
|
Hi Than At this time Configurations cannot be used to "extend" or "modify" other add-ins. Thanks Uma
... View more
08-21-2019
03:24 PM
|
0
|
3
|
1165
|
|
POST
|
Hi Frank You can use the LayerAddedEvent in the ArcGIS.Desktop.Mapping assembly. The arcgis-pro-sdk-community-samples repo has a couple of samples that uses this event also. 1. TextSymbols sample 2. FeatureSelection sample Thanks Uma
... View more
08-20-2019
11:19 AM
|
2
|
0
|
2778
|
|
POST
|
Hi Alex, I investigated this and I am afraid this is not possible to accomplish at this time. Thanks Uma
... View more
08-13-2019
10:18 AM
|
0
|
1
|
2032
|
|
POST
|
Hi Frank, The loadOnClick attribute only determines when the button should be created by the framework. Thanks Uma
... View more
08-13-2019
05:55 AM
|
0
|
0
|
2313
|
|
POST
|
Hi Frank, In your add-in's config.daml, set the "autoLoad" attribute to true and the button element's loadOnClick attribute to false to accomplish this. ..
<modules>
<insertModule id="QueryBuilderControl_Module" className="Module1" autoLoad="true" caption="Module1">
.... <controls>
<!-- add your controls here -->
<button id="QueryBuilderControl_DefinitionQueryDockPane_ShowButton" loadOnClick="false" caption="Show DefinitionQueryDockPane" ...>
<tooltip heading="Show Dockpane">Show Dockpane<disabledText /></tooltip>
</button>
</controls> Thanks Uma
... View more
08-12-2019
07:07 AM
|
1
|
0
|
2313
|
|
POST
|
Hi Than The ability to add folder connections to the "Favorites" is slated to be available with 2.5 release. But in the meantime, you can definitely re-use the esri_geodatabase_addFolderConnectionToFavoritesButton button in your customization. Thanks Uma
... View more
08-09-2019
08:39 AM
|
0
|
1
|
2535
|
|
POST
|
Hi, There is no way to remove the Customize QAT button at this point. We will look into adding this for the future. Thanks Uma
... View more
08-09-2019
08:15 AM
|
0
|
3
|
2032
|
|
POST
|
Thanks David. I now see the problem with the font. ttf fonts (example: Google Fonts ) seems to work. I will post on this thread with updates. Thanks Uma
... View more
08-09-2019
06:37 AM
|
1
|
0
|
13380
|
|
POST
|
Hi Can you please provide me with more info so I can reproduce this issue? 1. What font are you installing? 2. In ArcGIS Pro, how do you use this font? (Via the Labeling, Layouts, Symbology pane, etc). I am trying it with some of the fonts from Google, and I am able to access it from Pro in the above mentioned dockpanes after I restart the application. If you could give me a little more information, I can inform the Fonts team to report the issue. Thanks Uma
... View more
08-09-2019
06:16 AM
|
0
|
2
|
13380
|
|
POST
|
Hi Alex You can customize the Quick Access Toolbar using a configuration by calling this override: OnCreateQuickAccessToolbar Panes such as Attribute Table pane are not extensible. You cannot remove buttons there. Thanks Uma
... View more
08-08-2019
10:51 AM
|
0
|
0
|
2032
|
|
POST
|
Hi The best way to accomplish what you are trying to do right now is to execute the GP tool using Geoprocessing.MakeValueArray and Geoprocessing.ExecuteToolAsync. https://pro.arcgis.com/en/pro-app/tool-reference/data-management/select-layer-by-location.htm Thanks Uma
... View more
08-08-2019
10:22 AM
|
0
|
1
|
898
|
|
POST
|
Hi The ConfigureGallery sample you are referring to from Developer Summit is now available from the arcgis-pro-sdk-community-samples repo: Configure Gallery sample Thanks Uma
... View more
08-08-2019
10:12 AM
|
2
|
0
|
1064
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM | |
| 1 | 11-20-2024 10:50 AM | |
| 1 | 04-28-2025 03:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|