sagulnet / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

Not able to Use ParseKML method #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am using the ParseKML method parsing a string of KML in the test application 
but it seems there is no display of that on the screen. Is there anything i 
need to do in addition or the way I am using is incorrect?

this.geWebBrowser1.ParseKml("<ScreenOverlay><name>Absolute Positioning: Top 
left</name><Icon><href>http://maps.google.com/mapfiles/kml/pal4/icon49.png</href
></Icon><overlayXY x=\"0\" y=\"1\" xunits=\"fraction\" 
yunits=\"fraction\"/><screenXY x=\"0\" y=\"1\" xunits=\"fraction\" 
yunits=\"fraction\"/><rotationXY x=\"0\" y=\"0\" xunits=\"fraction\" 
yunits=\"fraction\"/><size x=\"0\" y=\"0\" xunits=\"fraction\" 
yunits=\"fraction\"/></ScreenOverlay>");

Original issue reported on code.google.com by nitinkum...@gmail.com on 27 Jun 2012 at 12:18

GoogleCodeExporter commented 8 years ago
When i try to debug this string or the following string:

string ppp = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><kml 
xmlns=\"http://www.opengis.net/kml/ 
2.2\"><Document><open>1</open><visibility>1</visibility><Placemark 
id=\"pm123\"><name>point5yyyyyyy, VQS 3.000, AQS 
2.000</name><styleUrl>#sh_cross_hairs_highlight</styleUrl><Point><coordinates>-1
95.44,140.42,0</coordinates></Point></Placemark></Document></kml>";
            this.geWebBrowser1.ParseKml(ppp);

I get a error:

   at System.Dynamic.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo& excepInfo, UInt32 argErr, String message)
   at CallSite.Target(Closure , CallSite , ComObject , String )
   at CallSite.Target(Closure , CallSite , Object , String )
   at FC.GEPluginCtrls.GEWebBrowser.ParseKml(String kml) in D:\Documents and Settings\nitingo\Desktop\drive_testing\winforms-geplugin-control-library\trunk\Controls\GEWebBrowser.cs:line 630

I am not abel to figure out this error at all. I have configured the build of 
my app and API to x86 configuration.

Original comment by nitinkum...@gmail.com on 27 Jun 2012 at 1:09

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for this...I have had a play with the code you posted but I am not able 
to reproduce this bug. I will do some further testing to see if I can find the 
issue.
Out of interest, could you let me know the OS and version of IE you are using 
please?

Many thanks,

Fraser

Original comment by fraser.c...@gmail.com on 31 Jul 2012 at 9:05

GoogleCodeExporter commented 8 years ago
Hey

yeah i am able to reproduce it. I am using WIndows xp sp3 and IE verison is 
8.0.6.

Original comment by nitinkum...@gmail.com on 1 Aug 2012 at 5:17

GoogleCodeExporter commented 8 years ago
You are almost certainly calling `this.geWebBrowser1.ParseKml` before the 
plugin is ready. see this simple set up for help - 
https://code.google.com/p/winforms-geplugin-control-library/wiki/ExampleForm

Original comment by fraser.c...@gmail.com on 8 Apr 2013 at 6:44