{ "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 5, "name": "Kanesatake Lands (regional scale)", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolygon", "sourceSpatialReference": { "wkid": 4140, "latestWkid": 4617, "xyTolerance": 8.98315284119521E-9, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -400, "falseY": -400, "xyUnits": 9.999999999999999E8, "falseZ": 0, "zUnits": 1, "falseM": 0, "mUnits": 1 }, "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 }, "copyrightText": "", "parentLayer": { "id": 4, "name": "Indian Reserve (regional scale)" }, "subLayers": [], "minScale": 3500000, "maxScale": 375001, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "simple", "symbol": { "type": "esriSFS", "style": "esriSFSSolid", "color": [ 230, 161, 92, 255 ], "outline": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 191, 96, 0, 255 ], "width": 0.5 } } }, "scaleSymbols": true, "transparency": 50, "labelingInfo": [ { "labelExpressionInfo": { "expression": "// Replicate VBScript wrapping logic for FNAME\n// maxWordLength = 10, minWordLength = 4\n\nvar maxWordLength = 10;\nvar minWordLength = 4;\n\n// 1) Get source text and normalize spaces\nvar s = Text($feature.ENAME);\nif (IsEmpty(s)) {\n return \"\";\n}\ns = Trim(s);\n\n// Collapse multiple spaces so Split won't create 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 // Compute string length 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 (<= 4) 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": "esriServerPolygonPlacementAlwaysHorizontal", "removeDuplicates": "all", "removeDuplicatesDistance": 216, "multiPart": "labelLargest", "deconflictionStrategy": "dynamic", "repeatLabel": false, "allowOverrun": true, "stackLabel": false, "where": "ADMIN_LAND_TYPE in ('INDIAN LAND', 'INDIAN RESERVE')", "useCodedValues": true, "maxScale": 375001, "minScale": 3500000, "name": "Default", "priority": 20, "symbol": { "type": "esriTS", "color": [ 119, 92, 153, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "center", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 250, 250, 250, 255 ], "haloSize": 0.8, "font": { "family": "Arial", "size": 6, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": false, "extent": { "xmin": -141.001980009, "ymin": 41.6813203, "xmax": -53.688409369, "ymax": 83.157539256, "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 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeNone", "displayField": "SHORT_NAME", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "ADMIN_LAND_ID", "type": "esriFieldTypeString", "alias": "Reserve number", "length": 20, "domain": null }, { "name": "SHORT_NAME", "type": "esriFieldTypeString", "alias": "Reserve Name", "length": 70, "domain": null }, { "name": "ADMIN_LAND_TYPE", "type": "esriFieldTypeString", "alias": "Administrative Land Type", "length": 30, "domain": null }, { "name": "ABSOLUTE_ACCURACY", "type": "esriFieldTypeString", "alias": "Absolute Accuracy", "length": 7, "domain": null }, { "name": "LOCATION_DESC", "type": "esriFieldTypeString", "alias": "Location Description", "length": 130, "domain": null }, { "name": "CPC_CODE", "type": "esriFieldTypeString", "alias": "Province-Territory", "length": 2, "domain": null }, { "name": "PROFILE_URL_EN", "type": "esriFieldTypeString", "alias": "English URL Profile", "length": 150, "domain": null }, { "name": "FIRST_NATIONS", "type": "esriFieldTypeString", "alias": "First Nation", "length": 2000, "domain": null }, { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null } ], "geometryField": { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R289_SDE_ROWID_UK", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "A284_IX1", "fields": "SHAPE", "isAscending": true, "isUnique": true, "description": "" } ], "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Map,Query,Data", "maxRecordCount": 2000, "maxSelectionCount": 2000, "supportsStatistics": true, "supportsExceedsLimitStatistics": true, "supportsAdvancedQueries": true, "supportedQueryFormats": "JSON, geoJSON, PBF", "isDataVersioned": false, "ownershipBasedAccessControlForFeatures": {"allowOthersToQuery": true}, "useStandardizedQueries": true, "supportedSpatialRelationships": [ "esriSpatialRelIntersects", "esriSpatialRelContains", "esriSpatialRelCrosses", "esriSpatialRelEnvelopeIntersects", "esriSpatialRelIndexIntersects", "esriSpatialRelOverlaps", "esriSpatialRelTouches", "esriSpatialRelWithin", "esriSpatialRelRelation" ], "advancedQueryCapabilities": { "useStandardizedQueries": true, "supportsStatistics": true, "supportsPercentileStatistics": true, "supportsHavingClause": true, "supportsOrderBy": true, "supportsDistinct": true, "supportsCountDistinct": true, "supportsAdvancedQueryRelated": true, "supportsQueryRelatedPagination": true, "supportsPagination": true, "supportsLod": false, "supportsQueryWithLodSR": false, "supportsTrueCurve": true, "supportsQueryWithDatumTransformation": true, "supportsReturningQueryExtent": true, "supportsQueryWithDistance": true, "supportsSqlExpression": true, "supportsTimeRelation": true, "supportsSqlFormat": false, "supportsQueryAnalytic": true, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "advancedQueryAnalyticCapabilities": { "supportsLinearRegression": true, "supportsAsync": false, "supportsPercentileAnalytic": true }, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeAreaFieldName": "SHAPE.AREA", "shapeLengthFieldName": "SHAPE.LEN", "units": "esriDecimalDegrees", "mapUnits": {"uwkid": 9102} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true }