{"action":"opened","issue":{"url":"https://api.github.com/repos/oracle/oraclejet/issues/14","repository_url":"https://api.github.com/repos/oracle/oraclejet","labels_url":"https://api.github.com/repos/oracle/oraclejet/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/oracle/oraclejet/issues/14/comments","events_url":"https://api.github.com/repos/oracle/oraclejet/issues/14/events","html_url":"https://github.com/oracle/oraclejet/issues/14","id":184998884,"number":14,"title":"Unable to render custom ko templates on ojThematicMap","user":{"login":"shimizust","id":4213228,"avatar_url":"https://avatars.githubusercontent.com/u/4213228?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizust","html_url":"https://github.com/shimizust","followers_url":"https://api.github.com/users/shimizust/followers","following_url":"https://api.github.com/users/shimizust/following{/other_user}","gists_url":"https://api.github.com/users/shimizust/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizust/subscriptions","organizations_url":"https://api.github.com/users/shimizust/orgs","repos_url":"https://api.github.com/users/shimizust/repos","events_url":"https://api.github.com/users/shimizust/events{/privacy}","received_events_url":"https://api.github.com/users/shimizust/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-25T01:51:08Z","updated_at":"2016-10-25T01:51:08Z","closed_at":null,"body":"Hi there,\r\n\r\nI was trying to render simple custom knockout templates over a map area, similar to this Cookbook example: [](http://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=thematicMap&demo=template)\r\n\r\nHowever, if the ojComponent inside the provided template is switched from ojChart to a non-data visualization component (say ojButton) or a simple:\r\n```\r\n<div data-bind='text: mytext'></div>\r\n```\r\nI get the following error: \r\n```\r\nMessage: oj.Components.getWidgetConstructor(...) is not a function\r\n    at _GetDvtComponent (http://localhost:8000/js/libs/oj/v2.1.0/debug/ojdvt-base.js:1231:61)\r\n    at ._GetDvtComponent (http://localhost:8000/js/libs/jquery/jqueryui-amd-1.12.0/widget.js:132:25)\r\n    at templateHandlerFunc (http://localhost:8000/js/libs/oj/v2.1.0/debug/ojthematicmap.js:563:28)\r\n    at DvtThematicMapJsonParser.ParseDataLayers (http://localhost:8000/js/libs/oj/v2.1.0/debug/internal-deps/dvt/DvtThematicMap.js:7521:23)\r\n    at DvtThematicMapJsonParser._parseAreaLayers (http://localhost:8000/js/libs/oj/v2.1.0/debug/internal-deps/dvt/DvtThematicMap.js:7349:12)\r\n    at DvtThematicMapJsonParser.parse (http://localhost:8000/js/libs/oj/v2.1.0/debug/internal-deps/dvt/DvtThematicMap.js:7246:8)\r\n    at dvt.ThematicMap.SetOptions (http://localhost:8000/js/libs/oj/v2.1.0/debug/internal-deps/dvt/DvtThematicMap.js:402:10)\r\n    at dvt.PanZoomComponent.render (http://localhost:8000/js/libs/oj/v2.1.0/debug/internal-deps/dvt/DvtPanZoomCanvas.js:3483:12)\r\n    at _renderComponent (http://localhost:8000/js/libs/oj/v2.1.0/debug/ojdvt-base.js:1505:21)\r\n    at ._renderComponent (http://localhost:8000/js/libs/jquery/jqueryui-amd-1.12.0/widget.js:132:25)\r\n```\r\n\r\nIdeally, any sort of knockout component would be able to be rendered, not just oracle jet DVT components. The knockout template also seems limited to only a single DVT component. Is there a workaround for this? Or is it just a limitation of the map component?\r\n\r\nThanks"}}
{"actor":{"display_login":"shimizust"}}