Search code examples
javascriptd3.jsarcgis

How to migrate map from tile size 256 to 512 in d3-geo-tile and ArcGIS


We have a developed a map using d3-map-tile and using ArcGIS services which is having tile-size 256X256. We were able to render our map and plot the latitude longitude properly.

Now we have to move to the service where tile size is 512X512. Rendering of lat-long is not working properly by just merely changing the services.

Can someone tell me how I can do it in my existing code. what are the things I need to change apart from services.


Solution

  • Strictly speaking (as of August 2017), no. The size is fixed within the tile module:

    Computes the set of 256x256 quadtree tiles to display given the current layout extent, scale and translate. (API docs)

    And Mike states:

    It currently is limited to 256 [px] (discussion)

    However, as coincidence has it, work is occurring to address multiple tile sizes.

    See the discussion here. In fact, it seems that a possible implementation has been developed, see this thread, and this block for an example using the possible implementation.