<?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 How do I get  a web map server to display on the map? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641636#M1958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having difficulty getting a web map server to display on the map (arcgis-runtime-sdk-java-100.1.0-1744).&amp;nbsp;My code is below. This same map server works fine with other mapping tools. I've also tried a couple of other servers as well but nothing ever displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import com.esri.arcgisruntime.layers.WmtsLayer;&lt;BR /&gt;import com.esri.arcgisruntime.loadable.LoadStatus;&lt;BR /&gt;import javafx.application.Application;&lt;BR /&gt;import javafx.scene.Scene;&lt;BR /&gt;import javafx.scene.layout.StackPane;&lt;BR /&gt;import javafx.stage.Stage;&lt;/P&gt;&lt;P&gt;import com.esri.arcgisruntime.mapping.ArcGISMap;&lt;BR /&gt;import com.esri.arcgisruntime.mapping.view.MapView;&lt;/P&gt;&lt;P&gt;public class DisplayMapSample extends Application {&lt;/P&gt;&lt;P&gt;private MapView mapView;&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; public void start(Stage stage) throws Exception {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt; // create stack pane and application scene&lt;BR /&gt; StackPane stackPane = new StackPane();&lt;BR /&gt; Scene scene = new Scene(stackPane);&lt;/P&gt;&lt;P&gt;// set title, size, and add scene to stage&lt;BR /&gt; stage.setTitle("Display Map Sample");&lt;BR /&gt; stage.setWidth(800);&lt;BR /&gt; stage.setHeight(700);&lt;BR /&gt; stage.setScene(scene);&lt;BR /&gt; stage.show();&lt;/P&gt;&lt;P&gt;ArcGISMap map = new ArcGISMap();//Basemap.createImagery());&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WmtsLayer wmtsLayer = new WmtsLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F192.168.201.97%2Fmapcache%2Fwmts" rel="nofollow" target="_blank"&gt;http://192.168.201.97/mapcache/wmts&lt;/A&gt;&lt;SPAN&gt;", "wmts");&lt;/SPAN&gt;&lt;BR /&gt; wmtsLayer.addDoneLoadingListener(new Runnable() {&lt;BR /&gt; public void run() {&lt;BR /&gt; if (wmtsLayer.getLoadStatus() == LoadStatus.LOADED) {&lt;BR /&gt; // work with WMTS layer here&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; map.getOperationalLayers().add(wmtsLayer);&lt;/P&gt;&lt;P&gt;// set the map to be displayed in this view&lt;BR /&gt; mapView = new MapView();&lt;BR /&gt; mapView.setMap(map);&lt;/P&gt;&lt;P&gt;// add the map view to stack pane&lt;BR /&gt; stackPane.getChildren().addAll(mapView);&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; // on any error, display the stack trace.&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * Stops and releases all resources used in application.&lt;BR /&gt; */&lt;BR /&gt; @Override&lt;BR /&gt; public void stop() throws Exception {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (mapView != null) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mapView.dispose();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * Opens and runs application.&lt;BR /&gt; *&lt;BR /&gt; * @param args arguments passed to this application&lt;BR /&gt; */&lt;BR /&gt; public static void main(String[] args) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; Application.launch(args);&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 12:37:52 GMT</pubDate>
    <dc:creator>RajHans</dc:creator>
    <dc:date>2017-07-17T12:37:52Z</dc:date>
    <item>
      <title>How do I get  a web map server to display on the map?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641636#M1958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having difficulty getting a web map server to display on the map (arcgis-runtime-sdk-java-100.1.0-1744).&amp;nbsp;My code is below. This same map server works fine with other mapping tools. I've also tried a couple of other servers as well but nothing ever displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import com.esri.arcgisruntime.layers.WmtsLayer;&lt;BR /&gt;import com.esri.arcgisruntime.loadable.LoadStatus;&lt;BR /&gt;import javafx.application.Application;&lt;BR /&gt;import javafx.scene.Scene;&lt;BR /&gt;import javafx.scene.layout.StackPane;&lt;BR /&gt;import javafx.stage.Stage;&lt;/P&gt;&lt;P&gt;import com.esri.arcgisruntime.mapping.ArcGISMap;&lt;BR /&gt;import com.esri.arcgisruntime.mapping.view.MapView;&lt;/P&gt;&lt;P&gt;public class DisplayMapSample extends Application {&lt;/P&gt;&lt;P&gt;private MapView mapView;&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; public void start(Stage stage) throws Exception {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt; // create stack pane and application scene&lt;BR /&gt; StackPane stackPane = new StackPane();&lt;BR /&gt; Scene scene = new Scene(stackPane);&lt;/P&gt;&lt;P&gt;// set title, size, and add scene to stage&lt;BR /&gt; stage.setTitle("Display Map Sample");&lt;BR /&gt; stage.setWidth(800);&lt;BR /&gt; stage.setHeight(700);&lt;BR /&gt; stage.setScene(scene);&lt;BR /&gt; stage.show();&lt;/P&gt;&lt;P&gt;ArcGISMap map = new ArcGISMap();//Basemap.createImagery());&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WmtsLayer wmtsLayer = new WmtsLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F192.168.201.97%2Fmapcache%2Fwmts" rel="nofollow" target="_blank"&gt;http://192.168.201.97/mapcache/wmts&lt;/A&gt;&lt;SPAN&gt;", "wmts");&lt;/SPAN&gt;&lt;BR /&gt; wmtsLayer.addDoneLoadingListener(new Runnable() {&lt;BR /&gt; public void run() {&lt;BR /&gt; if (wmtsLayer.getLoadStatus() == LoadStatus.LOADED) {&lt;BR /&gt; // work with WMTS layer here&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; map.getOperationalLayers().add(wmtsLayer);&lt;/P&gt;&lt;P&gt;// set the map to be displayed in this view&lt;BR /&gt; mapView = new MapView();&lt;BR /&gt; mapView.setMap(map);&lt;/P&gt;&lt;P&gt;// add the map view to stack pane&lt;BR /&gt; stackPane.getChildren().addAll(mapView);&lt;BR /&gt; } catch (Exception e) {&lt;BR /&gt; // on any error, display the stack trace.&lt;BR /&gt; e.printStackTrace();&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * Stops and releases all resources used in application.&lt;BR /&gt; */&lt;BR /&gt; @Override&lt;BR /&gt; public void stop() throws Exception {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (mapView != null) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mapView.dispose();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * Opens and runs application.&lt;BR /&gt; *&lt;BR /&gt; * @param args arguments passed to this application&lt;BR /&gt; */&lt;BR /&gt; public static void main(String[] args) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; Application.launch(args);&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 12:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641636#M1958</guid>
      <dc:creator>RajHans</dc:creator>
      <dc:date>2017-07-17T12:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get  a web map server to display on the map?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641637#M1959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check those first:&lt;/P&gt;&lt;P&gt;1) Are you sure that "&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F192.168.201.97%2Fmapcache%2Fwmts" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #287433;"&gt;http://192.168.201.97/mapcache/wmts&lt;/SPAN&gt;&lt;/A&gt;" is the service endpoint?&lt;/P&gt;&lt;P&gt;2) Does WKID and Tiling scheme align with ArcGIS Online?&lt;/P&gt;&lt;P&gt;3) What does say network inspector? Is there any request to endpoint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 06:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641637#M1959</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2017-07-19T06:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get  a web map server to display on the map?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641638#M1960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;1) Yes that is the end point - this map server works with other GIS libraries.&lt;/P&gt;&lt;P&gt;2) The map server is OGC compliant. Is ArcGIS? (Or do you mean something else here?)&lt;/P&gt;&lt;P&gt;3) The endpoint gets the requests for sure (proven with other libraries consistently)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-do-i-get-a-web-map-server-to-display-on-the/m-p/641638#M1960</guid>
      <dc:creator>RajHans</dc:creator>
      <dc:date>2017-07-19T12:55:15Z</dc:date>
    </item>
  </channel>
</rss>

