{"action":"created","issue":{"url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/42","repository_url":"https://api.github.com/repos/TDesjardins/gwt-ol3","labels_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/42/comments","events_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/42/events","html_url":"https://github.com/TDesjardins/gwt-ol3/issues/42","id":187149524,"number":42,"title":"Integrating OL3 into tabpanel of GWT Application ","user":{"login":"misiakj","id":19177331,"avatar_url":"https://avatars.githubusercontent.com/u/19177331?v=3","gravatar_id":"","url":"https://api.github.com/users/misiakj","html_url":"https://github.com/misiakj","followers_url":"https://api.github.com/users/misiakj/followers","following_url":"https://api.github.com/users/misiakj/following{/other_user}","gists_url":"https://api.github.com/users/misiakj/gists{/gist_id}","starred_url":"https://api.github.com/users/misiakj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misiakj/subscriptions","organizations_url":"https://api.github.com/users/misiakj/orgs","repos_url":"https://api.github.com/users/misiakj/repos","events_url":"https://api.github.com/users/misiakj/events{/privacy}","received_events_url":"https://api.github.com/users/misiakj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-03T18:16:20Z","updated_at":"2016-11-04T17:15:49Z","closed_at":"2016-11-04T17:15:49Z","body":"I would like to say thank you for creating the OL3 GWT wrapper, it looks like it's going to be very useful for integrating map functionality into a GWT application. I see that in your demo you add a \r\n<div id=\"map\" class=\"map\"></div> line to your .html file and then assign the map to that element. I also see that we can add a map to a GWT app by placing it in a panel that is placed directly on the RootLayoutPanel.\r\n\r\nCurrently I am trying to place the map in a panel (with id \"map\") that exists in a TabLayoutPanel several layers down from the RootLayoutPanel, but the map doesn't seem to find that object, I was wondering if there was a current standard way of placing the OL3 map in a panel that is not attached to the RootLayoutPanel but is instead several children down?\r\n\r\nThank You,\r\n\r\nJon "},"comment":{"url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/comments/258492602","html_url":"https://github.com/TDesjardins/gwt-ol3/issues/42#issuecomment-258492602","issue_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/42","id":258492602,"user":{"login":"misiakj","id":19177331,"avatar_url":"https://avatars.githubusercontent.com/u/19177331?v=3","gravatar_id":"","url":"https://api.github.com/users/misiakj","html_url":"https://github.com/misiakj","followers_url":"https://api.github.com/users/misiakj/followers","following_url":"https://api.github.com/users/misiakj/following{/other_user}","gists_url":"https://api.github.com/users/misiakj/gists{/gist_id}","starred_url":"https://api.github.com/users/misiakj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misiakj/subscriptions","organizations_url":"https://api.github.com/users/misiakj/orgs","repos_url":"https://api.github.com/users/misiakj/repos","events_url":"https://api.github.com/users/misiakj/events{/privacy}","received_events_url":"https://api.github.com/users/misiakj/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T17:15:49Z","updated_at":"2016-11-04T17:15:49Z","body":"I actually found a solution but thank you for the quick response. I was setting up the map information in the constructor of a widget that was several layers deep in the widget that was actually being added to the RootLayoutPanel so it appears that the map information would look for the Div element, but since the greater object being added to the RootLayoutPanel hadn't finished creation yet it was not yet on the DOM and our Div couldn't be found.\r\n\r\n\r\nExample below for anyone who has a similar issue.\r\n\r\n @Override\r\n\tpublic void onModuleLoad() {\r\n\t\tRootLayoutPanel.get().add(new FastLayout()); // add our layout to our root panel\r\n\t}\r\n\r\n\r\nFastLayout ->Creates several SubWidgets-> One of those Widgets Creates the Map Div in it's UI Binder.\r\n\r\nThe solution was to create the map information in module load after the line creating the FastLayout."}}
{"actor":{"display_login":"misiakj"}}