Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
dear all
i run my asp project using google map api , when i click right click using mouse asp page display , but when i open my project in my windows tablet type ( Getac ) the right click by holding on screen not work , .. . .?
any idea please ?

What I have tried:

google.maps.event.addListener(map, "rightclick", function(event) {
               var lat = event.latLng.lat();
               var lng = event.latLng.lng();
               var zoom = map.getZoom();
               ChdWind2 = window.open("locationsPage.aspx?lat="+lat+"&lon="+lng+"&zoom="+zoom+"&setLatLon=Set", "Popup", "toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=0,width=600,height=650,left = 200,top = 20");
               ChdWind2.focus();
Posted
Updated 30-Apr-19 20:00pm
Comments
Christian Graus 1-May-19 1:52am    
I would suggest writing a simple page to work out what events work on your tablet

1 solution

Right click isn't always "Long Hold" on a touch screen: it's "Hold and second touch with different finger" sometimes.
 
Share this answer
 
Comments
sam9787 1-May-19 2:20am    
i try that but not work :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900