{ "layers": [ { "currentVersion": 11.5, "cimVersion": "3.5.0", "id": 0, "name": "Première Nation / First Nation", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPoint", "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": null, "subLayers": [], "minScale": 0, "maxScale": 0, "drawingInfo": { "renderer": { "type": "simple", "symbol": { "type": "esriPMS", "url": "5cd757196daf8cdb563cf7a272203003", "imageData": "iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABYklEQVQoka2SvU4CQRSFz4XFhaAkhEQobGit7Cws7MCQLENhJW/gKxgaf0LnC9BoZWdgJsFobWNhfAGNCWIUiRojKCu7e80m/gC7QRM95Z3zzZx752r4g7R/h4UQWWYWAFJEdOM4Tk0pdTQWzmQyUV3X90BsRJIELULodxm9O1oVQlQdxykqpV584XA4vKPHyZheCCI0SV9185HROrYKTgcVAEUPLISYpxCWU4saguHheHqc4NabB9ZKoVDYrlarp0MwMy/F0gEP+KmJGCE6Q+g07CyAYZiIEqHYd1T/CwIg4oQnNjM3bZPHwrbJru/KAwPY7za4HJ9FwA9kG+heOxaAmgeWUp4bhlG+P7PXEnNBYLADBtonNuxXbCqlLv1ehlKqlKe8aT6gNJWmkDs895+fL/it/4R1KeXWoH90w1hKuZHL5Sq9tuZONQmgZVnWYb1evx1txXc9P4y7fmc/wr/VO9kGiBiXYvHvAAAAAElFTkSuQmCC", "contentType": "image/png", "width": 11, "height": 11, "angle": 0, "xoffset": 0, "yoffset": 0 } }, "scaleSymbols": false, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "// Wrap BAND_NAME similarly to the original VBScript logic (no parentheses handling)\n\nvar maxWordLength = 10;\nvar minWordLength = 4;\n\n// 1) Get source text (as TEXT) and normalize spaces\nvar s = Text($feature.BAND_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 // Compute string length in a way that avoids geometry Length() overload\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": "esriServerPointLabelPlacementCenterRight", "deconflictionStrategy": "dynamic", "removeDuplicates": "none", "allowOverlapOfFeatureInterior": "exclude", "stackLabel": false, "useCodedValues": true, "maxScale": 0, "minScale": 15000000, "name": "Default", "priority": 1, "symbol": { "type": "esriTS", "color": [ 86, 128, 64, 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": 8, "style": "normal", "weight": "bold", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": -140.87532668100002, "ymin": 42.052805889000005, "xmax": -55.755687395, "ymax": 68.361004164, "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": "BAND_NAME", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "BAND_NUMBER", "type": "esriFieldTypeInteger", "alias": "Numéro de bande / Band Number", "domain": null }, { "name": "BAND_NAME", "type": "esriFieldTypeString", "alias": "Nom de bande / Band Name", "length": 75, "domain": null }, { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "Shape", "domain": null } ], "geometryField": { "name": "SHAPE", "type": "esriFieldTypeGeometry", "alias": "Shape" }, "indexes": [ { "name": "R190703_SDE_ROWID_UK", "fields": "OBJECTID", "isAscending": true, "isUnique": true, "description": "" }, { "name": "A2121_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, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true } ], "tables": [] }