Esri / esri-leaflet

A lightweight set of tools for working with ArcGIS services in Leaflet. :rocket:
https://developers.arcgis.com/esri-leaflet/
Apache License 2.0
1.61k stars 799 forks source link

How to enable subdomains url and use EXPORT function #761

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello!

How to enable subdomains url and use EXPORT function?

Demo url -

http://b.maps.rosreestr.ru/arcgis/rest/services/Cadastre/Cadastre/MapServer/export?bbox=-2872096.770357728,8568832.34605541,3.0041076113004357E7,2.387091391251745E7

ghost commented 8 years ago

Sorry... i am use "json" format. Set f: 'PNG8'.

How to use subdomains at url?

jgravois commented 8 years ago

the only subdomain support currently in esri-leaflet is inherited from L.tileLayer.

i've never heard of their use with dynamicMapLayers, but if its a common thing, we might consider exposing a mechanism to pass them in via the constructor and subsitituting different ones when making individual export requests.

jgravois commented 8 years ago

i'll consider digging in deeper if others reply in the future.

in general, standard practices for scaling/load balancing requests to your ArcGIS Server instance are your best bet to optimize performance for export operation responses.