Coder Social home page Coder Social logo

Zoom wheel about abrptransmitter HOT 5 CLOSED

g4rb4g3 avatar g4rb4g3 commented on September 28, 2024
Zoom wheel

from abrptransmitter.

Comments (5)

SamuelBrucksch avatar SamuelBrucksch commented on September 28, 2024

Guess you would have to call javascript functions to call clickevent of '+' and '-' in gecko view. Can you register listeners that fire javascript on the currently loaded page? i guess then it is easy...

there are javaScript functions zoomIn() and zoomOut() that zoom, so you could just call them to zoom in and out from a javascript console. you can try it in your browser.

Following calls could be handy:
Center map on car: centermode = false; toggleCenter() (centermode needs to be false so it centers again, else it will just toggle on/off
Zoom in: zoomIn()
Zoom out: zoomOut()
Enable night mode: nightmode= false;toggleNight()
Enable day mode: nightmode= true;toggleNight()

from abrptransmitter.

SamuelBrucksch avatar SamuelBrucksch commented on September 28, 2024

How to inject Javascript:
https://stackoverflow.com/questions/57244592/how-to-inject-javascript-to-geckoview-on-android

So it actually should be possible to use the wheel know and others to interact with the map.

from abrptransmitter.

g4rb4g3 avatar g4rb4g3 commented on September 28, 2024

That way doesn't work. You have to write a web extension. Only problem is that v67 of geckoview doesn't seem to support them.... At least the guides I found don't match the functionality in geckoview v67.
https://mozilla.github.io/geckoview/consumer/docs/web-extensions
And newer geckoviews don't work anymore on Android 4.2...
When I tried v71 and v72 I got an verifyexception. But not only on the navi, also on an Android emulator.
I then tried to just send the keyevenz zoom in/out but that zooms the whole website.

from abrptransmitter.

g4rb4g3 avatar g4rb4g3 commented on September 28, 2024

v67 got only initial webextension support, almost nothing i need is working :(
https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/doc-files/CHANGELOG

from abrptransmitter.

g4rb4g3 avatar g4rb4g3 commented on September 28, 2024

resolved with cdfac4e

from abrptransmitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.