I am using InvokeScript on a WebBrowser control to try and make a simple map using the Google Maps JavaScript API for HTML. I have a few functions written in the HTML page in Ja
As Noseration said:
JavaScript : function getCameraPosition() { return map.getCenter().toJSON(); } C# : object[] o = new object[] {}; dynamic res = googleMapWB.Document.InvokeScript("getCameraPosition", o); Console.WriteLine(res.lat+","+res.lng);
res.lat and res.lng is already double in this case.