arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

map.export_to_html broken

Open bjfultn opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug Using the export_to_html method of the GIS.map() object does not create a functional stand-alone html page.

To Reproduce Steps to reproduce the behavior:

from arcgis.gis import GIS

gis = GIS("https://www.arcgis.com")
m = gis.map()

m.export_to_html("tmp.html", title="Interactive Map")

Screenshots Screenshot 2024-08-28 at 12 56 28 PM

Expected behavior I expect to be able to see a map when I open tmp.html

Platform (please complete the following information):

  • OS: Mac OS 14.6.1
  • Browser: Chrome
  • Python API Version: 2.3.1

Additional context

  • Same bug reported in the Esri community forums over a year ago. https://community.esri.com/t5/python-questions/arcgis-python-export-map-to-html-is-blank/td-p/1280483
  • The Export live map in a separate HTML file section of this tutorial does not work as written https://developers.arcgis.com/python/guide/part5-saving-updating-and-embedding-map-widget/#embedding-a-live-map

bjfultn avatar Aug 28 '24 18:08 bjfultn

@bjfultn Hi thank you for reporting this! We are making some major improvements to the mapping module and have updated this method. You can expect a fix in the next version which will be released end of September

nanaeaubry avatar Aug 29 '24 08:08 nanaeaubry

@bjfultn Please use the latest install of arcgis and the new arcgis-mapping packages to try again: conda install -c esri arcgis arcgis-mapping

nanaeaubry avatar Sep 25 '24 05:09 nanaeaubry