{"action":"created","issue":{"url":"https://api.github.com/repos/gee-community/gee_tools/issues/11","repository_url":"https://api.github.com/repos/gee-community/gee_tools","labels_url":"https://api.github.com/repos/gee-community/gee_tools/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/gee-community/gee_tools/issues/11/comments","events_url":"https://api.github.com/repos/gee-community/gee_tools/issues/11/events","html_url":"https://github.com/gee-community/gee_tools/issues/11","id":353102200,"node_id":"MDU6SXNzdWUzNTMxMDIyMDA=","number":11,"title":"gee_tools: Interactive Maps with Two Options","user":{"login":"lieying2016","id":22873590,"node_id":"MDQ6VXNlcjIyODczNTkw","avatar_url":"https://avatars3.githubusercontent.com/u/22873590?v=4","gravatar_id":"","url":"https://api.github.com/users/lieying2016","html_url":"https://github.com/lieying2016","followers_url":"https://api.github.com/users/lieying2016/followers","following_url":"https://api.github.com/users/lieying2016/following{/other_user}","gists_url":"https://api.github.com/users/lieying2016/gists{/gist_id}","starred_url":"https://api.github.com/users/lieying2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lieying2016/subscriptions","organizations_url":"https://api.github.com/users/lieying2016/orgs","repos_url":"https://api.github.com/users/lieying2016/repos","events_url":"https://api.github.com/users/lieying2016/events{/privacy}","received_events_url":"https://api.github.com/users/lieying2016/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T20:00:47Z","updated_at":"2018-08-23T00:09:23Z","closed_at":null,"author_association":"NONE","body":"Option 1: maptool\r\nI followed the code in your notebook.\r\n============================================\r\n\r\n\r\n col = ee.ImageCollection('COPERNICUS/S2')\r\n site = ee.Geometry.Point([-72,-42])\r\n col = col.filterBounds(site).filterMetadata('CLOUD_COVERAGE_ASSESSMENT','less_than',40)\r\n image =ee.Image(col.first()) \r\n\r\n geom = image.geometry()\r\nvisParam = {'bands':['B8','B11','B4'], 'min':0,'max':5000}\r\n# addLayer has a parameter called inspect\r\ninspect = {'data':image,'reducer':'mean'}\r\nfrom geetools import maptool\r\nMap = maptool.Map()\r\nMap.addLayer(image,visParam,'Sentinel 2')\r\nMap.centerObject(image)\r\nMap.addLayer(geom, name = 'Image Boundary',inspect = inspect)\r\nMap.show()\r\n===========================================\r\nAttributeError: 'dict' object has no attribute 'iteritems'\r\n\r\nOption 2: ipymap\r\n===========================================\r\nfrom geetools import ipymap\r\nMap2 = ipymap.Map()\r\nMap2.show()\r\n===========================================\r\nC:\\ProgramData\\Anaconda3\\lib\\site-packages\\geetools\\ipymap.py in <module>()\r\n     18                      get_image_tile, get_geojson_tile, get_bounds, get_zoom,\\\r\n     19                      create_html, feature_properties_output\r\n---> 20 import maptool\r\n     21 from . import ipytools\r\n     22 import threading\r\n\r\nModuleNotFoundError: No module named 'maptool'\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gee-community/gee_tools/issues/comments/415228254","html_url":"https://github.com/gee-community/gee_tools/issues/11#issuecomment-415228254","issue_url":"https://api.github.com/repos/gee-community/gee_tools/issues/11","id":415228254,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTIyODI1NA==","user":{"login":"fitoprincipe","id":10751505,"node_id":"MDQ6VXNlcjEwNzUxNTA1","avatar_url":"https://avatars0.githubusercontent.com/u/10751505?v=4","gravatar_id":"","url":"https://api.github.com/users/fitoprincipe","html_url":"https://github.com/fitoprincipe","followers_url":"https://api.github.com/users/fitoprincipe/followers","following_url":"https://api.github.com/users/fitoprincipe/following{/other_user}","gists_url":"https://api.github.com/users/fitoprincipe/gists{/gist_id}","starred_url":"https://api.github.com/users/fitoprincipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitoprincipe/subscriptions","organizations_url":"https://api.github.com/users/fitoprincipe/orgs","repos_url":"https://api.github.com/users/fitoprincipe/repos","events_url":"https://api.github.com/users/fitoprincipe/events{/privacy}","received_events_url":"https://api.github.com/users/fitoprincipe/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T00:09:23Z","updated_at":"2018-08-23T00:09:23Z","author_association":"MEMBER","body":"Hi @lieying2016, both errors are due to python 3, because I used python 2 at first, but I am doing the migration, so it's good to know. I have already fixed the last error. I will correct the first one right away. Thanks."}}
{"actor":{"display_login":"fitoprincipe"}}