Basemap and Tiled Service at different coordinate systems

722
3
03-23-2014 01:16 AM
IvoSajer
New Contributor
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);
0 Kudos
3 Replies
JeffPace
MVP Alum
you cannot.  All tiled (basemap included) layers must be at the same coordinate system

You can take your basemap and simply chance the coordinate system of the data frame without changing you data.  Then recache at 102100 (3857) to match the basemap

Projecting on the fly in your map will add a little to cache time, but once it is cache will not affect tile draw time
0 Kudos
IvoSajer
New Contributor
thanks for your answer,
i know that i can create my own basemap at correct wkid, but i would like to have open street map as basemap, so its no way how to do that?

Thanks for your answer
0 Kudos
JeffPace
MVP Alum
You cannot use openstreetmap with tiled data in another coordinate system
0 Kudos