{"action":"created","issue":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/1579","repository_url":"https://api.github.com/repos/tangrams/tangram-es","labels_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1579/labels{/name}","comments_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1579/comments","events_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1579/events","html_url":"https://github.com/tangrams/tangram-es/issues/1579","id":244237378,"number":1579,"title":"Unauthorized mapzen API key","user":{"login":"hymn4u","id":16662670,"avatar_url":"https://avatars2.githubusercontent.com/u/16662670?v=4","gravatar_id":"","url":"https://api.github.com/users/hymn4u","html_url":"https://github.com/hymn4u","followers_url":"https://api.github.com/users/hymn4u/followers","following_url":"https://api.github.com/users/hymn4u/following{/other_user}","gists_url":"https://api.github.com/users/hymn4u/gists{/gist_id}","starred_url":"https://api.github.com/users/hymn4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hymn4u/subscriptions","organizations_url":"https://api.github.com/users/hymn4u/orgs","repos_url":"https://api.github.com/users/hymn4u/repos","events_url":"https://api.github.com/users/hymn4u/events{/privacy}","received_events_url":"https://api.github.com/users/hymn4u/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-20T03:44:16Z","updated_at":"2017-07-21T03:21:13Z","closed_at":null,"body":" Hi, guys! Really sorry to ask a question, i just can't see the map! This is what I did.\r\n\r\n1. I've pull the tangram-es code from github, and used \"make xcode\" command to build project  in my mac.\r\n\r\n2. Get an mapzen key use github account, add it to the scene.yaml:\r\n    global:\r\n        feature_order: function () { return feature.sort_rank; }\r\n        sdk_mapzen_api_key: 'mapzen-TvvXXXX'\r\nSetup an environment variable:\r\nlaunchctl setenv MAPZEN_API_KEY mapzen-TvvXXXX\r\n\r\n3.Then i run the project, everything seems alright, but only the map doesn't appear~~ I mean the glfw window appear, but map does not.\r\n\r\nI realized it is a problem from getting vector data, but I don't know why. This is the messages:\r\n\r\n - To produce the result hereTANGRAM map.cpp:208: Loading scene file (async): scene.yaml\r\nWARNING sceneLoader.cpp:1025: Invalid url_params entry in source 'osm', entries should be strings.\r\nWARNING sceneLoader.cpp:1788: Can't find data source touch for layer touch\r\nWARNING styleParam.cpp:280: Invalid font-size '1.2em'.\r\nTANGRAM map.cpp:861: setup GL\r\nTANGRAM hardware.cpp:60: Driver supports map buffer: 0\r\nTANGRAM hardware.cpp:61: Driver supports vaos: 1\r\nTANGRAM hardware.cpp:62: Driver supports rgb8_rgba8: 0\r\nTANGRAM hardware.cpp:63: Driver supports NPOT texture: 1\r\nTANGRAM hardware.cpp:77: Hardware max texture size 16384\r\nTANGRAM hardware.cpp:78: Hardware max combined texture units 16\r\nTANGRAM map.cpp:324: resize: 2048 x 1536\r\nNOTIFY tileManager.cpp:72: add source osm\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19295/24642.mvt?\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19295/24641.mvt?\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19294/24641.mvt?\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19294/24642.mvt?\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19294/24643.mvt?\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19295/24643.mvt?\r\nERROR osxPlatform.mm:137: Unsuccessful status code 401: \"unauthorized\" from: http://tile.mapzen.com/mapzen/vector/v1/all/16/19293/24641.mvt?\r\n\r\n**RESULT:**\r\n\r\nJust glfw windows appear, no map.\r\n\r\n**EXPECTED RESULT:**\r\n\r\nShow me a map, please.\r\n\r\n**ENVIRONMENT:**\r\n\r\nMacOS Sierra, 10.12.5\r\n\r\n - If you used a released version, what is the version number?\r\nI used latest version in github, the last commit is 82831b8849ef98194c9650bdb22693342b55def1 by Matt Blair.\r\n\r\nAny help is appreciate, thank you!\r\n"},"comment":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/comments/316891595","html_url":"https://github.com/tangrams/tangram-es/issues/1579#issuecomment-316891595","issue_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1579","id":316891595,"user":{"login":"hymn4u","id":16662670,"avatar_url":"https://avatars2.githubusercontent.com/u/16662670?v=4","gravatar_id":"","url":"https://api.github.com/users/hymn4u","html_url":"https://github.com/hymn4u","followers_url":"https://api.github.com/users/hymn4u/followers","following_url":"https://api.github.com/users/hymn4u/following{/other_user}","gists_url":"https://api.github.com/users/hymn4u/gists{/gist_id}","starred_url":"https://api.github.com/users/hymn4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hymn4u/subscriptions","organizations_url":"https://api.github.com/users/hymn4u/orgs","repos_url":"https://api.github.com/users/hymn4u/repos","events_url":"https://api.github.com/users/hymn4u/events{/privacy}","received_events_url":"https://api.github.com/users/hymn4u/received_events","type":"User","site_admin":false},"created_at":"2017-07-21T03:21:13Z","updated_at":"2017-07-21T03:21:13Z","body":"@nvkelso \r\nthanks, that works!\r\n\r\n@tallytalwar \r\nI used the way you mentioned, set enviroment variable and then open xcode from terminal window, map came out. Thanks a lot!"}}
{"actor":{"display_login":"hymn4u"}}