|
POST
|
Hi, thanks for your answer. I am not sure how to define the arbitrary value. As the value is in map unit (meters) and the width of the floating panel in pixels, does the panIncr will change with the zoom level? Also, I would like the extent to be centred in the right part of the map, the part that is not hidden by the panel. Then, I suppose the offset will be different from a layer extent to another?
... View more
12-19-2019
05:25 AM
|
0
|
0
|
1157
|
|
POST
|
Hi, I am trying to set map extent using an offset because there is a floating panel over the map and sometimes, when I zoom to a feature extent, the feature is partly hidden behind it. I would like to offset the extent so it will always be displayed and centred in the map section that is not hidden by the panel This is what I tried so far without success: function zoomToExtent(extent) {
var hiddenMapPartTopLeft = map.toMap(new ScreenPoint(0, 0)),
hiddenMapPartBottomRight = map.toMap(new ScreenPoint(panel.position.left + panel.position.width, map.container.offsetHeight));
var dx = new Extent({
xmin: hiddenMapPartTopLeft.x,
ymin: hiddenMapPartBottomRight.y,
xmax: hiddenMapPartBottomRight.x,
ymax: hiddenMapPartTopLeft.y,
spatialReference: map.spatialReference
}).getWidth();
extent = extent.offset(dx, 0);
map.setExtent(extent);
} The map zoom way too far to the right. Is there a solution for this?
... View more
12-18-2019
01:07 PM
|
0
|
2
|
1262
|
|
POST
|
Thank you for the great explanations. It's very useful! I have another question about indexes, maybe you could answer it... When you copy a file geodatabase using arcpy.CopyManagement() or when publishing a service to ArcGIS Server Enterprise and data are copied, does the indexes are recreated or just copied as is?
... View more
12-13-2019
05:24 AM
|
0
|
0
|
4629
|
|
POST
|
Because the data is updated regularly in this database
... View more
12-04-2019
11:36 AM
|
0
|
0
|
4629
|
|
POST
|
Then, the solution would be to drop and recreate the indexes?
... View more
12-04-2019
10:14 AM
|
0
|
2
|
4629
|
|
POST
|
It seems that you can only use that tool with Enterprise geodatabase because the first parameter in the toolbox accepts only .sde files...
... View more
12-04-2019
10:11 AM
|
0
|
4
|
4629
|
|
POST
|
I am trying to automatize the rebuild of file geodatabase indexes using arcpy v10.6, but I encounter an ERROR 000837 The workspace is not the correct workspace type. Why? Does arcpy.RebuildIndexes_management() works only with Enterprise geodatabases? Then, how to rebuild indexes in file geodatabases? Thank you import arcpy, os
workspace = "C:/tmp/myDatabase.gdb"
fc = "MyFeatureClass"
arcpy.Exists(workspace)
>>>True
arcpy.Exists(os.path.join(workspace, fc))
>>>True
arcpy.RebuildIndexes_management(workspace, "NO_SYSTEM", [fc], "ALL")
>>>ERROR 000837 The workspace is not the correct workspace type.
... View more
12-04-2019
10:00 AM
|
0
|
9
|
4834
|
|
POST
|
Hi! When creating my address locator, I modify the MaxSuggestCandidates from default 6 to 100, then I publish it as a Geocode Service on ArcGIS Server Enterprise. When I use the REST suggest service, I set the maxSuggestions parameter to 100. However, the service only returns 50 suggestions max. Here is my locator loc file LocFileUseUTF8 = True Category = Address Description = Single Field UseRelativePaths = true ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Properties Required by ArcGIS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CLSID = {DA70B7E3-10B2-42E3-BFF7-6C81355862BC} UICLSID = {AE5A3A0E-F756-11D2-9F4F-00C04F8ED1C4} Interpolate.SideValue.Left = L Interpolate.SideValue.Right = R ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Esri Geocoder Misc Optional Properties ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IntersectionConnectors = MinimumMatchScore = 80 MinimumCandidateScore = 80 EndOffset = 0 SideOffset = 0 SideOffsetUnits = ReferenceDataUnits SpellingSensitivity = 80 MatchIfScoresTie = true WriteXYCoordFields = true WriteStandardizedAddressField = false WriteReferenceIDField = false WritePercentAlongField = false RD.WksGDBVersion = sde.DEFAULT BatchPresortCacheSize = 50000 BatchPresortInputs = CityLocationEnabled = false DefaultLanguage = en EndOffsetUnits = Percent GazetteerLocationEnabled = false GeneralLocationEnabled = true GeometryFromDisplayFields = false LocatorWorkspaceString = ProgID = esriDataSourcesFile.ShapefileWorkspaceFactory; Path = \\sgowebwp01\GOciteWEB\SitePublique\sgopubwp02\Panne\ MaxCandidates = 600 MaxPerfectCandidates = 600 MaxSuggestCandidates = 100 NumThreads = 1 ParityBothValue = B ParityEvenValue = E ParityOddValue = O RebuildStartTime = 132188134725460000 RebuildStartTimeAscii = 12:37:52 RuntimeMemoryLimit = 536870912 SafeLocatorName = Localisateur_ClientHS SearchTimeout = 1 ShowElapsedTime = false StorageSegmentSizeKB = 128 StoreStandardizedRefData = false SupportsIndex64 = true TransliteratedLanguageCode = xx UseMultithreading = True UseRelationshipCache = true UseSuggestions = True WriteAdditionalOutputFields = false WriteDispXDispYFields = false WriteDisplayExtentFields = true WriteGlobalizedFields = false WriteLocalizedFields = true WriteLocatorSpecificFields = false WriteLocatorSpecificOutputFields = true reportScorePerComponent = false supportsEmptyHouseNumber = false supportsOptionalZone = false
... View more
11-21-2019
10:02 AM
|
0
|
1
|
1126
|
|
POST
|
It appears that the popupRenderer of the infoTemplate does not call its startup() method automatically when calling feature.getContent() This is how I make it works define(["dijit/registry"], function(registry) {
var infoContent = feature.getContent();
var popupRenderer = registry.byId(infoContent.id);
popupRenderer.startup();
console.log(infoContent.outerHTML)
}); "<div class=\"esriViewPopup\" id=\"esri_dijit__PopupRenderer_0\" widgetid=\"esri_dijit__PopupRenderer_0\"><div class=\"statusSection hidden\" dojoattachpoint=\"_status\"></div><div class=\"mainSection\"><div class=\"header\" dojoattachpoint=\"_title\">Parc</div><div class=\"hzLine hidden\"></div><div dojoattachpoint=\"_description\" class=\"hidden\"></div><div class=\"break\"></div></div><div class=\"attachmentsSection hidden\"><div>Attachments:</div><ul dojoattachpoint=\"_attachmentsList\"></ul><div class=\"break\"></div></div><div class=\"mediaSection\"><div class=\"header hidden\" dojoattachpoint=\"_mediaTitle\"></div><div class=\"hzLine hidden\"></div><div class=\"caption\" dojoattachpoint=\"_mediaCaption\">Jeu modulaire 2-5 ans</div><div class=\"gallery\" dojoattachpoint=\"_gallery\"><div class=\"mediaHandle prev hidden\" dojoattachpoint=\"_prevMedia\" dojoattachevent=\"onclick: _goToPrevMedia\" title=\"Previous media\"></div><div class=\"mediaHandle next hidden\" dojoattachpoint=\"_nextMedia\" dojoattachevent=\"onclick: _goToNextMedia\" title=\"Next media\"></div><ul class=\"summary hidden\"><li class=\"image mediaCount hidden\" dojoattachpoint=\"_imageCount\">0</li><li class=\"image mediaIcon hidden\"></li><li class=\"chart mediaCount hidden\" dojoattachpoint=\"_chartCount\">0</li><li class=\"chart mediaIcon hidden\"></li></ul><div class=\"frame image\" dojoattachpoint=\"_mediaFrame\" style=\"user-select: none;\"><img class=\"esriPopupMediaImage\" src=\"https://mydomain.com/Hyperliens/Parc/foo.jpg\"></div></div></div><div class=\"editSummarySection hidden\" dojoattachpoint=\"_editSummarySection\"><div class=\"break\"></div><div class=\"break hidden\" dojoattachpoint=\"_mediaBreak\"></div><div class=\"editSummary\" dojoattachpoint=\"_editSummary\"></div></div></div>"
... View more
10-31-2019
06:35 AM
|
1
|
0
|
2384
|
|
POST
|
Hi, On some mobile, the keyboards trigger a resize of the window which trigger a resize of the IdentityManager dialog. However, when the keyboard is closed, the dialog is not resized and the form submit button is not accessible anymore. This problem prevents some user to access the application. I have found a workaround by overriding the IdentityManager.dialog resize method, but I consider the problem as a bug. define([
"esri/IdentityManager"
], function(IdentityManager) {
IdentityManager.on("dialog-create", function() {
//prevent dialog to resize
IdentityManager.dialog.resize = function() {};
})
});
... View more
10-24-2019
09:01 AM
|
0
|
0
|
665
|
|
POST
|
I tested it like this. 1- I click on a feature on the map to display the infoWindow 2- then I do: window._widgetManager.map.infoWindow.features[0].getContent().outerHTML; The output string is unpopulated. It does not match the content I see in the infoWindow
... View more
10-16-2019
11:44 AM
|
0
|
1
|
2384
|
|
POST
|
Hi Robert, Yes but it returns the same unpopulated domNode.
... View more
10-16-2019
11:17 AM
|
0
|
3
|
2384
|
|
POST
|
Hello, I am developping a custom InfoWindow where I show multiple features popupTemplate inside one. However, I am looking for a way to get the content of a feature popupTemplate programmatically. I have tried to access the content property of the popupTemplate which is a function, but it returns a node element that is not populated with the feature data. feature.setInfoTemplate(layer.infoTemplate);
feature.infoTemplate.content().innerHTML; "<div class=\"statusSection hidden\" dojoattachpoint=\"_status\"></div><div class=\"mainSection\"><div class=\"header\" dojoattachpoint=\"_title\"></div><div class=\"hzLine\"></div><div dojoattachpoint=\"_description\"></div><div class=\"break\"></div></div><div class=\"attachmentsSection hidden\"><div>Attachments:</div><ul dojoattachpoint=\"_attachmentsList\"></ul><div class=\"break\"></div></div><div class=\"mediaSection hidden\"><div class=\"header\" dojoattachpoint=\"_mediaTitle\"></div><div class=\"hzLine\"></div><div class=\"caption\" dojoattachpoint=\"_mediaCaption\"></div><div class=\"gallery\" dojoattachpoint=\"_gallery\"><div class=\"mediaHandle prev\" dojoattachpoint=\"_prevMedia\" dojoattachevent=\"onclick: _goToPrevMedia\"></div><div class=\"mediaHandle next\" dojoattachpoint=\"_nextMedia\" dojoattachevent=\"onclick: _goToNextMedia\"></div><ul class=\"summary\"><li class=\"image mediaCount hidden\" dojoattachpoint=\"_imageCount\">0</li><li class=\"image mediaIcon hidden\"></li><li class=\"chart mediaCount hidden\" dojoattachpoint=\"_chartCount\">0</li><li class=\"chart mediaIcon hidden\"></li></ul><div class=\"frame\" dojoattachpoint=\"_mediaFrame\"></div></div></div><div class=\"editSummarySection hidden\" dojoattachpoint=\"_editSummarySection\"><div class=\"break\"></div><div class=\"break hidden\" dojoattachpoint=\"_mediaBreak\"></div><div class=\"editSummary\" dojoattachpoint=\"_editSummary\"></div></div>" What I would need is the content only with the attributes names and values as defined in Portal. Is there a way to achieve that?
... View more
10-16-2019
09:54 AM
|
0
|
6
|
2515
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-13-2025 05:45 AM | |
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 2 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|