Initially Iam using Webbrowser in vb.net for googlemap. now google not supporting the Webbrowser.So Iam using geckoWebbrowser.
map is displaying in browser but my issue is when i click map the geolocation to pass to vb.net form function .but iam unable to call vb.net form function in javascript side.
initially we r using window.host in webbrowser.
please give me solution for that.
What I have tried:
javascript code
--------------------
function Initialize()
{
var stZoom=10;
var MapType=google.maps.MapTypeId.ROADMAP;
var myLatlng = new google.maps.LatLng("13.12","76.12");
var myOptions = {zoom: parseInt(stZoom),center: myLatlng,mapTypeId: MapType};
map = new google.maps.Map(document.getElementById("map_canvasADD"), myOptions);
currentMarker = new google.maps.Marker({map: map,draggable: false,position: {lat: "13.12", lng: "76.12"},index:0});
currentMarker.setPosition(myLatlng);
google.maps.event.addListener(map, 'click', MapGeo);
}
function MapGeo(e){
window.external.MapGeoDotnet(e.latLng.lat(),e.latLng.lng());
}
----- End JavaScript----
-----vb.net Side -----
Public Sub MapGeoDotnet(ByVal lat As Double, ByVal lng As Double)
Msgbox(lat & " " & lng)
End Sub