<?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: Why is my view tilted WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463419#M42818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/364018" target="_blank"&gt;Serge De Backer&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I slightly modified your code to add a default base layer from Esri ("streets" in this case) and add your WMS as a layer on top of it and now Flanders looks much better, not tilted anymore - see screen capture of Stabroek below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it might be some projection issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;map = new Map({
basemap: "streets",
layers: [layer]
});&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/447745_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:34:59 GMT</pubDate>
    <dc:creator>Egge-Jan_Pollé</dc:creator>
    <dc:date>2021-12-11T20:34:59Z</dc:date>
    <item>
      <title>Why is my view tilted WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463418#M42817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new in using ARCGIS JS so I watched some tutorials.&lt;/P&gt;&lt;P&gt;I used some sample code to view a map loaded in with WMS. But the maps is shown tilted instead of top view like I expected to be. Why is this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt; &amp;lt;meta&lt;BR /&gt; name="viewport"&lt;BR /&gt; content="initial-scale=1,maximum-scale=1,user-scalable=no"&lt;BR /&gt; /&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;WMTSLayer - 4.11&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;link&lt;BR /&gt; rel="stylesheet"&lt;BR /&gt; href="https://js.arcgis.com/4.11/esri/themes/light/main.css"&lt;BR /&gt; /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt; html,&lt;BR /&gt; body,&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;.esri-layer-list {&lt;BR /&gt; width: 310px;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="https://js.arcgis.com/4.11/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; var map, view, layer;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/tasks/Locator",&lt;BR /&gt; "esri/Map",&lt;BR /&gt; "esri/views/MapView",&lt;BR /&gt; "esri/widgets/Search",&lt;BR /&gt; "esri/layers/WMSLayer"&lt;BR /&gt; ], function (Locator, Map, MapView, Search, WMSLayer) {&lt;BR /&gt; layer = new WMSLayer({&lt;BR /&gt; url: 'https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms'&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var locatorTask = new Locator({&lt;BR /&gt; url:&lt;BR /&gt; "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map = new Map({&lt;BR /&gt; basemap: {&lt;BR /&gt; baseLayers: [layer]&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view = new MapView({&lt;BR /&gt; map: map,&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; constraints: {&lt;BR /&gt; rotationEnabled: false&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var search = new Search({&lt;BR /&gt; view: view&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.ui.add(search, "top-right");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /*******************************************************************&lt;BR /&gt; * This click event sets generic content on the popup not tied to&lt;BR /&gt; * a layer, graphic, or popupTemplate. The location of the point is&lt;BR /&gt; * used as input to a reverse geocode method and the resulting&lt;BR /&gt; * address is printed to the popup content.&lt;BR /&gt; *******************************************************************/&lt;BR /&gt; view.popup.autoOpenEnabled = false;&lt;BR /&gt; view.on("click", function (event) {&lt;BR /&gt; // Get the coordinates of the click on the view&lt;BR /&gt; var lat = Math.round(event.mapPoint.latitude * 1000) / 1000;&lt;BR /&gt; var lon = Math.round(event.mapPoint.longitude * 1000) / 1000;&lt;/P&gt;&lt;P&gt;view.popup.open({&lt;BR /&gt; // Set the popup's title to the coordinates of the location&lt;BR /&gt; title: "Reverse geocode: [" + lon + ", " + lat + "]",&lt;BR /&gt; location: event.mapPoint // Set the location of the popup to the clicked location&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// Display the popup&lt;BR /&gt; // Execute a reverse geocode using the clicked location&lt;BR /&gt; locatorTask&lt;BR /&gt; .locationToAddress(event.mapPoint)&lt;BR /&gt; .then(function (response) {&lt;BR /&gt; // If an address is successfully found, show it in the popup's content&lt;BR /&gt; view.popup.content = response.address;&lt;BR /&gt; })&lt;BR /&gt; .catch(function (error) {&lt;BR /&gt; // If the promise fails and no result is found, show a generic message&lt;BR /&gt; view.popup.content = "No address was found for this location";&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;/head&amp;gt;&lt;BR /&gt; &amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 20:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463418#M42817</guid>
      <dc:creator>SergeDe_Backer</dc:creator>
      <dc:date>2019-05-15T20:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my view tilted WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463419#M42818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/364018" target="_blank"&gt;Serge De Backer&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I slightly modified your code to add a default base layer from Esri ("streets" in this case) and add your WMS as a layer on top of it and now Flanders looks much better, not tilted anymore - see screen capture of Stabroek below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it might be some projection issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;map = new Map({
basemap: "streets",
layers: [layer]
});&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/447745_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463419#M42818</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2021-12-11T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my view tilted WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463420#M42819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Egge-Jan. It was indeed the missing of the basemap value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While checking your profile I saw you made some articles which look very interesting for me so I will read them thru to understand the concept more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dank je wel &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 09:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-my-view-tilted-webmap/m-p/463420#M42819</guid>
      <dc:creator>SergeDe_Backer</dc:creator>
      <dc:date>2019-05-16T09:54:05Z</dc:date>
    </item>
  </channel>
</rss>

