Error Calling Method On Npobject Google Earth
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings geplugin error calling method on npobject and policies of this site About Us Learn more about Stack Overflow
Error Calling Method On Npobject Applet
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation error calling method on npobject javascript Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; error calling method on npobject android webview it only takes a minute: Sign up 'Error calling method on NPObject!' issue with removing a KML added through a network link up vote 0 down vote favorite I am adding a KMZ file through network link on a ADD KMZ button's onclick as follows :- var nlFile=null; function addKMZData(){ nlFile=ge.createNetworkLink('exampleKMLNL1'); nlFile.setVisibility(true); var link = ge.createLink(" exampleLink1 "); link.setHref('http://localhost:8080/KMZs/example.kmz'); nlFile.setLink(link);
Error Calling Method On Npobject Firefox
nlFile.setFlyToView(true); nlFile.setName('kmz'); ge.getGlobe().getFeatures().appendChild(nlFile); } The 'example.kmz' file taken here contains a linestring placemark and the installed plugin version is 6.1.0.5001. Then, I have a REMOVE button, clicking which removes the above added KMZ 's network link from the ge-plugin's instance. The following is the REMOVE button's onclick function : function clearKMZData(){ ge.getFeatures().removeChild(ge.getElementById('exampleKMLNL1')); nlFile=null; } These functions work well for the first time. But any attempt to add the same KMZ file using the addKMZData() function after removing the added KMZ network link, gives the error "Error calling method on NPObject!" at line 1 of the add function. Is this way of adding & removing KMZ/KML data through network links correct? Am I missing something in the above 2 JavaScript functions? Regards, Shiva google-earth-plugin share|improve this question edited Apr 4 '12 at 4:38 asked Apr 4 '12 at 4:16 Shiva 6912 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted So long as var nlFile is global In your first function, change this nlFile=ge.createNetworkLink('exampleKMLNL1'); to this nlFile=ge.createNetworkLink(''); and change this function clearKMZData(){ ge.getFeatures().remove
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
debug Google Earth application in DevMode Starred by 11 users Reported by nitrousd...@gmail.com, Jul 17 2012 Back to list Status: Archived Owner: ---- Closed: Aug 2015 Cc: rayanna@chromium.org, ashej...@chromium.org OS: Windows Pri: 2 Type: Bug Needs-Feedback Sign in to add a comment Chrome Version : Version 22.0.1201.0 dev Other browsers tested: FireFox 13.0.1 - OK What steps will reproduce the problem? 1. Create a gwt-earth project by following the gwt-earth getting started guide here: http://code.google.com/p/gwt-earth-3/wiki/GettingStarted 2. Attempt to debug the application in Dev mode using Google Chrome as the browser. What is the expected result? The application should launch correctly and show the google earth plugin What happens instead? The following javascript error is reported or the browser hangs: Uncaught Error: Error calling method on NPObject. __gwt_javaInvokes.(anonymous function) initCB window.google.earth.createInstance.bdefault.I.js:534 window.google.earth.m.bdefault.I.js:570 e.initOnEarthFullyInitialized e.loadPoll e.loadPoll Please provide any additional information below. Attach a screenshot if possible. The original issue was reported here (on the GWT-Earth-3 Project): http://code.google.com/p/gwt-earth-3/issues/detail?id=2 And has been also reported here (on the GWT project): http://code.google.com/p/google-web-toolkit/issues/detail?id=7373 This problem appears to occur with all versions of Google Chrome but does not occur with any version of FireFox. The problem also occurs on Mac OS X. Comment 1 by rayanna@chromium.org, Jul 24 2012 Processing Cc: rayanna@chromium.org Labels: Action-FeedbackNeeded Could please provide the detailed steps to reproduce the issue. I could not able to reproduce issue with the given steps. Comment 2 by nitrousd...@gmail.com, Jul 31 2012 Processing Steps to reproduce: 1) Ensure you have the Google Plugin for eclipse installed (https://developers.google.com/eclipse/docs/download) 2) Ensure you have the GWT Developer Plugin for Chrome installed. 3) Launch Eclipse and create a new Web Application Project by selecting File->New Web Application Project • Enter a name for the project e.g. "GWTEarthChromeIssue" • Enter a package name e.g. com.n