Winforms demo and extensibility

17 views
Skip to first unread message

Matthew J Reines

unread,
Nov 14, 2009, 8:09:18 PM11/14/09
to KML Developer Support - Google Earth Plug-in
Hello,
First I would like to give a major nod to Fraser Chapman and Roman
Nurek. The GExtensions demo and the Winforms code project have really
gotten me off to a great start in integration of Google Earth.

I'm working on extending the functionality of the winforms demo and
had a few questions

1.) In this scenario, I can't seem to utilize any local resources
(images) for placemarks. While the online icons work just fine, in a
stand-alone application, it would be a great feature to be able to
load local files... much like the Google Earth stand alone. I suspect
the same issue exists with images in KMZ files, but I haven't gotten
that far yet.

2.) The GEX extensions are a programmers dream! But - and maybe I'm
missing something obvious - I'm wanting to use the polygon/polyline
editing - how can I subscribe to editing events - such that my 'shape'
which exists in the managed code can subscribe to and update itself
while editing after a call to gex.edit.editLineString. I already do
this in the manual plotting js methods, so I know I can get and
respond to the events I just need to know what 'subscription' to
make.

3.) Fraser you may be interested to know I do have the extensions
working in a scenario based on your code project - again, nice work!
It's fairly simple, I used 'InjectJavaScript' t load the extensions
and initialized the 'gex' var after the document loading was complete.
After that you can use them. I've only used with polygon editing so
far - but I'm going to explore much further.

Lastly, I am interested in contributing all I can on this project (the
winforms demo in particular). I would be happy to submit code when
useful. I've been able to dedicate one day a week to this work. I am a
GIS software engineer by trade, and I think I could be of use. I'll
freely submit code whenever asked, or if you have specific things
you'd like help with, please let me know!

Matthew J Reines

unread,
Nov 14, 2009, 8:59:45 PM11/14/09
to KML Developer Support - Google Earth Plug-in
I've answered one of these myself - for anyone interested, to get
notifications of polygon/polyline edits using gex :

gex.edit.editLineString(feature.getGeometry().getOuterBoundary(),
{ editCallback: editPolylineCallback } );

fraser (Earth API Guru)

unread,
Nov 20, 2009, 10:21:56 AM11/20/09
to KML Developer Support - Google Earth Plug-in
Hi Matthew,

Thank you for your kind words...

1) I am currently putting together a simple multi-threaded TCP server
class that I plan to integrate into the GEPluginCtrls project. This
will overcome all the local file issues by serving the local files
over a standard TCP connection. I plan to do this over the upcoming
holidays so stay tuned...

2) ...cool, well done...

3) This is something I have considered including in the project
myself. I have actually implemented a similar solution in some of my
own projects. I guess In an ideal world I would port the excellent
GExtensions to managed code but I just don't have the time to do this
(maybe it is something I will look at over the holidays...)

As for contributing, if you would like to submit patch files or code
then please feel free. If you have any ideas for development then
again, feel free to get in touch either via email or through the
issues page for the project.

Anyhow, thanks again Matthew.

Regards,

Fraser.
Reply all
Reply to author
Forward
0 new messages