<?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 Why  doesn't  the annotation  and the map  match? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/why-doesn-t-the-annotation-and-the-map-match/m-p/490868#M19027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;Why &amp;nbsp;doesn't &amp;nbsp;the annotation &amp;nbsp;and the map &amp;nbsp;match?&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;There are two arcgis map services.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The map service is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer" style="color: #2a6496; background: 0px 0px; text-decoration: underline;"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer&lt;/A&gt;.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The&amp;nbsp;annotation &amp;nbsp; service &amp;nbsp; is &amp;nbsp;&amp;nbsp;&lt;A href="http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer" style="color: #2a6496; background: 0px 0px; text-decoration: underline;"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer&lt;/A&gt;.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The webgis which I use is openlayer3.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;new ol.layer.Tile({&lt;BR /&gt;source: new ol.source.TileArcGISRest({&lt;BR /&gt;&lt;SPAN&gt;url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmape.shanghai-map.net%2FArcGIS%2Frest%2Fservices%2FSHMAP_D%2FMapServer" rel="nofollow" target="_blank"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;})&lt;BR /&gt;}),&lt;BR /&gt;new ol.layer.Tile({&lt;BR /&gt;source: new ol.source.TileArcGISRest({&lt;BR /&gt;&lt;SPAN&gt;url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmape.shanghai-map.net%2FArcGIS%2Frest%2Fservices%2FSHMAP_DZJ%2FMapServer" rel="nofollow" target="_blank"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;})&lt;BR /&gt;})&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;But &amp;nbsp;the &amp;nbsp;annotation &amp;nbsp; doesn't &amp;nbsp;match &amp;nbsp;&amp;nbsp;the &amp;nbsp;map.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;1、Does the annotation &amp;nbsp;has &amp;nbsp;to &amp;nbsp;import with &amp;nbsp;special method &amp;nbsp;in openlayer3? &amp;nbsp; Why &amp;nbsp;doesn't &amp;nbsp;the annotation &amp;nbsp;and the map &amp;nbsp;match?&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;I tried use &amp;nbsp;map tile of the two service, But I&amp;nbsp;can't exactly calculate the Y value and I don't know the {z}/{y}/{x}?&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;I&amp;nbsp;&amp;nbsp;tried use a function of openlayer3 to&amp;nbsp;&amp;nbsp;calculate the z\ y\x value, but I can't&amp;nbsp;&amp;nbsp;calculate the Y value &amp;nbsp;very accurate.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The code as below:&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;var source = new ol.source.XYZ({&lt;BR /&gt;wrapX: false,&lt;BR /&gt;// tileSize: 512,&lt;BR /&gt;tilePixelRatio: 2,&lt;BR /&gt;tileGrid: ol.tilegrid.createXYZ({}),&lt;BR /&gt;tileUrlFunction: function (tileCoord) {&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;&lt;SPAN&gt;const u = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmape.shanghai-map.net%2FArcGIS%2Frest%2Fservices%2FSHMAP_D%2FMapServer%27%3B" rel="nofollow" target="_blank"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer';&lt;/A&gt;&lt;BR /&gt;let z = tileCoord[0];&lt;BR /&gt;let x = tileCoord[1];&lt;BR /&gt;let y = -tileCoord[2] - 1;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;// let z = 'L' + (this.zeroPad(tileCoord[0], 2, 10));&lt;BR /&gt;// let x = 'C' + this.zeroPad(tileCoord[1], 8, 16);&lt;BR /&gt;// let y = 'R' + this.zeroPad(-tileCoord[2] - 1, 8, 16);&lt;BR /&gt;return u + '/tile/' + (z - 10) + '/' + (y - Math.pow(2, z - 2) + Math.pow(2, z - &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; + 1) + '/' + x;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;}&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;2、Why should I have to&amp;nbsp;&amp;nbsp;calculate the z\ y\x value? &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;Doesn't use &amp;nbsp;&lt;A href="http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer/tile/{z}/{y}/{x}" style="color: #2a6496; background: 0px 0px; text-decoration: underline;"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer/tile/{z}/{y}/{x}&lt;/A&gt;&amp;nbsp; directtly?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;How can I calculate&amp;nbsp;the y-value right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2017 19:32:38 GMT</pubDate>
    <dc:creator>chengchao</dc:creator>
    <dc:date>2017-08-09T19:32:38Z</dc:date>
    <item>
      <title>Why  doesn't  the annotation  and the map  match?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/why-doesn-t-the-annotation-and-the-map-match/m-p/490868#M19027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;Why &amp;nbsp;doesn't &amp;nbsp;the annotation &amp;nbsp;and the map &amp;nbsp;match?&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;There are two arcgis map services.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The map service is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer" style="color: #2a6496; background: 0px 0px; text-decoration: underline;"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer&lt;/A&gt;.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The&amp;nbsp;annotation &amp;nbsp; service &amp;nbsp; is &amp;nbsp;&amp;nbsp;&lt;A href="http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer" style="color: #2a6496; background: 0px 0px; text-decoration: underline;"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer&lt;/A&gt;.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The webgis which I use is openlayer3.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;new ol.layer.Tile({&lt;BR /&gt;source: new ol.source.TileArcGISRest({&lt;BR /&gt;&lt;SPAN&gt;url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmape.shanghai-map.net%2FArcGIS%2Frest%2Fservices%2FSHMAP_D%2FMapServer" rel="nofollow" target="_blank"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;})&lt;BR /&gt;}),&lt;BR /&gt;new ol.layer.Tile({&lt;BR /&gt;source: new ol.source.TileArcGISRest({&lt;BR /&gt;&lt;SPAN&gt;url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmape.shanghai-map.net%2FArcGIS%2Frest%2Fservices%2FSHMAP_DZJ%2FMapServer" rel="nofollow" target="_blank"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;})&lt;BR /&gt;})&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;But &amp;nbsp;the &amp;nbsp;annotation &amp;nbsp; doesn't &amp;nbsp;match &amp;nbsp;&amp;nbsp;the &amp;nbsp;map.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;1、Does the annotation &amp;nbsp;has &amp;nbsp;to &amp;nbsp;import with &amp;nbsp;special method &amp;nbsp;in openlayer3? &amp;nbsp; Why &amp;nbsp;doesn't &amp;nbsp;the annotation &amp;nbsp;and the map &amp;nbsp;match?&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;I tried use &amp;nbsp;map tile of the two service, But I&amp;nbsp;can't exactly calculate the Y value and I don't know the {z}/{y}/{x}?&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;I&amp;nbsp;&amp;nbsp;tried use a function of openlayer3 to&amp;nbsp;&amp;nbsp;calculate the z\ y\x value, but I can't&amp;nbsp;&amp;nbsp;calculate the Y value &amp;nbsp;very accurate.&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;The code as below:&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;var source = new ol.source.XYZ({&lt;BR /&gt;wrapX: false,&lt;BR /&gt;// tileSize: 512,&lt;BR /&gt;tilePixelRatio: 2,&lt;BR /&gt;tileGrid: ol.tilegrid.createXYZ({}),&lt;BR /&gt;tileUrlFunction: function (tileCoord) {&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;&lt;SPAN&gt;const u = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmape.shanghai-map.net%2FArcGIS%2Frest%2Fservices%2FSHMAP_D%2FMapServer%27%3B" rel="nofollow" target="_blank"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_D/MapServer';&lt;/A&gt;&lt;BR /&gt;let z = tileCoord[0];&lt;BR /&gt;let x = tileCoord[1];&lt;BR /&gt;let y = -tileCoord[2] - 1;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;// let z = 'L' + (this.zeroPad(tileCoord[0], 2, 10));&lt;BR /&gt;// let x = 'C' + this.zeroPad(tileCoord[1], 8, 16);&lt;BR /&gt;// let y = 'R' + this.zeroPad(-tileCoord[2] - 1, 8, 16);&lt;BR /&gt;return u + '/tile/' + (z - 10) + '/' + (y - Math.pow(2, z - 2) + Math.pow(2, z - &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; + 1) + '/' + x;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;}&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;2、Why should I have to&amp;nbsp;&amp;nbsp;calculate the z\ y\x value? &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;Doesn't use &amp;nbsp;&lt;A href="http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer/tile/{z}/{y}/{x}" style="color: #2a6496; background: 0px 0px; text-decoration: underline;"&gt;http://mape.shanghai-map.net/ArcGIS/rest/services/SHMAP_DZJ/MapServer/tile/{z}/{y}/{x}&lt;/A&gt;&amp;nbsp; directtly?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; font-weight: 300; font-size: 14px;"&gt;How can I calculate&amp;nbsp;the y-value right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/why-doesn-t-the-annotation-and-the-map-match/m-p/490868#M19027</guid>
      <dc:creator>chengchao</dc:creator>
      <dc:date>2017-08-09T19:32:38Z</dc:date>
    </item>
  </channel>
</rss>

