<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MapServer layer labels are not displayed on iOS application in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111830#M10590</link>
    <description>&lt;P&gt;The ArcGIS Online Map Viewer is a web app built with the ArcGIS API for JavaScript, therefore the behavior may different from the out-of-the-box&amp;nbsp;ArcGIS API for JavaScript map control.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding displaying labels in your ArcGIS Runtime app, because the service definition does not contain a label definition you will need need to add in code. For a sample see: &lt;A href="https://developers.arcgis.com/net/wpf/sample-code/show-labels-on-layers/" target="_blank"&gt;https://developers.arcgis.com/net/wpf/sample-code/show-labels-on-layers/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 19:31:40 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2021-10-27T19:31:40Z</dc:date>
    <item>
      <title>MapServer layer labels are not displayed on iOS application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1110751#M10563</link>
      <description>&lt;P&gt;I want to display Mapserver Layer on my iOS application(v 100.7), the layer has a symbol and label. On my iOS application, only the symbol is visible but the label is not displayed whereas on Javascript Web Application both the Symbol and Label are visible. Even on zoom level, the labels are not displayed on the iOS application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="javascript web app" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26040i93626ED593D1E206/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2021-10-25 at 2.47.52 PM.png" alt="javascript web app" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;javascript web app&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="iOS application" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26041i86A25FECEE668055/image-size/small?v=v2&amp;amp;px=200" role="button" title="Simulator Screen Shot - iPad Pro (12.9-inch) (4th generation) - 2021-10-25 at 14.39.53.png" alt="iOS application" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;iOS application&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Layer JSON data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "currentVersion": 10.81,
  "id": 10,
  "name": "Drop Inlets",
  "type": "Feature Layer",
  "description": "",
  "geometryType": "esriGeometryPoint",
  "sourceSpatialReference": {
    "wkid": 102642,
    "latestWkid": 2226
  },
  "copyrightText": "",
  "parentLayer": null,
  "subLayers": [
    
  ],
  "minScale": 20000,
  "maxScale": 0,
  "drawingInfo": {
    "renderer": {
      "type": "simple",
      "symbol": {
        "type": "esriPMS",
        "url": "04daf6dba482f0b89551c272e8e441ea",
        "imageData": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAB9JREFUGJVjYWBgYGAo8f3PgAOw4JIYggp6NjPiUgAA9ecDIdUlArEAAAAASUVORK5CYII=",
        "contentType": "image/png",
        "width": 6,
        "height": 6,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0
      },
      "label": "",
      "description": ""
    },
    "transparency": 0,
    "labelingInfo": null
  },
  "defaultVisibility": true,
  "extent": {
    "xmin": 6666683.263543308,
    "ymin": 1849480.0979458094,
    "xmax": 6792364.348794803,
    "ymax": 2030044.241738066,
    "spatialReference": {
      "wkid": 102642,
      "latestWkid": 2226
    }
  },
  "hasAttachments": false,
  "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
  "displayField": "NEXGEN_ID",
  "typeIdField": null,
  "subtypeFieldName": null,
  "subtypeField": null,
  "defaultSubtypeCode": null,
  "fields": [
    {
      "name": "OBJECTID",
      "type": "esriFieldTypeOID",
      "alias": "OBJECTID",
      "domain": null
    },
    {
      "name": "FAC_ID",
      "type": "esriFieldTypeString",
      "alias": "FAC_ID",
      "length": 254,
      "domain": null
    },
    {
      "name": "CITY",
      "type": "esriFieldTypeString",
      "alias": "CITY",
      "length": 2,
      "domain": null
    },
    {
      "name": "DRPINTYP",
      "type": "esriFieldTypeString",
      "alias": "DRPINTYP",
      "length": 8,
      "domain": null
    },
    {
      "name": "SWQEMB",
      "type": "esriFieldTypeString",
      "alias": "SWQEMB",
      "length": 1,
      "domain": null
    },
    {
      "name": "IN_CURB_RADIUS",
      "type": "esriFieldTypeString",
      "alias": "IN_CURB_RADIUS",
      "length": 1,
      "domain": null
    },
    {
      "name": "SHAPE",
      "type": "esriFieldTypeGeometry",
      "alias": "SHAPE",
      "domain": null
    },
    {
      "name": "WRD_SERVICE_AREA",
      "type": "esriFieldTypeString",
      "alias": "WRD_SERVICE_AREA",
      "length": 16,
      "domain": null
    },
    {
      "name": "WATERSHED",
      "type": "esriFieldTypeString",
      "alias": "WATERSHED",
      "length": 50,
      "domain": null
    },
    {
      "name": "NAME",
      "type": "esriFieldTypeString",
      "alias": "NAME",
      "length": 50,
      "domain": null
    },
    {
      "name": "SUP_DISTRICT",
      "type": "esriFieldTypeString",
      "alias": "SUP_DISTRICT",
      "length": 16,
      "domain": null
    },
    {
      "name": "DTBUILT",
      "type": "esriFieldTypeDate",
      "alias": "DTBUILT",
      "length": 8,
      "domain": null
    },
    {
      "name": "last_edited_user",
      "type": "esriFieldTypeString",
      "alias": "last_edited_user",
      "length": 255,
      "domain": null
    },
    {
      "name": "last_edited_date",
      "type": "esriFieldTypeDate",
      "alias": "last_edited_date",
      "length": 8,
      "domain": null
    },
    {
      "name": "NEXGEN_ID",
      "type": "esriFieldTypeInteger",
      "alias": "NEXGEN_ID",
      "domain": null
    },
    {
      "name": "created_user",
      "type": "esriFieldTypeString",
      "alias": "created_user",
      "length": 255,
      "domain": null
    },
    {
      "name": "created_date",
      "type": "esriFieldTypeDate",
      "alias": "created_date",
      "length": 8,
      "domain": null
    }
  ],
  "geometryField": {
    "name": "SHAPE",
    "type": "esriFieldTypeGeometry",
    "alias": "SHAPE"
  },
  "indexes": [
    {
      "name": "R510_pk",
      "fields": "OBJECTID",
      "isAscending": true,
      "isUnique": true,
      "description": ""
    },
    {
      "name": "S496_idx",
      "fields": "SHAPE",
      "isAscending": true,
      "isUnique": true,
      "description": ""
    }
  ],
  "subtypes": [
    
  ],
  "relationships": [
    
  ],
  "canModifyLayer": true,
  "canScaleSymbols": false,
  "hasLabels": true,
  "capabilities": "Map,Query,Data",
  "maxRecordCount": 1000,
  "supportsStatistics": true,
  "supportsAdvancedQueries": true,
  "supportedQueryFormats": "JSON, geoJSON",
  "isDataVersioned": false,
  "ownershipBasedAccessControlForFeatures": {
    "allowOthersToQuery": true
  },
  "useStandardizedQueries": true,
  "advancedQueryCapabilities": {
    "useStandardizedQueries": true,
    "supportsStatistics": true,
    "supportsHavingClause": true,
    "supportsCountDistinct": true,
    "supportsOrderBy": true,
    "supportsDistinct": true,
    "supportsPagination": true,
    "supportsTrueCurve": true,
    "supportsReturningQueryExtent": true,
    "supportsQueryWithDistance": true,
    "supportsSqlExpression": true
  },
  "supportsDatumTransformation": true,
  "dateFieldsTimeReference": null,
  "supportsCoordinatesQuantization": true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1110751#M10563</guid>
      <dc:creator>YashvitNaik</dc:creator>
      <dc:date>2021-10-25T10:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer layer labels are not displayed on iOS application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111000#M10565</link>
      <description>&lt;P&gt;Can you share the code that shows how you're adding the layer to the map/mapview?&lt;/P&gt;&lt;P&gt;The layer's JSON you shared shows the&amp;nbsp;"labelingInfo": null which suggests the labels in the JavaScript might be defined client-side?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 19:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111000#M10565</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-10-25T19:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer layer labels are not displayed on iOS application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111109#M10568</link>
      <description>&lt;P&gt;This is my code On the iOS application&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private async Task LoadFeatureTable(MapLayerVM layer)
        {
            try
            {
                var serverType = layer.FeatureService ? "/FeatureServer/" : "/MapServer/";
                var DataSourceDefinition = await AddAuthentication(layer.EsriUsername, layer.EsriPassword, layer.DataSourceDefinition, layer.TokenUrl, layer.ArcGisOnline);

                var blockGroupsUri = new Uri(DataSourceDefinition + "/" + layer.ResourceDefinition + serverType + layer.ShapeFileID);
                var featureTable = new ServiceFeatureTable(blockGroupsUri);

                featureTable.FeatureRequestMode = FeatureRequestMode.OnInteractionNoCache;
                await featureTable.LoadAsync();
                featureTables.Add(featureTable);
            
                var lyr = new FeatureLayer(featureTable);
                lyr.Opacity = 0.70;
                lyr.LabelsEnabled = true;                
               
                myMap.OperationalLayers.Add(lyr);
            }
            catch (Exception)
            {
                throw;
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Oct 2021 03:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111109#M10568</guid>
      <dc:creator>YashvitNaik</dc:creator>
      <dc:date>2021-10-26T03:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer layer labels are not displayed on iOS application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111122#M10569</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ArcGIS Online Map Viewer" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26161i3F02479F41C680B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-10-26 at 10.10.53 AM.png" alt="ArcGIS Online Map Viewer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ArcGIS Online Map Viewer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;The labels are also visible on&amp;nbsp;ArcGIS Online Map Viewer. So&amp;nbsp;&lt;SPAN&gt;JavaScript applications don't have client-side code to show labels.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 04:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111122#M10569</guid>
      <dc:creator>YashvitNaik</dc:creator>
      <dc:date>2021-10-26T04:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer layer labels are not displayed on iOS application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111830#M10590</link>
      <description>&lt;P&gt;The ArcGIS Online Map Viewer is a web app built with the ArcGIS API for JavaScript, therefore the behavior may different from the out-of-the-box&amp;nbsp;ArcGIS API for JavaScript map control.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding displaying labels in your ArcGIS Runtime app, because the service definition does not contain a label definition you will need need to add in code. For a sample see: &lt;A href="https://developers.arcgis.com/net/wpf/sample-code/show-labels-on-layers/" target="_blank"&gt;https://developers.arcgis.com/net/wpf/sample-code/show-labels-on-layers/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 19:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapserver-layer-labels-are-not-displayed-on-ios/m-p/1111830#M10590</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-10-27T19:31:40Z</dc:date>
    </item>
  </channel>
</rss>

