Active
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
OL UI
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2012 at 12:33 UTC
Updated:
2 Nov 2016 at 20:29 UTC
Jump to comment: Most recent
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:
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
Comment #1
mgriebe commentedYeah, I have properties on a map and I cannot select them to show the features pop up on a mobile device.
Comment #2
Satri commentedWhich 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
Comment #3
mgriebe commentedI 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.
Comment #4
mgriebe commentedThe 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.***
Comment #5
polComment #7
gthing commentedI 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?
Comment #8
IKE0088 commentedI 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?
Comment #9
boabjohn commentedSo 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
Comment #10
polYou 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.
Comment #11
boabjohn commentedHey 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
Comment #12
nathan.bolin commentedIn 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
Comment #13
mtoscano commentedAn 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