saj0023

Basemap and Tiled Service at different coordinate systems

Discussion created by saj0023 on Mar 23, 2014
Latest reply on Mar 25, 2014 by jeff.pace
Hello, im beginner at javascript api, i would like to add basemap or basemap gallery with my tiled(dynamic) service layer, and I dont know how to do that, my services are in wkid: 102067 and i know that basemap is on WGS 1984, can i do some transformation?


code:

<script>
      var map;
   
      require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "esri/dijit/Scalebar","esri/dijit/Legend", "dojo/domReady!"],
        function(Map, Tiled, Scalebar, Legend) {
          map = new Map("mapDiv", {
   
   
    center: [50, 30],
         zoom: 4,
         basemap: "topo"
   
  
          sliderOrientation : "horizontal",
    sliderStyle: "small",
    sliderPosition:"top-right"
        });

          var tiled = new Tiled("...");
          map.addLayer(tiled);

Outcomes