{ "currentVersion": 11.3, "cimVersion": "3.3.0", "id": 1, "name": "noms_carrers", "type": "Feature Layer", "description": "", "geometryType": "esriGeometryPolyline", "sourceSpatialReference": { "wkid": 25831, "latestWkid": 25831, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 }, "copyrightText": "", "parentLayer": null, "subLayers": [], "minScale": 0, "maxScale": 0, "referenceScale": 0.0, "drawingInfo": { "renderer": { "type": "simple", "symbol": { "type": "esriSLS", "style": "esriSLSSolid", "color": [ 78, 153, 53, 255 ], "width": 1 } }, "scaleSymbols": true, "transparency": 0, "labelingInfo": [ { "labelExpressionInfo": { "expression": "$feature.nom", "title": "Custom" }, "labelPlacement": "esriServerLinePlacementCenterStart", "textLayout": "followFeature", "deconflictionStrategy": "static", "lineConnection": "minimizeLabels", "useClippedGeometry": true, "stackLabel": false, "removeDuplicates": "all", "removeDuplicatesDistance": 300, "allowOverlapOfLabel": "allow", "where": "tipus <> 'plc'", "useCodedValues": true, "maxScale": "NaN", "minScale": 1500, "name": "Carrers", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 0.2, "font": { "family": "Fira Sans", "size": 11, "style": "normal", "weight": "normal", "decoration": "none" } } }, { "labelExpressionInfo": { "expression": "//Afegim un '$' al espai en blanc que es trobi més centrar per tal de fer un canvi de linea de l'etiqueta al mig del text\nvar txt = $feature.nom;\nvar centro = Floor(Count(txt) / 2);\n \n// Buscar espai abans del centre\nvar izquierda = -1;\nfor (var i = centro; i >= 0; i--) {\n if (Mid(txt, i, 1) == \" \") {\n izquierda = i;\n break;\n }\n}\n \n// Buscar espaci després del centre\nvar derecha = -1;\nfor (var j = centro; j < Count(txt); j++) {\n if (Mid(txt, j, 1) == \" \") {\n derecha = j;\n break;\n }\n}\n \n// Determinar el més proper\nvar indice = -1;\nif (izquierda == -1 && derecha == -1) {\n return txt; // No hi ha espais\n} else if (izquierda == -1) {\n indice = derecha;\n} else if (derecha == -1) {\n indice = izquierda;\n} else {\n indice = IIf((centro - izquierda) <= (derecha - centro), izquierda, derecha);\n}\n \n// Posar $ a l'espai\nreturn Left(txt, indice) + \"$\" + Mid(txt, indice + 1);", "title": "Custom" }, "labelPlacement": "esriServerLinePlacementCenterStart", "textLayout": "horizontal", "deconflictionStrategy": "static", "lineConnection": "minimizeLabels", "useClippedGeometry": true, "allowOverlapOfFeatureInterior": "exclude", "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "all", "removeDuplicatesDistance": 0, "stackRowLength": 16, "stackSeparators": [ { "separator": "$", "forced": true } ], "allowOverlapOfLabel": "allow", "where": "tipus = 'plc' And SHAPE_Length <= 1", "useCodedValues": true, "maxScale": 0, "minScale": 1500, "name": "Places", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 0.2, "font": { "family": "Fira Sans", "size": 11, "style": "normal", "weight": "normal", "decoration": "none" } } }, { "labelExpressionInfo": { "expression": "$feature.nom", "title": "Custom" }, "labelPlacement": "esriServerLinePlacementCenterStart", "textLayout": "followFeature", "deconflictionStrategy": "static", "lineConnection": "minimizeLabels", "useClippedGeometry": true, "stackLabel": false, "removeDuplicates": "all", "removeDuplicatesDistance": 300, "allowOverlapOfLabel": "allow", "where": "tipus <> 'plc'", "useCodedValues": true, "maxScale": 1500, "minScale": 0, "name": "carrers_1500", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 0.2, "font": { "family": "Fira Sans", "size": 9, "style": "normal", "weight": "normal", "decoration": "none" } } }, { "labelExpressionInfo": { "expression": "//Afegim un '$' al espai en blanc que es trobi més centrar per tal de fer un canvi de linea de l'etiqueta al mig del text\nvar txt = $feature.nom;\nvar centro = Floor(Count(txt) / 2);\n \n// Buscar espai abans del centre\nvar izquierda = -1;\nfor (var i = centro; i >= 0; i--) {\n if (Mid(txt, i, 1) == \" \") {\n izquierda = i;\n break;\n }\n}\n \n// Buscar espaci després del centre\nvar derecha = -1;\nfor (var j = centro; j < Count(txt); j++) {\n if (Mid(txt, j, 1) == \" \") {\n derecha = j;\n break;\n }\n}\n \n// Determinar el més proper\nvar indice = -1;\nif (izquierda == -1 && derecha == -1) {\n return txt; // No hi ha espais\n} else if (izquierda == -1) {\n indice = derecha;\n} else if (derecha == -1) {\n indice = izquierda;\n} else {\n indice = IIf((centro - izquierda) <= (derecha - centro), izquierda, derecha);\n}\n \n// Posar $ a l'espai\nreturn Left(txt, indice) + \"$\" + Mid(txt, indice + 1);", "title": "Custom" }, "labelPlacement": "esriServerLinePlacementCenterStart", "textLayout": "horizontal", "deconflictionStrategy": "static", "lineConnection": "minimizeLabels", "useClippedGeometry": true, "allowOverlapOfFeatureInterior": "exclude", "stackLabel": true, "stackAlignment": "dynamic", "removeDuplicates": "all", "removeDuplicatesDistance": 0, "stackRowLength": 16, "stackSeparators": [ { "separator": "$", "forced": true } ], "allowOverlapOfLabel": "allow", "where": "tipus = 'plc' And SHAPE_Length <= 1", "useCodedValues": true, "maxScale": 1500, "minScale": 0, "name": "places_1500", "priority": -1, "symbol": { "type": "esriTS", "color": [ 0, 0, 0, 255 ], "backgroundColor": null, "borderLineColor": null, "borderLineSize": null, "verticalAlignment": "bottom", "horizontalAlignment": "left", "rightToLeft": false, "angle": 0, "xoffset": 0, "yoffset": 0, "kerning": true, "haloColor": [ 255, 255, 255, 255 ], "haloSize": 0.2, "font": { "family": "Fira Sans", "size": 9, "style": "normal", "weight": "normal", "decoration": "none" } } } ] }, "defaultVisibility": true, "extent": { "xmin": 268646.8071999997, "ymin": 4490526.717499999, "xmax": 524528.1816999997, "ymax": 4745643.156299999, "spatialReference": { "wkid": 25831, "latestWkid": 25831, "xyTolerance": 0.001, "zTolerance": 0.001, "mTolerance": 0.001, "falseX": -5120900, "falseY": -9998100, "xyUnits": 10000, "falseZ": -100000, "zUnits": 10000, "falseM": -100000, "mUnits": 10000 } }, "hasAttachments": false, "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText", "displayField": "tipus", "typeIdField": null, "subtypeFieldName": null, "subtypeField": null, "defaultSubtypeCode": null, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID", "domain": null }, { "name": "tipus", "type": "esriFieldTypeString", "alias": "tipus", "length": 3, "domain": null }, { "name": "nom", "type": "esriFieldTypeString", "alias": "nom", "length": 67, "domain": null } ], "geometryField": {}, "indexes": null, "subtypes": [], "relationships": [], "canModifyLayer": true, "canScaleSymbols": false, "hasLabels": true, "capabilities": "Query,Map,Data", "maxRecordCount": 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": false, "supportsCurrentUserQueries": true }, "supportsDatumTransformation": true, "dateFieldsTimeReference": null, "preferredTimeReference": null, "datesInUnknownTimezone": false, "hasGeometryProperties": true, "geometryProperties": { "shapeLengthFieldName": "SHAPE_Length", "units": "esriMeters", "mapUnits": {"uwkid": 9001} }, "hasMetadata": true, "isDataArchived": false, "archivingInfo": { "supportsQueryWithHistoricMoment": false, "startArchivingMoment": -1 }, "supportsCoordinatesQuantization": true, "supportsDynamicLegends": true, "serviceItemId": "ad3bb3d33d6740568bb3a4528584ce24" }