[mapguide-users] Re: Mapguide maps using openlayers
Michael Adair
madair at dmsolutions.ca
Fri Apr 29 09:09:59 EDT 2011
Looks like your OpenLayers build doesn't include the TouchNavigation
control - "OpenLayers.Control.TouchNavigation is not a constructor" is
the error message. You'll have to rebuild OpenLayers from SVN trunk and
include that control. There is a 'mobile.cfg' build file in OL that
includes it, or customize your own cfg file.
Mike
On 29/04/2011 8:48 AM, Nimrod Cnaan wrote:
> I'm having problems adjusting this sample for iPhone Touch navigation.
>
> I have a working .Net sample& now I want to add the TouchNavigation (Line
> in red) support but I don’t seem to get it working on my iPhone device.
>
> Any help ?
>
>
> …
> map.zoomToMaxExtent();
>
> map.addControl(new OpenLayers.Control.TouchNavigation({'dragPanOptions':
> {'interval': 100, 'enableKinetic': true}}));
>
> map.addControl(new OpenLayers.Control.MousePosition());
> map.addControl(new OpenLayers.Control.Scale());
>
>
> Here is a link to the working sample
> http://www.mgos.co.il/hetzit/ol.aspx http://www.mgos.co.il/hetzit/ol.aspx
>
>
>
> Nimrod Cnaan
> North Errow Geomatix--
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapguide-maps-using-openlayers-tp1818558p6316748.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list