Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Map of single-part geometry data pulled directly from AGOL</title>
</head>
<body>
<!-- Load require.js. Delete this if your page already loads require.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@jupyter-widgets/html-manager@^0.14.0/dist/embed-amd.js" crossorigin="anonymous"></script>
<script type="application/vnd.jupyter.widget-state+json">
{
"version_major": 2,
"version_minor": 0,
"state": {
"8096455735f049c78d21848719b93b7a": {
"model_name": "LayoutModel",
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.1.0",
"state": {
"height": "400px",
"width": "100%"
}
},
"3969058bfcb5442382ede43596636ba0": {
"model_name": "ArcGISMapIPyWidgetModel",
"model_module": "arcgis-map-ipywidget",
"model_module_version": "1.5.2",
"state": {
"_add_this_graphic": {},
"_add_this_notype_layer": {},
"_auth_mode": "anonymous",
"_basemap": "default",
"_center": {},
"_center_long_lat": [
-78.64266999999995,
35.785510000000045
],
"_dom_classes": [],
"_draw_these_graphics_on_widget_load": [],
"_draw_these_notype_layers_on_widget_load": [
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_line_test/FeatureServer/0",
"options": {},
"_hashFromPython": "8782822219791"
},
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_point_test/FeatureServer/0",
"options": {},
"_hashFromPython": "-9223363254076030597"
},
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_polygon_test/FeatureServer/0",
"options": {},
"_hashFromPython": "-9223363254076030425"
}
],
"_extent": {},
"_gallery_basemaps": {
"default": {
"baseMapLayers": [
{
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
"layerType": "ArcGISTiledMapServiceLayer",
"resourceInfo": {
"currentVersion": 10.3,
"mapName": "Layers",
"supportsDynamicLayers": false,
"layers": [
{
"id": 0,
"name": "Citations",
"parentLayerId": -1,
"defaultVisibility": false,
"subLayerIds": null,
"minScale": 0,
"maxScale": 0
}
],
"tables": [],
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"singleFusedMapCache": true,
"tileInfo": {
"rows": 256,
"cols": 256,
"dpi": 96,
"format": "JPEG",
"compressionQuality": 90,
"origin": {
"x": -20037508.342787,
"y": 20037508.342787
},
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"lods": [
{
"level": 0,
"resolution": 156543.03392800014,
"scale": 591657527.591555
},
{
"level": 1,
"resolution": 78271.51696399994,
"scale": 295828763.795777
},
{
"level": 2,
"resolution": 39135.75848200009,
"scale": 147914381.897889
},
{
"level": 3,
"resolution": 19567.87924099992,
"scale": 73957190.948944
},
{
"level": 4,
"resolution": 9783.93962049996,
"scale": 36978595.474472
},
{
"level": 5,
"resolution": 4891.96981024998,
"scale": 18489297.737236
},
{
"level": 6,
"resolution": 2445.98490512499,
"scale": 9244648.868618
},
{
"level": 7,
"resolution": 1222.992452562495,
"scale": 4622324.434309
},
{
"level": 8,
"resolution": 611.4962262813797,
"scale": 2311162.217155
},
{
"level": 9,
"resolution": 305.74811314055756,
"scale": 1155581.108577
},
{
"level": 10,
"resolution": 152.87405657041106,
"scale": 577790.554289
},
{
"level": 11,
"resolution": 76.43702828507324,
"scale": 288895.277144
},
{
"level": 12,
"resolution": 38.21851414253662,
"scale": 144447.638572
},
{
"level": 13,
"resolution": 19.10925707126831,
"scale": 72223.819286
},
{
"level": 14,
"resolution": 9.554628535634155,
"scale": 36111.909643
},
{
"level": 15,
"resolution": 4.77731426794937,
"scale": 18055.954822
},
{
"level": 16,
"resolution": 2.388657133974685,
"scale": 9027.977411
},
{
"level": 17,
"resolution": 1.1943285668550503,
"scale": 4513.988705
},
{
"level": 18,
"resolution": 0.5971642835598172,
"scale": 2256.994353
},
{
"level": 19,
"resolution": 0.29858214164761665,
"scale": 1128.497176
},
{
"level": 20,
"resolution": 0.14929107082380833,
"scale": 564.248588
},
{
"level": 21,
"resolution": 0.07464553541190416,
"scale": 282.124294
},
{
"level": 22,
"resolution": 0.03732276770595208,
"scale": 141.062147
},
{
"level": 23,
"resolution": 0.01866138385297604,
"scale": 70.5310735
}
]
},
"initialExtent": {
"xmin": -28848255.049479112,
"ymin": -2077452.082122866,
"xmax": 28848255.049479112,
"ymax": 16430757.376790084,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"fullExtent": {
"xmin": -20037507.067161843,
"ymin": -19971868.880408604,
"xmax": 20037507.067161843,
"ymax": 19971868.88040863,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"minScale": 591657527.591555,
"maxScale": 70.5310735,
"units": "esriMeters",
"supportedImageFormatTypes": "PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP",
"capabilities": "Map,Tilemap,Query,Data",
"supportedQueryFormats": "JSON, AMF",
"exportTilesAllowed": false,
"maxRecordCount": 100,
"maxImageHeight": 4096,
"maxImageWidth": 4096,
"supportedExtensions": "KmlServer"
}
}
],
"title": "Topographic"
}
},
"_layers_to_remove": [],
"_portal_sharing_rest_url": "https://www.arcgis.com/sharing/rest/",
"_portal_url": "https://www.arcgis.com",
"_readonly_center": {},
"_readonly_extent": {},
"_readonly_webmap_from_js": {},
"_trigger_new_jlab_window_with_args": {},
"_trigger_screenshot_with_args": {},
"_username": "None",
"_uuid": "2aa197bb-6b96-4980-8743-78aab0dcf102",
"_webmap": {},
"_webscene": {},
"layout": "IPY_MODEL_8096455735f049c78d21848719b93b7a",
"zoom": 9.0
}
},
"2360371ad7b74188a5a7eafff5789727": {
"model_name": "LayoutModel",
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.1.0",
"state": {
"height": "400px",
"width": "100%"
}
},
"13a581c538e043779a2183ff56a2ba2a": {
"model_name": "ArcGISMapIPyWidgetModel",
"model_module": "arcgis-map-ipywidget",
"model_module_version": "1.5.2",
"state": {
"_add_this_graphic": {},
"_add_this_notype_layer": {},
"_auth_mode": "anonymous",
"_basemap": "default",
"_center": {},
"_center_long_lat": [
-78.64266999999995,
35.785510000000045
],
"_dom_classes": [],
"_draw_these_graphics_on_widget_load": [],
"_draw_these_notype_layers_on_widget_load": [
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_line_test/FeatureServer/0",
"options": {},
"_hashFromPython": "8782778737763"
},
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_point_test/FeatureServer/0",
"options": {},
"_hashFromPython": "-9223363254076210102"
},
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_polygon_test/FeatureServer/0",
"options": {},
"_hashFromPython": "-9223363254076131668"
}
],
"_extent": {},
"_gallery_basemaps": {
"default": {
"baseMapLayers": [
{
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
"layerType": "ArcGISTiledMapServiceLayer",
"resourceInfo": {
"currentVersion": 10.3,
"mapName": "Layers",
"supportsDynamicLayers": false,
"layers": [
{
"id": 0,
"name": "Citations",
"parentLayerId": -1,
"defaultVisibility": false,
"subLayerIds": null,
"minScale": 0,
"maxScale": 0
}
],
"tables": [],
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"singleFusedMapCache": true,
"tileInfo": {
"rows": 256,
"cols": 256,
"dpi": 96,
"format": "JPEG",
"compressionQuality": 90,
"origin": {
"x": -20037508.342787,
"y": 20037508.342787
},
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"lods": [
{
"level": 0,
"resolution": 156543.03392800014,
"scale": 591657527.591555
},
{
"level": 1,
"resolution": 78271.51696399994,
"scale": 295828763.795777
},
{
"level": 2,
"resolution": 39135.75848200009,
"scale": 147914381.897889
},
{
"level": 3,
"resolution": 19567.87924099992,
"scale": 73957190.948944
},
{
"level": 4,
"resolution": 9783.93962049996,
"scale": 36978595.474472
},
{
"level": 5,
"resolution": 4891.96981024998,
"scale": 18489297.737236
},
{
"level": 6,
"resolution": 2445.98490512499,
"scale": 9244648.868618
},
{
"level": 7,
"resolution": 1222.992452562495,
"scale": 4622324.434309
},
{
"level": 8,
"resolution": 611.4962262813797,
"scale": 2311162.217155
},
{
"level": 9,
"resolution": 305.74811314055756,
"scale": 1155581.108577
},
{
"level": 10,
"resolution": 152.87405657041106,
"scale": 577790.554289
},
{
"level": 11,
"resolution": 76.43702828507324,
"scale": 288895.277144
},
{
"level": 12,
"resolution": 38.21851414253662,
"scale": 144447.638572
},
{
"level": 13,
"resolution": 19.10925707126831,
"scale": 72223.819286
},
{
"level": 14,
"resolution": 9.554628535634155,
"scale": 36111.909643
},
{
"level": 15,
"resolution": 4.77731426794937,
"scale": 18055.954822
},
{
"level": 16,
"resolution": 2.388657133974685,
"scale": 9027.977411
},
{
"level": 17,
"resolution": 1.1943285668550503,
"scale": 4513.988705
},
{
"level": 18,
"resolution": 0.5971642835598172,
"scale": 2256.994353
},
{
"level": 19,
"resolution": 0.29858214164761665,
"scale": 1128.497176
},
{
"level": 20,
"resolution": 0.14929107082380833,
"scale": 564.248588
},
{
"level": 21,
"resolution": 0.07464553541190416,
"scale": 282.124294
},
{
"level": 22,
"resolution": 0.03732276770595208,
"scale": 141.062147
},
{
"level": 23,
"resolution": 0.01866138385297604,
"scale": 70.5310735
}
]
},
"initialExtent": {
"xmin": -28848255.049479112,
"ymin": -2077452.082122866,
"xmax": 28848255.049479112,
"ymax": 16430757.376790084,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"fullExtent": {
"xmin": -20037507.067161843,
"ymin": -19971868.880408604,
"xmax": 20037507.067161843,
"ymax": 19971868.88040863,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"minScale": 591657527.591555,
"maxScale": 70.5310735,
"units": "esriMeters",
"supportedImageFormatTypes": "PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP",
"capabilities": "Map,Tilemap,Query,Data",
"supportedQueryFormats": "JSON, AMF",
"exportTilesAllowed": false,
"maxRecordCount": 100,
"maxImageHeight": 4096,
"maxImageWidth": 4096,
"supportedExtensions": "KmlServer"
}
}
],
"title": "Topographic"
}
},
"_layers_to_remove": [],
"_portal_sharing_rest_url": "https://www.arcgis.com/sharing/rest/",
"_portal_url": "https://www.arcgis.com",
"_readonly_center": {},
"_readonly_extent": {},
"_readonly_webmap_from_js": {},
"_trigger_new_jlab_window_with_args": {},
"_trigger_screenshot_with_args": {},
"_username": "None",
"_uuid": "db38f3ed-4991-4b41-986b-631f643bc6a2",
"_webmap": {},
"_webscene": {},
"layout": "IPY_MODEL_2360371ad7b74188a5a7eafff5789727",
"zoom": 9.0
}
},
"eaf28c9eefc044dca2c62f887c6ce97f": {
"model_name": "LayoutModel",
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.1.0",
"state": {
"height": "100%",
"width": "100%"
}
},
"4b4633f971fa402a8a28f473dee0bf0a": {
"model_name": "ArcGISMapIPyWidgetModel",
"model_module": "arcgis-map-ipywidget",
"model_module_version": "1.5.2",
"state": {
"_add_this_graphic": {},
"_add_this_notype_layer": {},
"_auth_mode": "anonymous",
"_basemap": "default",
"_center": {},
"_center_long_lat": [
-78.64266999999995,
35.785510000000045
],
"_dom_classes": [],
"_draw_these_graphics_on_widget_load": [],
"_draw_these_notype_layers_on_widget_load": [
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_line_test/FeatureServer/0",
"options": {},
"_hashFromPython": "8782778733772"
},
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_point_test/FeatureServer/0",
"options": {},
"_hashFromPython": "-9223363254076262242"
},
{
"type": "FeatureLayer",
"url": "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/single_part_polygon_test/FeatureServer/0",
"options": {},
"_hashFromPython": "8782778631393"
}
],
"_extent": {},
"_gallery_basemaps": {
"default": {
"baseMapLayers": [
{
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",
"layerType": "ArcGISTiledMapServiceLayer",
"resourceInfo": {
"currentVersion": 10.3,
"mapName": "Layers",
"supportsDynamicLayers": false,
"layers": [
{
"id": 0,
"name": "Citations",
"parentLayerId": -1,
"defaultVisibility": false,
"subLayerIds": null,
"minScale": 0,
"maxScale": 0
}
],
"tables": [],
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"singleFusedMapCache": true,
"tileInfo": {
"rows": 256,
"cols": 256,
"dpi": 96,
"format": "JPEG",
"compressionQuality": 90,
"origin": {
"x": -20037508.342787,
"y": 20037508.342787
},
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"lods": [
{
"level": 0,
"resolution": 156543.03392800014,
"scale": 591657527.591555
},
{
"level": 1,
"resolution": 78271.51696399994,
"scale": 295828763.795777
},
{
"level": 2,
"resolution": 39135.75848200009,
"scale": 147914381.897889
},
{
"level": 3,
"resolution": 19567.87924099992,
"scale": 73957190.948944
},
{
"level": 4,
"resolution": 9783.93962049996,
"scale": 36978595.474472
},
{
"level": 5,
"resolution": 4891.96981024998,
"scale": 18489297.737236
},
{
"level": 6,
"resolution": 2445.98490512499,
"scale": 9244648.868618
},
{
"level": 7,
"resolution": 1222.992452562495,
"scale": 4622324.434309
},
{
"level": 8,
"resolution": 611.4962262813797,
"scale": 2311162.217155
},
{
"level": 9,
"resolution": 305.74811314055756,
"scale": 1155581.108577
},
{
"level": 10,
"resolution": 152.87405657041106,
"scale": 577790.554289
},
{
"level": 11,
"resolution": 76.43702828507324,
"scale": 288895.277144
},
{
"level": 12,
"resolution": 38.21851414253662,
"scale": 144447.638572
},
{
"level": 13,
"resolution": 19.10925707126831,
"scale": 72223.819286
},
{
"level": 14,
"resolution": 9.554628535634155,
"scale": 36111.909643
},
{
"level": 15,
"resolution": 4.77731426794937,
"scale": 18055.954822
},
{
"level": 16,
"resolution": 2.388657133974685,
"scale": 9027.977411
},
{
"level": 17,
"resolution": 1.1943285668550503,
"scale": 4513.988705
},
{
"level": 18,
"resolution": 0.5971642835598172,
"scale": 2256.994353
},
{
"level": 19,
"resolution": 0.29858214164761665,
"scale": 1128.497176
},
{
"level": 20,
"resolution": 0.14929107082380833,
"scale": 564.248588
},
{
"level": 21,
"resolution": 0.07464553541190416,
"scale": 282.124294
},
{
"level": 22,
"resolution": 0.03732276770595208,
"scale": 141.062147
},
{
"level": 23,
"resolution": 0.01866138385297604,
"scale": 70.5310735
}
]
},
"initialExtent": {
"xmin": -28848255.049479112,
"ymin": -2077452.082122866,
"xmax": 28848255.049479112,
"ymax": 16430757.376790084,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"fullExtent": {
"xmin": -20037507.067161843,
"ymin": -19971868.880408604,
"xmax": 20037507.067161843,
"ymax": 19971868.88040863,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"minScale": 591657527.591555,
"maxScale": 70.5310735,
"units": "esriMeters",
"supportedImageFormatTypes": "PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP",
"capabilities": "Map,Tilemap,Query,Data",
"supportedQueryFormats": "JSON, AMF",
"exportTilesAllowed": false,
"maxRecordCount": 100,
"maxImageHeight": 4096,
"maxImageWidth": 4096,
"supportedExtensions": "KmlServer"
}
}
],
"title": "Topographic"
}
},
"_layers_to_remove": [],
"_portal_sharing_rest_url": "https://www.arcgis.com/sharing/rest/",
"_portal_url": "https://www.arcgis.com",
"_readonly_center": {},
"_readonly_extent": {},
"_readonly_webmap_from_js": {},
"_trigger_new_jlab_window_with_args": {},
"_trigger_screenshot_with_args": {},
"_username": "None",
"_uuid": "172e08d7-5b3e-41d8-9fa0-6ce79d8c9b03",
"_webmap": {},
"_webscene": {},
"layout": "IPY_MODEL_eaf28c9eefc044dca2c62f887c6ce97f",
"zoom": 9.0
}
}
}
}
</script>
<script type="application/vnd.jupyter.widget-view+json">
{"version_major": 2, "version_minor": 0, "model_id": "4b4633f971fa402a8a28f473dee0bf0a"}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment