How to add Tiled service as layer

3809
3
04-15-2015 08:15 AM
WalterEralio
New Contributor III

I'll like to add this service

https://rest.parcelatlas.com/Tiles/D3342484-32CD-DD11-AF04-0003FF70C8AE/0320210202001111

(description here: https://rest.parcelatlas.com/HowTo.aspx  )

  1. Tiles by Quad Key

    /Tiles/{contract ID}/{quad key}

    Example: /Tiles/D3342484-32CD-DD11-AF04-0003FF70C8AE/0320210202001111
    A quad tile image showing parcels, suitable for use in a Microsoft Bing Maps application or other mapping application.

as another layer .. can that be done? I know it can be added with Virtual Earth  like

http://www.parcelatlas.com/ParcelAltasServices/

Any idea or hint? 

Tags (1)
0 Kudos
3 Replies
KellyHutchins
Esri Frequent Contributor

Take a look at the WebTiledLayer class - it allows you to add map tiles to a map.  Here's a link to a sample showing how this class works:

Web tiled layer - many layers | ArcGIS API for JavaScript

0 Kudos
WalterEralio
New Contributor III

I checked it but couldn't figure the quadtree parameter nor where to put the contractID etc.. will keep trying

0 Kudos
WalterEralio
New Contributor III

Sorry to bother you since you are the only one to reply.. checking the info I cannot figure out if the service provided by parcelatlas has all the features I need to setup as a web tiled layer..
Do I have to set the parameters like the contractID as part of attributes?

I have 2 different options to access the data:

(https://rest.parcelatlas.com/HowTo.aspx  like)
https://rest.parcelatlas.com/Tiles/D3342484-32CD-DD11-AF04-0003FF70C8AE/0320210202001111

and

http://www.parcelatlas.com/ParcelAltasServices/

as a layer over bing maps

   <head>
   <title></title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>
   <script type="text/javascript">
  var map = null;
  var tileLayer;
  function GetMap()
  {
  map = new VEMap('myMap');
  map.LoadMap(new VELatLong(30.52,-84.37),17,'r' ,false);
  GetTiles();
  }
  function GetTiles()
  {
  var bounds = [new VELatLongRectangle(new VELatLong(32,-85),new VELatLong(30,-83))];
  var tileSourceSpec = new VETileSourceSpecification("Parcel", "MapTileHandler.ashx?qkey=%4&contractid=D3342484-32CD-DD11-AF04-0003FF70C8AE");
  tileSourceSpec.NumServers = 1;
  tileSourceSpec.Bounds = bounds;
  tileSourceSpec.MinZoomLevel = 10;
  tileSourceSpec.MaxZoomLevel = 18;
  tileSourceSpec.Opacity = 1;
  tileSourceSpec.ZIndex = 100;
  map.AddTileLayer(tileSourceSpec, true);
  }
  function DeleteTileLayer()
  {
  map.DeleteTileLayer("Parcel");
  }
   </script>

  

</head>

I might be a little confused where to start reading/finding out how to access this using the javascript api

0 Kudos