Adding kml file to webMapviewer

Hello, Does anyone know if there is a way I can add a .kml file to a webMapviewer using code at runtime. I know how to do this using html as per google’s developer documentation and examples, but would be great to be able to do this from within Xojo. Many thanks.

even if you could load the kml then you still have to connect to the google account in order to visualize the pinpoints.
anyway, very interesting, I was wondering the same thing.
Following !

The kml file is xml based file.
Parse the file and pass the data that you want to webMapviewer.
Simple kml.
XMLDocument

<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name>Polygon with fade in/out</name> <Style> <PolyStyle> <color>ffff8080</color> </PolyStyle> </Style> <Region> <LatLonAltBox> <north>-34.85</north> <south>-34.97</south> <east>138.64</east> <west>138.56</west> </LatLonAltBox> <Lod> <minLodPixels>128</minLodPixels> <maxLodPixels>1024</maxLodPixels> <minFadeExtent>64</minFadeExtent> <maxFadeExtent>256</maxFadeExtent> </Lod> </Region> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> 138.64,-34.93 138.64,-34.94 138.63,-34.94 138.62,-34.94 138.62,-34.95 138.62,-34.96 138.63,-34.96 138.62,-34.96 138.61,-34.97 138.60,-34.97 138.59,-34.97 138.58,-34.97 138.57,-34.97 138.57,-34.96 138.57,-34.95 138.57,-34.95 138.57,-34.94 138.57,-34.93 138.57,-34.92 138.57,-34.92 138.57,-34.91 138.56,-34.91 138.56,-34.90 138.57,-34.90 138.57,-34.90 138.57,-34.89 138.57,-34.89 138.57,-34.89 138.56,-34.88 138.56,-34.88 138.56,-34.88 138.56,-34.88 138.57,-34.88 138.58,-34.87 138.58,-34.87 138.58,-34.86 138.58,-34.85 138.58,-34.85 138.60,-34.85 138.61,-34.85 138.63,-34.85 138.63,-34.85 138.64,-34.86 138.64,-34.87 138.64,-34.87 138.63,-34.87 138.63,-34.88 138.62,-34.88 138.62,-34.88 138.62,-34.89 138.62,-34.89 138.62,-34.89 138.63,-34.89 138.63,-34.90 138.64,-34.90 138.64,-34.90 138.64,-34.91 138.64,-34.91 138.64,-34.92 138.64,-34.92 138.64,-34.93 138.64,-34.93 </coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Placemark> </kml>

Thanks Loannis, sorry for delay in replying for some reason missed the notification. I don’t understand how I would pass this to the WebMapViewer though. I can’t see any Xojo methods that allow me to do this. Horacio, connecting to Google is fine I’ve already done this and have played around doing this in HTML which works perfectly and is easy, but I’d like to do this from within Xojo using the WebMapViewer if I could.