OpenLayers on Android

Has anyone tried using OpenLayers on Android? How did everything go? Was access to it through a browser at a specific address or built into a local Android application using WebView ?, or another approach.

If any links related to this topic come to your mind, add them here.

thanks

+6
source share
4 answers

A small update on the topic - currently the OL version supports mobile devices.

+4
source

The current version of OpenLayers (2.10) does not support mobile browsers. The new version (2.11) is very close to the release, and you can enable mobile device support if you enable the OpenLayers version from the backbone. This definitely works if you access it as a regular web page and should work if it is embedded in WebViews.

You can try yourself here: http://openlayers.org/en/latest/examples/

Just enter β€œmobile” in the search field, and you will get a couple of examples where you can see how mobile navigation, editing, etc. works on Android and iOS.

+3
source

Yo can try with the latest mobile version of OpenLayers ( http://openlayers.org/en/latest/examples/mobile-full-screen.html ) for an html project and paste the page into the Mobile App with Apache Cordova ( http: // cordova .apache.org / )

+2
source

As far as I know (there wasn’t such a device), on Android 3+ devices, the http://openlayers.org/dev/examples/mobile.html page will work directly from when opening the stock in the browser. As already mentioned, since the multi-touch events of mobile devices OL 2.11 are supported, they also provided jQuery with a mobile and geolocation demo that works great on Android.

For most Android 2.x devices, you will need to provide your own web view container, including a polyfill like WMP , if you want the spread and scaling to increase in order to work.

Otherwise, you will remain using the zoom buttons - which is not always preferable, given the small size of many touch screens.

0
source

Source: https://habr.com/ru/post/886908/


All Articles