{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerVis/mapbox-gl/issues/2","repository_url":"https://api.github.com/repos/PolymerVis/mapbox-gl","labels_url":"https://api.github.com/repos/PolymerVis/mapbox-gl/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/PolymerVis/mapbox-gl/issues/2/comments","events_url":"https://api.github.com/repos/PolymerVis/mapbox-gl/issues/2/events","html_url":"https://github.com/PolymerVis/mapbox-gl/issues/2","id":226135772,"number":2,"title":"eventsToWatch ","user":{"login":"jparish3","id":6032810,"avatar_url":"https://avatars1.githubusercontent.com/u/6032810?v=3","gravatar_id":"","url":"https://api.github.com/users/jparish3","html_url":"https://github.com/jparish3","followers_url":"https://api.github.com/users/jparish3/followers","following_url":"https://api.github.com/users/jparish3/following{/other_user}","gists_url":"https://api.github.com/users/jparish3/gists{/gist_id}","starred_url":"https://api.github.com/users/jparish3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jparish3/subscriptions","organizations_url":"https://api.github.com/users/jparish3/orgs","repos_url":"https://api.github.com/users/jparish3/repos","events_url":"https://api.github.com/users/jparish3/events{/privacy}","received_events_url":"https://api.github.com/users/jparish3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-03T22:44:48Z","updated_at":"2017-05-05T02:13:31Z","closed_at":"2017-05-05T02:08:20Z","body":"I get 2 errors (below) when including events-to-watch=\"mapbox-gl-move\". This was applied from the documentation, but the wording is unclear: A string with space delimited (map events)[https://www.mapbox.com/mapbox-gl-js/api/#Map] to listen to. The corresponding event with be prefix with mapbox-gl- e.g. move will result with mapbox-gl-move event to be fired.\r\n\r\nUltimately, I am trying to use the MapBoxZoomEvent to get the new bounds from ZoomBounds (LngLatBounds), but cannot get past this step.\r\n\r\nErrors:\r\nUncaught TypeError: Cannot read property 'trim' of undefined\r\nUncaught ReferenceError: mapboxgl is not defined"},"comment":{"url":"https://api.github.com/repos/PolymerVis/mapbox-gl/issues/comments/299355343","html_url":"https://github.com/PolymerVis/mapbox-gl/issues/2#issuecomment-299355343","issue_url":"https://api.github.com/repos/PolymerVis/mapbox-gl/issues/2","id":299355343,"user":{"login":"eterna2","id":1248825,"avatar_url":"https://avatars0.githubusercontent.com/u/1248825?v=3","gravatar_id":"","url":"https://api.github.com/users/eterna2","html_url":"https://github.com/eterna2","followers_url":"https://api.github.com/users/eterna2/followers","following_url":"https://api.github.com/users/eterna2/following{/other_user}","gists_url":"https://api.github.com/users/eterna2/gists{/gist_id}","starred_url":"https://api.github.com/users/eterna2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eterna2/subscriptions","organizations_url":"https://api.github.com/users/eterna2/orgs","repos_url":"https://api.github.com/users/eterna2/repos","events_url":"https://api.github.com/users/eterna2/events{/privacy}","received_events_url":"https://api.github.com/users/eterna2/received_events","type":"User","site_admin":false},"created_at":"2017-05-05T02:13:31Z","updated_at":"2017-05-05T02:13:31Z","body":"Sorry for the 2 bugs. For the 1st one, I forgot to check if the old string (for events to watch) exists or otherwise. The 2nd error is because I forgot to ensure mapbox-gl is loaded before watching the events.\r\n\r\nI have also updated `eventstowatch` with some examples.\r\n\r\nHowever, you u have misunderstood the mapbox events. \r\n\r\n`MapBoxZoomEvent` is the data type. You should listen to `boxzoomstart`, `boxzoomcancel`, or `boxzoomend` instead. https://www.mapbox.com/mapbox-gl-js/api/#map.event:boxzoomend\r\n\r\nAnd note that boxzoom != zoom. Boxzoom is the zoom when you hold shift and select a box to zoom to. \r\n\r\nAs for the center lat-lon, it is already binded to the attributes `latitude`, `longitude` by default."}}
{"actor":{"display_login":"eterna2"}}