<?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: Add point different spatialReference show up incorrect place? api arcgis javascript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431189#M39694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;La sinh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You could start a new mxd and set the dataframe to 102100 and add an esri basemap in 102100 (just for testing of feature alignment) then once you have things looking correctly in ArcMap you can remove the basemap and publish a new service that will have proper alignment with web mercator (102100). This way you are not duplicating the data but you are adding a new map service. Another way is to determine the proper transformation that need to be applied to the re-projection of VN_2000 to Web Mercator and then you can apply that transformation to the GeometryService.project in your JS code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 02:18:26 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-12-16T02:18:26Z</dc:date>
    <item>
      <title>Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431180#M39685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;use services&amp;nbsp;arcgis onlie&amp;nbsp;as basemap&amp;nbsp;of application &lt;A class="link-titled" href="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" title="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I query featues ( features is point and &amp;nbsp;&lt;SPAN&gt;point &amp;nbsp;&lt;/SPAN&gt;in spatialReference VN_2000) from my services &amp;nbsp;add them to the map; but not in&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;correct &lt;/SPAN&gt;place.&lt;/P&gt;&lt;P&gt;Project my service&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;XMin: 385598.2612&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;YMin: 1140834.1165&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;XMax: 489255.87930000003&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;YMax: 1304237.5362&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Spatial Reference: PROJCS["VN-2000",GEOGCS["GCS_VN_2000",DATUM["D_VN_2000",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",107.75],PARAMETER["Scale_Factor",0.9999],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]],VERTCS["Hon_Dau_1992",VDATUM["Hon_Dau_1992"],PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],UNIT["Meter",1.0]]&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code below:&lt;/P&gt;&lt;P&gt;var querytimkiem = new Query();&lt;BR /&gt; var strSearch = dom.byId("inputSearch").value.toString().toLowerCase();&lt;BR /&gt; var array = strSearch.split(" ");&lt;BR /&gt; var strSearch = "";&lt;BR /&gt; for (i = 0; i &amp;lt; array.length; i++) {&lt;BR /&gt; if (strSearch != "") {&lt;BR /&gt; strSearch += " And ";&lt;BR /&gt; }&lt;BR /&gt; strSearch += " (lower(TEN) LIKE'%" + array&lt;I&gt; + "%')";&lt;BR /&gt; }&lt;BR /&gt; querytimkiem.where = "(" + strSearch + ")";&lt;BR /&gt; querytimkiem.returnGeometry = true;&lt;BR /&gt; querytimkiem.outSpatialReference = { wkid: 102100 }&lt;BR /&gt; var qttimkiem = new QueryTask("Url");&lt;BR /&gt; qttimkiem.execute(querytimkiem, searchCongTrinhCallBack);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function searchCongTrinhCallBack(featureSet) {&lt;BR /&gt; var symbolXem = new esri.symbol.PictureMarkerSymbol({&lt;BR /&gt; "angle": 0,&lt;BR /&gt; "xoffset": 0,&lt;BR /&gt; "yoffset": 10,&lt;BR /&gt; "type": "esriPMS",&lt;BR /&gt; "url": "Images/GreenPin1LargeB.png",&lt;BR /&gt; "contentType": "image/png",&lt;BR /&gt; "width": 27,&lt;BR /&gt; "height": 27&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var graphic;&lt;BR /&gt; var params;&lt;/P&gt;&lt;P&gt;var outSR = new esri.SpatialReference({&lt;BR /&gt; wkid: 102100&lt;BR /&gt; });&lt;BR /&gt; var resultFeatures = featureSet.features;&lt;BR /&gt; var geometryService = new esri.tasks.GeometryService("url");&lt;BR /&gt; for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {&lt;BR /&gt; var pont = new Point(resultFeatures&lt;I&gt;.geometry); &lt;BR /&gt; params = new ProjectParameters();&lt;BR /&gt; params.geometries = [pont];&lt;BR /&gt; params.outSR = outSR;&lt;BR /&gt; geometryService.project(params, function (outputpoint) {&lt;BR /&gt; var pont = new Point(outputpoint[0].x, outputpoint[0].y, outSR);&lt;BR /&gt; graphic = new esri.Graphic(pont, symbolXem);&lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; });&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 08:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431180#M39685</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2016-12-13T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431181#M39686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;La sinh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Your QueryTask is already requesting the returned results be in WKID 102100 so there should be no need to re-project the result to 102100 in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431181#M39686</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-13T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431182#M39687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank repply!! How to re-project result to 102100? how to&amp;nbsp;use&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Topo_Map%2FMapServer" rel="nofollow" style="color: #000000; background-color: #ffffff; border: 0px; text-decoration: underline; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;any project?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 00:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431182#M39687</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2016-12-14T00:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431183#M39688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;La sinh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;I am confused by your question. I just replied that you do not have to re-project your data as your QueryTask is already requesting the results in 102100 like your base map is in. the basemap data can not be re-projected so that is not an option. Because your basemap is WKID 102100 and your QueryTask results are returned in 102100 you should not have to do anything but add the returned graphics to the map. So I am not sure what issue you are having.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 00:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431183#M39688</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-14T00:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431184#M39689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I add &amp;nbsp;results from querytask to map, but point not incorrect place&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="add point not correct place" class="image-1 jive-image j-img-original" src="/legacyfs/online/282583_not addcorret.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All My code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd" rel="nofollow" target="_blank"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;html xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml" rel="nofollow" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1"&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.18%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="rounded_files/mbcsmbrounded.css" type="text/css" /&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmaxcdn.bootstrapcdn.com%2Fbootstrap%2F3.3.6%2Fcss%2Fbootstrap.min.css" rel="nofollow" target="_blank"&gt;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;link href="css/jquery-ui.min.css" rel="stylesheet" /&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.12.4%2Fjquery.min.js" rel="nofollow" target="_blank"&gt;https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcode.jquery.com%2Fui%2F1.12.0%2Fjquery-ui.js" rel="nofollow" target="_blank"&gt;https://code.jquery.com/ui/1.12.0/jquery-ui.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmaxcdn.bootstrapcdn.com%2Fbootstrap%2F3.3.6%2Fjs%2Fbootstrap.min.js" rel="nofollow" target="_blank"&gt;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;script&amp;gt; &lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;link href="css/main.css" rel="stylesheet" /&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.18%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt; var map;&lt;BR /&gt; require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "dojo/ready",&lt;BR /&gt; "esri/tasks/ProjectParameters",&lt;BR /&gt; "dojo/dom-construct",&lt;BR /&gt; "dojo/query",&lt;BR /&gt; "dgrid/OnDemandGrid",&lt;BR /&gt; "dgrid/Selection",&lt;BR /&gt; "dojo/store/Memory",&lt;BR /&gt; "dojo/_base/declare",&lt;BR /&gt; "dojo/number",&lt;BR /&gt; "esri/dijit/Legend",&lt;BR /&gt; "esri/layers/ArcGISTiledMapServiceLayer",&lt;BR /&gt; "esri/renderers/UniqueValueRenderer",&lt;BR /&gt; "esri/tasks/query",&lt;BR /&gt; "esri/tasks/QueryTask",&lt;BR /&gt; "esri/geometry/Circle",&lt;BR /&gt;"esri/InfoTemplate",&lt;BR /&gt;"esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt;"esri/symbols/SimpleLineSymbol",&lt;BR /&gt;"esri/symbols/SimpleFillSymbol",&lt;BR /&gt;"esri/Color",&lt;BR /&gt;"dojo/dom",&lt;BR /&gt; "dojo/query",&lt;BR /&gt;"esri/layers/FeatureLayer",&lt;BR /&gt;"esri/dijit/PopupTemplate",&lt;BR /&gt;"esri/geometry/Point",&lt;BR /&gt;"esri/graphic",&lt;BR /&gt;"dojo/on",&lt;BR /&gt;"dojo/_base/array",&lt;BR /&gt;"dojo/parser",&lt;BR /&gt;"dojo/domReady!"&lt;/P&gt;&lt;P&gt;], function (&lt;BR /&gt;Map,&lt;BR /&gt;ready,&lt;BR /&gt;ProjectParameters,&lt;BR /&gt;domConstruct,&lt;BR /&gt;query,&lt;BR /&gt;Grid,&lt;BR /&gt;Selection,&lt;BR /&gt;Memory,&lt;BR /&gt;declare,&lt;BR /&gt;dojoNum,&lt;BR /&gt;Legend,&lt;BR /&gt;ArcGISTiledMapServiceLayer,&lt;BR /&gt;UniqueValueRenderer,&lt;BR /&gt; Query,&lt;BR /&gt; QueryTask,&lt;BR /&gt; Circle,&lt;BR /&gt;InfoTemplate,&lt;BR /&gt;SimpleMarkerSymbol,&lt;BR /&gt;SimpleLineSymbol,&lt;BR /&gt;SimpleFillSymbol,&lt;BR /&gt;Color,&lt;BR /&gt;dom,&lt;BR /&gt;query,&lt;BR /&gt;FeatureLayer,&lt;BR /&gt;PopupTemplate,&lt;BR /&gt;Point,&lt;BR /&gt;Graphic,&lt;BR /&gt;on,&lt;BR /&gt;array,&lt;BR /&gt;parser&lt;BR /&gt;) {&lt;BR /&gt; ready(function () {&lt;BR /&gt; parser.parse();&lt;BR /&gt; });&lt;BR /&gt; map = new Map("mapDiv", {&lt;BR /&gt; zoom: 8,&lt;BR /&gt; // center: [-118, 34.5]&lt;BR /&gt; center: [107.169977, 10.940923]&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;&lt;SPAN&gt; var layer = new esri.layers.ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Topo_Map%2FMapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt; {&lt;BR /&gt; id: "chkgoogletopo"&lt;BR /&gt; });&lt;BR /&gt; map.addLayer(layer);&lt;BR /&gt;&lt;SPAN&gt; var tiled = new ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fstnmt.dongnai.gov.vn%3A8080%2Fatlasadaptor%2Frest%2Fservices%2FBandochuyende%2FNEN_CAOSU_CGM%2FMapServer" rel="nofollow" target="_blank"&gt;http://stnmt.dongnai.gov.vn:8080/atlasadaptor/rest/services/Bandochuyende/NEN_CAOSU_CGM/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; map.addLayers([tiled]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; $("#searchinputIcon").click(function () {&lt;BR /&gt; // $("#divsearch").show();&lt;BR /&gt; // $("#divshowdata").show();&lt;/P&gt;&lt;P&gt;searchLoNongTruong();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; });&lt;BR /&gt; $("#inputSearch").keypress(function (event) {&lt;BR /&gt; var keycode = (event.keyCode ? event.keyCode : event.which);&lt;BR /&gt; if (keycode == '13') {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; searchLoNongTruong();&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;function searchLoNongTruong() {&lt;BR /&gt; var querytimkiem = new Query();&lt;BR /&gt; var strSearch = dom.byId("inputSearch").value.toString().toLowerCase();&lt;BR /&gt; var array = strSearch.split(" ");&lt;BR /&gt; var strSearch = "";&lt;BR /&gt; for (i = 0; i &amp;lt; array.length; i++) {&lt;BR /&gt; if (strSearch != "") {&lt;BR /&gt; strSearch += " And ";&lt;BR /&gt; }&lt;BR /&gt; strSearch += " (lower(TEN) LIKE'%" + array&lt;I&gt; + "%')";&lt;BR /&gt; }&lt;BR /&gt; querytimkiem.where = "(" + strSearch + ")";&lt;BR /&gt; querytimkiem.returnGeometry = true;&lt;BR /&gt; querytimkiem.outSpatialReference = { wkid: 102100 }&lt;BR /&gt;&lt;SPAN&gt; var qttimkiem = new QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fstnmt.dongnai.gov.vn%3A8080%2Fatlasadaptor%2Frest%2Fservices%2FAtlas2015%2FNEN_KTXH_150715%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;http://stnmt.dongnai.gov.vn:8080/atlasadaptor/rest/services/Atlas2015/NEN_KTXH_150715/MapServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; qttimkiem.execute(querytimkiem, searchCongTrinhCallBack);&lt;BR /&gt; }&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function searchCongTrinhCallBack(featureSet) {&lt;BR /&gt; var symbolXem = new esri.symbol.PictureMarkerSymbol({&lt;BR /&gt; "angle": 0,&lt;BR /&gt; "xoffset": 0,&lt;BR /&gt; "yoffset": 10,&lt;BR /&gt; "type": "esriPMS",&lt;BR /&gt; "url": "Images/GreenPin1LargeB.png",&lt;BR /&gt; "contentType": "image/png",&lt;BR /&gt; "width": 27,&lt;BR /&gt; "height": 27&lt;BR /&gt; });&lt;BR /&gt; var infoTemplate = new InfoTemplate("Kết quả tìm kiếm:", "content");&lt;BR /&gt; var graphic;&lt;BR /&gt; var content = "abc";&lt;BR /&gt; var title = "bcd";&lt;BR /&gt; var params;&lt;BR /&gt; var outSR = new esri.SpatialReference({&lt;BR /&gt; wkid: 102100&lt;BR /&gt; });&lt;BR /&gt; var resultFeatures = featureSet.features;&lt;BR /&gt;&lt;SPAN&gt; var geometryService = new esri.tasks.GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fstnmt.dongnai.gov.vn%3A8080%2Fatlasadaptor%2Frest%2Fservices%2FUtilities%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;http://stnmt.dongnai.gov.vn:8080/atlasadaptor/rest/services/Utilities/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {&lt;BR /&gt; graphic = resultFeatures&lt;I&gt;;&lt;BR /&gt; graphic.setSymbol(symbolXem);&lt;BR /&gt; graphic.setInfoTemplate(infoTemplate);&lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; map.infoWindow.setTitle(title);&lt;BR /&gt; map.infoWindow.setContent(content);&lt;BR /&gt; map.infoWindow.setFeatures([resultFeatures&lt;I&gt;]);&lt;BR /&gt; map.infoWindow.show(resultFeatures&lt;I&gt;.geometry);&lt;BR /&gt; map.centerAndZoom(resultFeatures&lt;I&gt;.geometry, 15);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; $("#ui-id-1").click(function () {&lt;BR /&gt; searchTenNongTruong();&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;$(".logo-med").hide();&lt;BR /&gt; $(".esriControlsBR").hide();&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body class="claro"&amp;gt;&lt;BR /&gt; &amp;lt;div id="conttain"&amp;gt; &lt;BR /&gt; &amp;lt;div id="menubar"&amp;gt; &lt;BR /&gt; &amp;lt;div id="divcontantcontrol"&amp;gt;&lt;BR /&gt; &amp;lt;div class="form-group has-feedback"&amp;gt;&lt;BR /&gt; &amp;lt;span id="searchinputIcon" class="glyphicon glyphicon-search"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &amp;lt;input type="text" class="form-control" id="inputSearch"&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="divmap_data"&amp;gt;&lt;BR /&gt; &amp;lt;div id="mapDiv"&amp;gt; &lt;BR /&gt; &amp;lt;/div&amp;gt; &lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 03:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431184#M39689</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2016-12-14T03:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431185#M39690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;La sinh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When I add the&amp;nbsp;Congtrinh_du layer to the map as a FeatureLayer the result of the query and the geometry from the FeatureLayer for&amp;nbsp;Bệnh viện Đa khoa Trảng Bom are in the same location. So are&amp;nbsp;you are saying that all your data from the&amp;nbsp;&lt;SPAN&gt;Congtrinh_du layer are&amp;nbsp;in the incorrect location?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431185#M39690</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-14T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431186#M39691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, &amp;nbsp;data from congtrinh_du layer incorrect &amp;nbsp;location. &lt;SPAN&gt;&amp;nbsp;d&lt;/SPAN&gt;&lt;SPAN&gt;ata from congtrinh_du layer &lt;/SPAN&gt;&amp;nbsp;displayed incorrectly with cached images.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;ata from congtrinh_du in project VN_2000.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;sevices map of esri:&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Topo_Map%2FMapServer" rel="nofollow" style="color: #000000; background-color: #ffffff; border: 0px; text-decoration: underline; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&amp;nbsp;and my services&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fstnmt.dongnai.gov.vn%3A8080%2Fatlasadaptor%2Frest%2Fservices%2FBandochuyende%2FNEN_CAOSU_CGM%2FMapServer" rel="nofollow" style="color: #000000; background-color: #ffffff; border: 0px; text-decoration: underline; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://stnmt.dongnai.gov.vn:8080/atlasadaptor/rest/services/Bandochuyende/NEN_CAOSU_CGM/MapServer&lt;/A&gt;&amp;nbsp;in&amp;nbsp;wkid 102100 (Spatial Reference: 102100 &amp;nbsp;(3857)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is that cause for points displayed incorrectly&amp;nbsp;Location, how to solve prolem,&amp;nbsp;&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;any suggestions? thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 class="" style="color: #222222; background-color: #ffffff; font-size: 18px;"&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 01:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431186#M39691</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2016-12-15T01:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431187#M39692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;La sinh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Yes the problem is a projection issue the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;congtrinh_du in project VN_2000 (a custom projection, i.e. no WKID). There is likely some transformation that needs to be applied to the projection of the data. In ArcMap can you get&amp;nbsp;&lt;SPAN&gt;congtrinh_du layer to align properly when you have the dataframes projection set to 102100 by adding a esri basemap in 102100?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431187#M39692</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-15T13:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431188#M39693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Means that change&amp;nbsp;projection&amp;nbsp;of the data congtrinh_du to 102100? other way without changing &lt;SPAN style="background-color: #ffffff;"&gt;projection of the data? &amp;nbsp;because I have used congtrinh_du in another&amp;nbsp;application, and I do not want to copy the data into a new&amp;nbsp;congtrinh_du that new congtrinh_du.&amp;nbsp;have any of the approaches? thank!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 01:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431188#M39693</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2016-12-16T01:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431189#M39694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;La sinh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You could start a new mxd and set the dataframe to 102100 and add an esri basemap in 102100 (just for testing of feature alignment) then once you have things looking correctly in ArcMap you can remove the basemap and publish a new service that will have proper alignment with web mercator (102100). This way you are not duplicating the data but you are adding a new map service. Another way is to determine the proper transformation that need to be applied to the re-projection of VN_2000 to Web Mercator and then you can apply that transformation to the GeometryService.project in your JS code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 02:18:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431189#M39694</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-16T02:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add point different spatialReference show up incorrect place? api arcgis javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431190#M39695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i will try what you instructions, and notify the results to you! thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 02:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-different-spatialreference-show-up/m-p/431190#M39695</guid>
      <dc:creator>lasinh</dc:creator>
      <dc:date>2016-12-16T02:44:00Z</dc:date>
    </item>
  </channel>
</rss>

