I am creating a web application for mobile phones, where if they put off a certain part of the map, something happens. Unfortunately, I cannot use window.setTimeout (..) with the mousedown / mouseup combination because the Maps API does not contain these events, as this will violate the drag and drop events. Is there any other way to do this? There must be a way, because Maps Webapp on a mobile phone pops up in the same menu when you right-click on Google maps for computers - you just don’t know how to do it! Please let me know!
Thanks in advance!
, DOM mousedown/mouseup, Maps API, . API , (, , ):
google.maps.event.addDomListener(document.getElementById('map_canvas'), 'mousedown', function () { console.log("Test") });
. Android iPhone. , :
http://backtothecode.blogspot.com/2009/10/javascript-touch-and-gesture-events.html
, , , , , "" , , . , , .: P
Source: https://habr.com/ru/post/1754722/More articles:JAXB throws an error when unmarshalling empty attributes int, double or date - javaFacebook Graph API returns an inconsistent number of friends with a Facebook profile - facebookConvert mm / dd / yy to mm / dd / yyyy in PHP - dateOpenXML: replace element to a table in WordprocessingML - c #Tag Categories - vocabularyHow to link multiple tag types for each model in django - djangoSetting an object in a split array - javascriptcreating a dashboard in javascript - javascript"Machine tags that reference model instances in Django - djangoЕсть ли бесплатная программа, которая объединяет сборки (например, ILMerge), но работает с wpf? - c#All Articles