basemap icon indicating copy to clipboard operation
basemap copied to clipboard

arcgisimage transparent argument suggestion

Open martalmeida opened this issue 8 years ago • 0 comments

Hi there, Some arcgis images should be transparent. For instance Ocean/World_Ocean_Reference which includes only labels. If user wants to add two arcgis images the second one must be obtained with the argument transparent=true. Ex:

m.arcgisimage(service='Ocean/World_Ocean_Base', xpixels = 1000, verbose=1) m.arcgisimage(service='Ocean/World_Ocean_Reference', xpixels = 1000, verbose=1)

For now I just changed the function arcgisimage to always use transparent images (I can't see a reason not to):

... basemap_url =
"%s/rest/services/%s/MapServer/export?
bbox=%s,%s,%s,%s&
bboxSR=%s&
imageSR=%s&
size=%s,%s&
dpi=%s&
format=png32&
transparent=true&\ <----------------- Here f=image" %
...

best mma

martalmeida avatar Mar 29 '17 14:03 martalmeida