[Geomoose-users] GeoMoose Mobile OpenLayers Control TouchNavigation

Reynolds, Michael J. (DOT) mike.reynolds at state.mn.us
Thu Jul 21 10:26:06 EDT 2011


Bob,

Sorry for the delay of this response.  State lights were off for a couple weeks there.  Back to work now though.

We do not have a public facing geomoose application.  Wish we did.

Modifications I detailed below should get you started.

It would be great if someone could take a glance at it and see if those are the correct places to implement the Open Layers touch capabilities.  Perhaps there is a better place to do it.

The major thing that does not work with this implementation is the ability to switch to the identify tool.  If this can be resolved, it would be pretty easy to deploy a stand alone mobile geomoose application that had most capabilities (though some of the advanced tools like sketch, etc might not be functional).


From: Dan Little [mailto:danlittle at yahoo.com]
Sent: Wednesday, July 06, 2011 7:21 AM
To: Bob Basques; Geomoose Support; Reynolds, Michael J. (DOT)
Subject: Re: [Geomoose-users] GeoMoose Mobile OpenLayers Control TouchNavigation

There should be some sniffing happening.  Not by browser name, however, but by detecting whether the functionality is supported.  We may (in say, a 2.8 or 3.0 release) want to have a way of having a "mobile view" or at least some additional configuration parameters that allow the administrator to have a more mobile appropriate form of the application.

________________________________
From: Bob Basques <Bob.Basques at ci.stpaul.mn.us>
To: Geomoose Support <geomoose-users at lists.sourceforge.net>; Michael J. (DOT) Reynolds <mike.reynolds at state.mn.us>; Dan Little <danlittle at yahoo.com>
Sent: Tuesday, July 5, 2011 9:27 AM
Subject: Re: [Geomoose-users] GeoMoose Mobile OpenLayers Control TouchNavigation
I figured the touch stuff would make it's way through to GeoMoose at some point, just didn't know when exactly.  Nice to hear it's closer than I first thought.

Question, is the activation of the Touch stuff all Browser (name) related, as in the GM app needs to figure out the browser, or will/should it be a configuration setup for a mobile (only?) service?

bobb



>>> Dan Little <danlittle at yahoo.com> wrote:
I've been waiting for OL2.11 to come out of RC status.  Though I think RC1 may end up being the only RC.  I think the touch integration should work pretty smoothly.

________________________________
From: Bob Basques <Bob.Basques at ci.stpaul.mn.us>
To: Geomoose Support <geomoose-users at lists.sourceforge.net>; Michael J. (DOT) Reynolds <mike.reynolds at state.mn.us>
Sent: Wednesday, June 29, 2011 3:00 PM
Subject: Re: [Geomoose-users] GeoMoose Mobile OpenLayers Control TouchNavigation
Michael,

You're definitely on the forefront of development here with respect to GeoMoose.

I'm seeing more interest in the Mobile support stuff for GeoMoose (and other OSS projects) lately, and I'm interested in what can be made to work here.

I have an IPAD now and an Android device on order.  Do you have a public facing site to demo/test from?  I don't have anything in the new GEOMOOSE code running on the outside right now, or I play there.   I could set up my own and add your changes too if need be.

bobb



>>> "Reynolds, Michael J. (DOT)" <mike.reynolds at state.mn.us> wrote:
I was wondering if anyone has created a good Mobile Touch version of Geomoose.  Is there a good way to do this?

I took a quick chop at it.  With a version of Goemoose 2.2. Downloaded the newest OpenLayers 2.11-rc1 to the htdocs folder.

Modified the index.html to load the openlayers.js from this new version’s folder.

In the compiled.js file I made the following change:

function configureMap () {
      CONFIGURATION.scales = CONFIGURATION.scales.sort().reverse();

      var options = {
            maxExtent : OpenLayers.Bounds.fromArray(CONFIGURATION.max_extent),
            controls : [new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.ScaleJumper({target: 'scale-jumper'}), new OpenLayers.Control.TouchNavigation({dragPanOptions: {enableKinetic: true }})],
            units: CONFIGURATION.ground_units,
            projection: new OpenLayers.Projection(CONFIGURATION.projection),
            displayProjection: new OpenLayers.Projection(CONFIGURATION.projection),
            fractionalZoom: CONFIGURATION.fractional_zoom
      }

Specifically I added “, new OpenLayers.Control.TouchNavigation({dragPanOptions: {enableKinetic: true }})” to the controls array.

The site seemed to load up just fine.

The map panel now responds to touch gestures:

Double tap / reverse pinch = zoom in
Pinch = zoom out
Point drag = pan
Zoom to extent tool works.

Some of the navigation tools are not necessary now (magnifying glass, pan?)

The Identify tool does not work.  I think the way I added in the Touch Navigation or the existing geomoose tool management doesn’t allow the identify click to override the touch navigation on the map div.

Our goal is to make our Geomoose site compatible with Ipad/Safari devices and Android devices.

I don’t know what this breaks.  Does it break anything?

Anyone already pave this ground?


Michael Reynolds
(651) 775-5915
Traffic Engineering - Data Management
MnDot - Metro District
USNG: 15TVK8708484276



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.sourceforge.net<mailto:Geomoose-users at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geomoose-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20110721/2066b195/attachment.html


More information about the Geomoose-users mailing list