jsapi-resources icon indicating copy to clipboard operation
jsapi-resources copied to clipboard

Arcgis DynamicMapServiceLayer overlay WebTiledLayer

Open blinters opened this issue 8 years ago • 6 comments

Hi there, I am using arcgis api 3.20. I tried to overlay arcgis dynamicmapservicelayer on top of webtiledlayer but it only shows the dynamicmapservicelayer and ignoring the webtiledlayer. And if i reverse the order, only webtiledlayer is shown. How is this so?

Below is my sample code.

  var maptiler1 =new WebTiledLayer("http://localhost:8080/tms/1.0.0/sweden/EPSG3414/{level}/{col}/{row}.png", {
      "copyright": '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attributions">CARTO</a>',
      "id": "cartodb",
      "opacity": 0
    });
   map.addLayer(maptiler1);

  var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer", {
        "opacity":0.5
    });
  
   map.addLayer(layer); 

Any help will be appreciated!

blinters avatar May 06 '17 02:05 blinters

Generally, these types of questions more technical in nature and not directly related to the resources within this repo should be directed to our support team, [email protected].

hgonzago avatar May 08 '17 11:05 hgonzago

@hgonzago is right. another option would be using geonet.

given that your tiles were cooked in EPSG:3414, you might try supplying a tileInfo object that describes the non-web mercator projection in the WebTiledLayer constructor.

its tough to provide further assistance given that your tiles are only accessible on your own machine.

jgravois avatar May 08 '17 22:05 jgravois

@hgonzago @jgravois thanks for the feedback. I will drop [email protected] a email on this as well as geonet. Just a quick question, I have a TMS (Tiled Map Service) end point and I would like to use it in arcgis .js to build a application, do you guys think that is possible? the TMS is not from arcgis, rather a 3rd party source.

Cheers

blinters avatar May 09 '17 14:05 blinters

I have a TMS (Tiled Map Service) end point and I would like to use it in arcgis .js to build a application, do you guys think that is possible? the TMS is not from arcgis, rather a 3rd party source.

Depending on the details, but yes the JSAPI supports this using WebTiledLayer.

bsvensson avatar May 09 '17 15:05 bsvensson

Thanks @bsvensson , I am one step closer to what I would like to achieve. I bet the missing step left is the tileInfo which i would need to as mentioned by @jgravois ,that describes the non-web mercator projection in the WebTiledLayer constructor.

But I was being told before that EPSG:3414 "origin is an attribute of the grid and is independent of the actual projection". As such, what should I feed in the origin below? And is my declaration for tileInfo in the correct manner?

EPSG:3414 standard -> https://sirent.inlis.gov.sg/CoordinateSystems.aspx

    var maptiler =new 
    WebTiledLayer("http://localhost:8080/tms/1.0.0/sweden/EPSG3414/{level}/{col}/{row}.png", {
    tileInfo: new TileInfo({
        dpi: 96,
        rows: 256,
        cols: 256,
        origin: {
            x: ??,
            y: ??
        },
        spatialReference: {
            wkid: 3414
        },
        lods: lods
    })

    });

Cheers =)

blinters avatar May 09 '17 16:05 blinters

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you need additional assistance please contact Esri Technical Support. Thank you for your contributions.

github-actions[bot] avatar Sep 24 '22 00:09 github-actions[bot]

This issue has been automatically closed due to inactivity. If you need additional assistance please contact Esri Technical Support.

github-actions[bot] avatar Oct 25 '22 00:10 github-actions[bot]