|
961 | 961 | "# The draw method draws a shape on the map widget.\n",
|
962 | 962 | "```\n",
|
963 | 963 | "\n",
|
964 |
| - "<div class=\"alert alert-info\">\n", |
965 |
| - " <b>Note:</b> Anything can be drawn from known `Geometry` objects, coordinate pairs, and `FeatureSet` objects.\n", |
966 |
| - "</div>\n", |
| 964 | + "> **Note:** Anything can be drawn from known `Geometry` objects, coordinate pairs, and `FeatureSet` objects.\n", |
| 965 | + "\n", |
967 | 966 | "\n",
|
968 |
| - "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", |
| 967 | + "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", |
969 | 968 | " - Known `Geometry` objects: Shape is one of the following: circle, ellipse, Polygon, Polyline, MultiPoint, Point, rectangle, triangle. \n",
|
970 |
| - " - <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", |
| 969 | + " - [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", |
971 | 970 | " - `FeatureSet`: shape can be a FeatureSet object.\n",
|
972 | 971 | " - `Dict` object representing a `geometry`.\n",
|
973 | 972 | "\n",
|
974 | 973 | "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",
|
975 | 974 | "\n",
|
976 |
| - "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", |
| 975 | + "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", |
977 | 976 | "\n",
|
978 | 977 | "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."
|
979 | 978 | ]
|
|
1044 | 1043 | "from arcgis.map.symbols import PictureMarkerSymbolEsriPMS\n",
|
1045 | 1044 | "from arcgis.map.popups import PopupInfo\n",
|
1046 | 1045 | "\n",
|
1047 |
| - "house_symbol = PictureMarkerSymbolEsriPMS(**{\"angle\":0,\"xoffset\":0,\"yoffset\":0,\"type\":\"esriPMS\",\n", |
| 1046 | + "star_symbol = PictureMarkerSymbolEsriPMS(**{\"angle\":0,\"xoffset\":0,\"yoffset\":0,\"type\":\"esriPMS\",\n", |
1048 | 1047 | " \"url\":\"http://static.arcgis.com/images/Symbols/Shapes/RedStarLargeB.png\",\n",
|
1049 | 1048 | " \"contentType\":\"image/png\",\"width\":24,\"height\":24})\n",
|
1050 |
| - "map7b.content.draw(pt, symbol=house_symbol)" |
| 1049 | + "map7b.content.draw(pt, symbol=star_symbol)" |
1051 | 1050 | ]
|
1052 | 1051 | },
|
1053 | 1052 | {
|
|
1435 | 1434 | "name": "python",
|
1436 | 1435 | "nbconvert_exporter": "python",
|
1437 | 1436 | "pygments_lexer": "ipython3",
|
1438 |
| - "version": "3.11.9" |
| 1437 | + "version": "3.11.0" |
1439 | 1438 | },
|
1440 | 1439 | "toc": {
|
1441 | 1440 | "base_numbering": 1,
|
|
0 commit comments