Skip to content

Commit

Permalink
Merge pull request #2078 from Esri/jy-rvw-spatial-data3
Browse files Browse the repository at this point in the history
change links to relative
  • Loading branch information
jyaistMap authored Sep 26, 2024
2 parents 627ebff + 40ae7fb commit 4052beb
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,19 +961,18 @@
"# The draw method draws a shape on the map widget.\n",
"```\n",
"\n",
"<div class=\"alert alert-info\">\n",
" <b>Note:</b> Anything can be drawn from known `Geometry` objects, coordinate pairs, and `FeatureSet` objects.\n",
"</div>\n",
"> **Note:** Anything can be drawn from known `Geometry` objects, coordinate pairs, and `FeatureSet` objects.\n",
"\n",
"\n",
"The `shape` argument can be one of <a href=\"https://developers.arcgis.com/python/latest/api-reference/arcgis.map.toc.html#arcgis.map.map_widget.MapContent.draw\">these four objects</a>:\n",
"The `shape` argument can be one of the below objects. See [draw()](/python/latest/api-reference/arcgis.map.toc.html#arcgis.map.map_widget.MapContent.draw) for details:\n",
" - Known `Geometry` objects: Shape is one of the following: circle, ellipse, Polygon, Polyline, MultiPoint, Point, rectangle, triangle. \n",
" - <a href=\"https://developers.arcgis.com/python/api-reference/arcgis.geometry.html#arcgis.geometry.MultiPoint.coordinates\">Coordinate pair</a>: specified shape as a list of [lat, long]. Eg: [34, -81] \n",
" - [Coordinate pair](/python/latest/api-reference/arcgis.geometry.html#arcgis.geometry.MultiPoint.coordinates): specified shape as a list of [lat, long]. Eg: [34, -81] \n",
" - `FeatureSet`: shape can be a FeatureSet object.\n",
" - `Dict` object representing a `geometry`.\n",
"\n",
"The `popup` parameter is optional, and if it used, it must be a `dict` containing title and content as keys that will be displayed when the shape is clicked. In the case of a `FeatureSet`, title and content are names of attributes of the features in the `FeatureSet`, rather than actual string values for title and content.\n",
"\n",
"The `symbol` parameter is also optional, and if it is used, it should be a `dict` object. See the <a href=\"https://developers.arcgis.com/rest/services-reference/enterprise/symbol-objects/\">Symbol Objects</a> page in the ArcGIS REST API documentation for more information. A default symbol is used if one is not specified. A helper utility to get the symbol format for several predefined symbols is available within the Esri symbol selector.\n",
"The `symbol` parameter is also optional, and if it is used, it should be a `dict` object. See the [Symbol Objects](/rest/services-reference/enterprise/symbol-objects) page in the ArcGIS REST API documentation for more information. A default symbol is used if one is not specified. A helper utility to get the symbol format for several predefined symbols is available within the Esri symbol selector.\n",
"\n",
"The `attributes` parameter is again optional, and if it is used, it should be a `dict` object that specifies a `dict` containing name value pairs of fields and field values associated with the graphic."
]
Expand Down Expand Up @@ -1044,10 +1043,10 @@
"from arcgis.map.symbols import PictureMarkerSymbolEsriPMS\n",
"from arcgis.map.popups import PopupInfo\n",
"\n",
"house_symbol = PictureMarkerSymbolEsriPMS(**{\"angle\":0,\"xoffset\":0,\"yoffset\":0,\"type\":\"esriPMS\",\n",
"star_symbol = PictureMarkerSymbolEsriPMS(**{\"angle\":0,\"xoffset\":0,\"yoffset\":0,\"type\":\"esriPMS\",\n",
" \"url\":\"http://static.arcgis.com/images/Symbols/Shapes/RedStarLargeB.png\",\n",
" \"contentType\":\"image/png\",\"width\":24,\"height\":24})\n",
"map7b.content.draw(pt, symbol=house_symbol)"
"map7b.content.draw(pt, symbol=star_symbol)"
]
},
{
Expand Down Expand Up @@ -1435,7 +1434,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.0"
},
"toc": {
"base_numbering": 1,
Expand Down

0 comments on commit 4052beb

Please sign in to comment.