Hello,

I am using openlayers to aggregate views results in a large map. On PC, everything is great. But on a mobile device (iPad for example), mapping experience is not good at all. I selected the mobile device option on the behaviors of my map settings. The problems include:

  • Navigation by touching and dragging is so slow.
  • Two finger zooming is too slow. The layers on a map (icons, lines etc) zooms in and out ok, but the map layer just follows the behavior after you stop touching the screen.
  • Navigation, fullscreen and layer buttons on a map are too difficult to touch.

I believe, this is not from Openlayers library, but rather from Drupal module. Please look at the example in openlayers.org:
http://openlayers.org/dev/examples/mobile.html

This page works perfect in a mobile device.

Comments

mgriebe’s picture

Yeah, I have properties on a map and I cannot select them to show the features pop up on a mobile device.

Satri’s picture

Which version of OpenLayers are you using?

I have failed to get this module to use OpenLayers 2.11, which apparently greatly improves support of touch mobile devices. Thus my request #1623012: Support OpenLayers 2.12

mgriebe’s picture

I am using 2.11. Apparently, the dev version sorts my issue. I am hoping it is added to a stable release soon, so that I can just drush up.

mgriebe’s picture

Status: Fixed » Active

The new dev breaks mobile support again.

**EDIT I unintentionally update to 7.x-3.x-dev, new release of 7.x-2.x-dev works.***

pol’s picture

Status: Active » Fixed

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gthing’s picture

Status: Closed (fixed) » Needs work

I can't get this working. It appears that the controls load briefly and then disappear. Perhaps it is a styling issue causing the layer to be hidden?

Any ideas?

IKE0088’s picture

I have tried relentlessly to render a similar page as cited in the example:
openlayers.org/dev/examples/mobile-jq.html

Have had zero luck. Has anyone had success?

boabjohn’s picture

Title: Openlayers mobile » Openlayers: support for mobile-jq.js

So is anyone out there active with Drupal OpenLayers and the mobile revolution that can shed some light on this one?

Compare for example the extremely clean and sensible interface approach offered by http://www.openlayers.org/dev/examples/mobile-jq.html

compared with what we are able to achieve with the module's current UI options.

Is there a straightforward technical strategy here to improve the potential for OpenLayers(Drupal) to pump out some fantastic map interfaces?

Can the mobile-jq.js be simply included through the OL UI? This would allow us to create a mobile-tuned map, and then call this into the theme based on browser capabilities conditional check.

Thanks in advance,
JB

pol’s picture

Status: Needs work » Fixed

You can now use the mobile version of the OpenLayers, you just need to select it in the settings page.

If you want to include a custom JS, do it through a custom module, a theme or even better, an OpenLayers behavior.

boabjohn’s picture

Status: Fixed » Active

or even better, an OpenLayers behavior.

Hey there Pol,
Thank you for clarifying a bit...and this sounds very tempting.
But can you say a bit more about what you mean? Is there supposed to be an existing OL Behaviour that supports inclusion of (one or more) custom js libraries?
I'd be very keen to use that, but am not sure how that is to be achieved...
Under OpenLayers>Maps>Behaviours, I don't find a tab that deals with js inclusion (unless I've just totally missed it)
If we need to write a "custom" behaviour, and if this is something that can be contributed back to the OL project, I'd be happy to help support that in some way (eg fund a developer).
Kind regards,
JB

nathan.bolin’s picture

Issue summary: View changes

In case anyone else has a broken map on iPad/touch devices, make sure you are using 7.x-2.x-dev.

I was using 7.x-2.0-beta7 and simply updating to 7.x-2.x-dev made my map work on iPad.

For anyone unfamiliar with OpenLayers, there is a comprehensive "Getting Started" guide here: https://drupal.org/node/1481374

mtoscano’s picture

An old issue, but at comment #10 Pol says: You can now use the mobile version of the OpenLayers, you just need to select it in the settings page.
If I do, all the maps just go blank. The same for the light version, only the Original version works. I am using 7.x-2.0-beta11+23-dev, is it normal or should it works?
Thanks