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

back compatibility issues for polygon placment in the KmlTreeView control #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.copy "polytest.kml" to exe path
2.add "FetchKmlLocal" call in "LoadKmlExamples()" function : 

this.geWebBrowser1.FetchKmlLocal("polytest.kml"); 

3. double click on the poly placment in the tree view

What is the expected output? What do you see instead?

showing the polygom on map view 
(work in last version)

What version of the product are you using? On what operating system?

Revision: r411 , Apr 27, 2011 
windows 7
visual studio 2010

Please provide any additional information below.

Original issue reported on code.google.com by aviram.s...@gmail.com on 16 May 2011 at 3:36

Attachments:

GoogleCodeExporter commented 8 years ago
You would need to specify the full path to the file, i.e.

this.geWebBrowser1.FetchKmlLocal(@"c:/somefolder/polytest.kml"); 

Also, if you are planning to work with local files you are probably better to 
use the built in local server class.

See: 
http://code.google.com/p/winforms-geplugin-control-library/wiki/usingTheServer

Original comment by fraser.c...@gmail.com on 16 May 2011 at 6:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

its still doesn't work
 the placement been add to the tree but once you click on the tree its 
look at some where else and the polygon is missing

i try to add a the same polygon placment (as is in the kml) by code (ge plugin 
api) and its has the same problem.

thanks,
Aviram

Original comment by aviram.s...@gmail.com on 16 May 2011 at 7:26

GoogleCodeExporter commented 8 years ago
Hmm, did you actually add the kml object to the browser as well as the 
kmltreeview?

i.e.

geWebBrowser1.KmlLoaded += (o, e) =>
{
    // add the kml to the plugin
    geWebBrowser1.ParseKmlObject(e.ApiObject);
    kmlTreeView1.ParseKmlObject(e.ApiObject);
};

I will take a proper look at this and post back here...

Original comment by fraser.c...@gmail.com on 16 May 2011 at 7:31