<?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: Draw polygons on mapwidget in Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/draw-polygons-on-mapwidget-in-python-api/m-p/1142651#M7108</link>
    <description>&lt;P&gt;Having a similar issue.&amp;nbsp; Points draw fine but polygons do not.&amp;nbsp; Did you ever figure this out?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 15:34:56 GMT</pubDate>
    <dc:creator>JaySGregory</dc:creator>
    <dc:date>2022-02-10T15:34:56Z</dc:date>
    <item>
      <title>Draw polygons on mapwidget in Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/draw-polygons-on-mapwidget-in-python-api/m-p/763773#M434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to accomplish a simple task: plot a rectangular bounding box on a map.&amp;nbsp;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from arcgis import GIS&lt;/P&gt;&lt;P&gt;from arcgis.geocoding import geocode&lt;/P&gt;&lt;P&gt;from arcgis.geometry import Polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JM_point = geocode("Kingston, Jamaica")[0]['location']&lt;BR /&gt;JM_poly = geocode("Jamaica")[0]['extent']&lt;/P&gt;&lt;P&gt;JM_poly2 = Polygon(JM_poly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m1 = gis.map("Jamaica")&lt;BR /&gt;m1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol = {"color":[0,0,128,128],"size":18,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSSquare","outline":{"color":[0,0,128,255],"width":1,"type":"esriSLS","style":"esriSLSSolid"}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m1.draw(JM_point)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;m1.draw(JM_poly,symbol=symbol)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;m1.draw(JM_poly2,symbol=symbol)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;The point 'JM_point' plots fine, but I can't get 'JM_poly' to show up. Note that I'm able to plot polygons from a spatial dataframe, but not from a geometry object. My reason for doing this is that I'm cropping population and elevation rasters for a series of countries using bounding boxes. But I want to do visual inspection of the boxes first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using the API version 1.5 and Python 3.7 in JupyterLab.&amp;nbsp;Can't find guidance or sample notebooks about how to accomplish this simple task. Your advice would really help me out! Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 19:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/draw-polygons-on-mapwidget-in-python-api/m-p/763773#M434</guid>
      <dc:creator>NicholasJones2</dc:creator>
      <dc:date>2018-09-10T19:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Draw polygons on mapwidget in Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/draw-polygons-on-mapwidget-in-python-api/m-p/1142651#M7108</link>
      <description>&lt;P&gt;Having a similar issue.&amp;nbsp; Points draw fine but polygons do not.&amp;nbsp; Did you ever figure this out?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/draw-polygons-on-mapwidget-in-python-api/m-p/1142651#M7108</guid>
      <dc:creator>JaySGregory</dc:creator>
      <dc:date>2022-02-10T15:34:56Z</dc:date>
    </item>
  </channel>
</rss>

