<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 'MapView' object has no attribute '_preview_image_display_handler' in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1164321#M45587</link>
    <description>&lt;P&gt;I'm also running into this issue, it does run in jupyter notebook but not in an IDE&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 09:09:25 GMT</pubDate>
    <dc:creator>WerkstudentMourik</dc:creator>
    <dc:date>2022-04-14T09:09:25Z</dc:date>
    <item>
      <title>'MapView' object has no attribute '_preview_image_display_handler'</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1043676#M39301</link>
      <description>&lt;P&gt;I am trying to extract the html code out of an ArcGIS Online map from Python.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;from arcgis.gis import GIS&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;import pandas as pd&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; g = GIS("&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "name", "password")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; p = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'type':"CSV",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'title': '2020#12',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'snippet':'hwa',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'description':'test ' + \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'dataframe object to a GIS item',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'tags': 'python',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; i=g.content.add (item_properties=p,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;data="C:/Users/Name/PycharmProjects/colors/Map/New.csv"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; q=i.publish ()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print (q)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; search =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; g.content.search(query="owner:name",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; item_type="Feature Layer")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print(search)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; map=g.map (location="United States")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; item=search [0]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print (item)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; map.add_layer(item)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;props={'title': '2020#156',&lt;BR /&gt;&amp;nbsp; &amp;nbsp;'snippet':'hwa',&lt;BR /&gt;&amp;nbsp; &amp;nbsp;'tags': 'python',&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"renderer":"autocast",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"field_name": "Threat"}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;map.save (props)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;map.embed ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error for called embed ().&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;AttributeError: 'MapView' object has no attribute&lt;BR /&gt;&amp;nbsp; &amp;nbsp;'_preview_image_display_handler'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried the export_to_html () method. It throws no error but the html code is invalid when I try and embed it in google sites.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 15:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1043676#M39301</guid>
      <dc:creator>AviBagchi1</dc:creator>
      <dc:date>2021-04-04T15:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: 'MapView' object has no attribute '_preview_image_display_handler'</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1164321#M45587</link>
      <description>&lt;P&gt;I'm also running into this issue, it does run in jupyter notebook but not in an IDE&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 09:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1164321#M45587</guid>
      <dc:creator>WerkstudentMourik</dc:creator>
      <dc:date>2022-04-14T09:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: 'MapView' object has no attribute '_preview_image_display_handler'</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1247594#M49737</link>
      <description>&lt;P&gt;Running into the same issue in VS code and keen on finding a solution&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1247594#M49737</guid>
      <dc:creator>BengtDahlgrenStockholmGeo</dc:creator>
      <dc:date>2023-01-12T14:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: 'MapView' object has no attribute '_preview_image_display_handler'</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1247867#M49751</link>
      <description>&lt;P&gt;Managed to solve this by updating arcgis to v3.0.3 and update .NET Desktop Runtime v6, see&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/super-object-has-no-attribute-ipython-display/m-p/1247496#M64184" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/super-object-has-no-attribute-ipython-display/m-p/1247496#M64184&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I get another error related to numpy then&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 22:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1247867#M49751</guid>
      <dc:creator>BengtDahlgrenStockholmGeo</dc:creator>
      <dc:date>2023-01-12T22:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: 'MapView' object has no attribute '_preview_image_display_handler'</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1248279#M49783</link>
      <description>&lt;P&gt;I got the issue again but I think I managed to solve this for good this time.&lt;/P&gt;&lt;P&gt;I think the the map should have been generated at least once before being embedded . This removed the "MapView" error for me. By the way, I am running my code in a notebook and use nbconvert for the html conversion.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 23:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/mapview-object-has-no-attribute-preview-image/m-p/1248279#M49783</guid>
      <dc:creator>BengtDahlgrenStockholmGeo</dc:creator>
      <dc:date>2023-01-13T23:58:39Z</dc:date>
    </item>
  </channel>
</rss>

