{ "layers": [ { "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 0, "name": "Conseil tribal / Tribal Council", "type": "Feature Layer", "parentLayer": null, "defaultVisibility": true, "minScale": 0, "maxScale": 0, "canScaleSymbols": false, "geometryType": "esriGeometryPoint", "description": "", "copyrightText": "", "editFieldsInfo": null, "ownershipBasedAccessControlForFeatures": null, "syncCanReturnChanges": false, "relationships": [], "isDataVersioned": false, "isDataArchived": false, "infoInEstimates": [ "extent", "count" ], "isDataBranchVersioned": false, "isDataReplicaTracked": false, "isCoGoEnabled": false, "supportsRollbackOnFailureParameter": true, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportsValidateSQL": true, "supportsCoordinatesQuantization": true, "supportsQuantizationEditMode": true, "supportsCalculate": true, "supportsASyncCalculate": true, "hasContingentValuesDefinition": false, "supportsDatumTransformation": true, "advancedQueryCapabilities": { "supportsPagination": true, "supportsQueryWithDistance": true, "supportsReturningQueryExtent": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsCurrentUserQueries": true, "supportsFullTextSearch": true, "fullTextSearchCapabilities": { "supportsSearchOperator": true, "supportsOperator": false, "supportsSqlExpressionInFullText": true }, "fullTextSearchableFields": [], "supportsQueryWithResultType": true, "supportsReturningGeometryCentroid": false, "supportsReturningGeometryEnvelope": false, "supportsSqlExpression": true, "supportsQueryWithDatumTransformation": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsQueryAnalytic": true, "supportsQueryWithCacheHint": false }, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": true, "supportsPercentileAnalytic": true }, "advancedEditingCapabilities": { "supportedSqlFormatsInCalculate": [ "standard" ], "supportsAsyncApplyEdits": true, "supportsApplyEditsbyUploadID": true, "supportedApplyEditsUploadIDFormats": "JSON,PBF" }, "hasMetadata": true, "extent": { "xmin": -133.72846899960498, "ymin": 42.577496953845696, "xmax": -60.19055350268109, "ymax": 68.358754000446, "spatialReference": { "wkid": 4140, "latestWkid": 4617, "xyTolerance": 8.983152841195215E-9, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -400, "falseY": -400, "xyUnits": 9.999999999999999E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "spatialReference": { "wkid": 4140, "latestWkid": 4617, "xyTolerance": 8.983152841195215E-9, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -400, "falseY": -400, "xyUnits": 9.999999999999999E8, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "sourceSpatialReference": { "wkid": 4140, "latestWkid": 4617, "xyTolerance": 8.98315284119521E-9, "zTolerance": 2, "mTolerance": 2, "falseX": -400, "falseY": -400, "xyUnits": 1.11194874296404E9, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "drawingInfo": { "renderer": { "type": "simple", "symbol": { "type": "esriPMS", "url": "8f539b1567efb5d25a3051c5e7866e1f", "imageData": "iVBORw0KGgoAAAANSUhEUgAAABIAAAAPCAYAAADphp8SAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABQElEQVQ4jWNhoBJgoZtBfn5+1v///3+7efPmG2Qb5Onpya74TmTVe86vjxgYGCzJNoibgb0s8YKV1D3BN1If/L5HbNq0aQXJBgUFBUk6XlerFvvCyyD6hYfhiNztCaGhoRtXr179nSSDBD9zTfS4rcMOYjMyMDKEXDMW7xLeVc7AwNBAtEH+/v7mHuc1Qzn/sMLFFN4LM1g8Uqz86+s7b/PmzY+IMYhR+Y3IHKvHKpgW3NBnuyT1pJ+BgSGYoEH+/v6xAYcNdBj/Y9rA/4OTwfWWZtAXPz+7TZs2HcJpkJubG7f5I4UJKu/EGHAB53saDMdl7s1oaGjQaWho+IfVIA4Ojmq3O9qCOE1hYGBg+cfM4H5PW3Mh3/EUBgaGWVgN+v//v3yT45aD+AxCAlooFiBzNm/eHE2kIZguJVcjOgAAhrJiM7PSRnMAAAAASUVORK5CYII=", "contentType": "image/png", "width": 13, "height": 11, "angle": 0, "xoffset": 0, "yoffset": 0 } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "// Wrap TRIBAL_COUNCIL_NAME similarly to the original VBScript logic\n\nvar maxWordLength = 10;\nvar minWordLength = 3;\n\n// 1) Get source text (as TEXT) and normalize spaces\nvar s = Text($feature.TRIBAL_COUNCIL_NAME);\nif (IsEmpty(s)) {\n return \"\";\n}\ns = Trim(s);\n\n// Collapse multiple spaces to a single space so Split won't produce empty tokens\nwhile (Find(s, \" \") > -1) {\n s = Replace(s, \" \", \" \");\n}\n\n// 2) Split into words\nvar words = Split(s, \" \");\nif (Count(words) == 0) {\n return \"\";\n}\n\n// 3) Build output using the same heuristics as the VBScript\nvar outStr = \"\";\nvar everyother = false; // toggles whether we expect a second word on the line\nvar isFirst = true;\n\nfor (var i = 0; i < Count(words); i++) {\n var w = Trim(Text(words[i]));\n if (w == \"\") {\n // skip empty tokens\n } else {\n // Character count without Length() to avoid geometry overload ambiguity\n var n = Count(Split(w, \"\")); // number of characters in w\n\n if (!isFirst && n <= minWordLength) {\n // keep short word (<= 3) on the existing line\n outStr = outStr + \" \" + w;\n everyother = false;\n\n } else if (everyother) {\n // slated to be the second word on the line\n if (n > maxWordLength) {\n outStr = outStr + \"\\n\" + w; // long word: start new line\n everyother = false;\n } else {\n outStr = outStr + \" \" + w; // short/medium: same line\n everyother = false;\n }\n\n } else {\n // slated to be the first word on a new line\n if (isFirst) {\n outStr = w;\n everyother = true;\n isFirst = false;\n } else {\n if (n > maxWordLength) {\n everyother = false; // long word stands alone\n } else {\n everyother = true; // expect pairing\n }\n outStr = outStr + \"\\n\" + w;\n }\n }\n }\n}\n\nreturn outStr;", "title": "Custom" }, "labelPlacement": "esriServerPointLabelPlacementCenterRight", "deconflictionStrategy": "dynamic", "removeDuplicates": "none", "allowOverlapOfFeatureInterior": "exclude", "stackLabel": false, "useCodedValues": true, "maxScale": 0, "minScale": 15000000, "name": "Default", "priority": 1, "symbol": { "type": "esriTS", "color": [ 204, 0, 150, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 2, "yoffset": 0, "kerning": true, "haloColor": [ 250, 250, 250, 255 ], "haloSize": 1, "font": { "family": "Arial", "size": 7.5, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "hasM": false, "hasZ": false, "allowGeometryUpdates": true, "allowTrueCurvesUpdates": true, "onlyAllowTrueCurveUpdatesByTrueCurveClients": true, "hasAttachments": false, "supportsApplyEditsWithGlobalIds": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "objectIdField": "OBJECTID", "globalIdField": "", "displayField": "TRIBAL_COUNCIL_NAME", "typeIdField": "", "subtypeField": "", "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null, "editable": false, "nullable": false, "defaultValue": null, "modelName": "OBJECTID" }, { "name": "TRIBAL_COUNCIL_NUMBER", "type": "esriFieldTypeDouble", "alias": "Numéro du conseil tribal / Tribal Council Number", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "TRIBAL_COUNCIL_NUMBER" }, { "name": "TRIBAL_COUNCIL_NAME", "type": "esriFieldTypeString", "alias": "Nom du conseil tribal / Tribal Council Name", "domain": null, "editable": true, "nullable": true, "length": 150, "defaultValue": null, "modelName": "TRIBAL_COUNCIL_NAME" }, { "name": "CPC_CODE", "type": "esriFieldTypeString", "alias": "CPC_CODE", "domain": null, "editable": true, "nullable": true, "length": 2, "defaultValue": null, "modelName": "CPC_CODE" } ], "geometryField": { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null, "editable": true, "nullable": true, "defaultValue": null, "modelName": "Shape" }, "indexes": [ { "name": "R215444_SDE_ROWID_UK", "isAscending": true, "isUnique": true, "description": "", "fields": "OBJECTID" }, { "name": "A2139_IX1", "isAscending": true, "isUnique": true, "description": "", "fields": "SHAPE" } ], "datesInUnknownTimezone": false, "dateFieldsTimeReference": { "timeZone": "UTC", "timeZoneIANA": "Etc/UTC", "respectsDaylightSaving": false }, "preferredTimeReference": null, "types": [], "templates": [ { "name": "Conseil tribal / Tribal Council", "description": "", "prototype": { "attributes": { "TRIBAL_COUNCIL_NAME": null, "CPC_CODE": null, "TRIBAL_COUNCIL_NUMBER": null } }, "drawingTool": "esriFeatureEditToolPoint" } ], "maxRecordCount": 2000, "supportedQueryFormats": "JSON, geoJSON, PBF", "supportedExportFormats": "sqlite,filegdb,shapefile,csv,geojson", "capabilities": "Query", "useStandardizedQueries": true, "bigIntegerRestrictedTo53Bits": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "supportsAppend": true, "supportedAppendFormats": "FILEGDB,PBF", "standardMaxRecordCount": 32000, "tileMaxRecordCount": 8000, "standardMaxRecordCountNoGeometry": 32000, "maxRecordCountFactor": 1 } ], "tables": [] }