<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Arial">Hey,</font><div><font face="Arial"><br></font></div><div><font face="Arial">I have a problem regarding my touch-navigation map having a layerListener listening for clicks on a vector layer. The clicking is very tricky because I think the listener does not register an action as a click, when the finger is not completely still while touching the marker. I've heard of the property 'pixelTolerance' and added it to the listener to pass to the clickHandler, but it does not seem to work. Here is my code:</font></div><div><font face="Arial"><br></font></div><div><font face="Arial"><b>Map constructor:</b></font></div><div><font face="Arial"><br></font></div><div><font face="Arial"><div>map = new OpenLayers.Map('map', {</div><div><span class="Apple-tab-span" style="white-space:pre">                           </span></div><div>                layers: [layer, pointLayer, vector],</div><div><span class="Apple-tab-span" style="white-space:pre">                          </span>controls: [</div><div>            new OpenLayers.Control.TouchNavigation({</div><div>                dragPanOptions: {</div><div>                    enableKinetic: true</div><div>                },</div><div>                clickHandlerOptions: {</div><div>                    pixelTolerance: 10 }</div><div>            }),</div><div>            new OpenLayers.Control.Zoom(),</div><div>            new OpenLayers.Control.LayerSwitcher()</div><div>        ],</div><div>                zoom: 10,</div><div>                center: [-1081125, 6212801]</div><div>            });</div><div><br></div><div><br></div><div><b>Listener Constructor:</b></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>var layerListeners = {</div><div><span class="Apple-tab-span" style="white-space:pre">                               </span>featureclick: function(e) {</div><div><span class="Apple-tab-span" style="white-space:pre">                                  </span>//log(e.object.name + " says: " + e.feature.id + " clicked.");</div><div><span class="Apple-tab-span" style="white-space:pre">                                   </span>//alert(e.feature.attributes.Name);</div><div><span class="Apple-tab-span" style="white-space:pre">                                  </span>ajax_request('mob_detail.php','POST','?t=1&id='+e.feature.attributes.Id,'mob_detailLayer');</div><div><span class="Apple-tab-span" style="white-space:pre">                                      </span>return false;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>};</div></div><div><br></div><div><br></div><div><b>Layer constructor:</b></div></font><div><br></div><div>            pointLayer = new OpenLayers.Layer.Vector("Wasserhäuschen", {</div><div>            strategies: [new OpenLayers.Strategy.Fixed()],</div><div><span class="Apple-tab-span" style="white-space:pre">                     </span>eventListeners: layerListeners,</div><div>            attribution:"© 2014 - <a href=http://www.linie11.org target=_blank>Linie 11 W.l.W. e.V.</a>",</div><div>            protocol: new OpenLayers.Protocol.HTTP({</div><div>                url: "./geoData/data.xml.gml",</div><div>                format: new OpenLayers.Format.GML()</div><div>            }),</div><div><span class="Apple-tab-span" style="white-space:pre">                    </span>styleMap: new OpenLayers.StyleMap({'default':defaultStyle,</div><div>                                                           'select':selectStyle,</div><div>                                                           'temporary':tempStyle</div><div><span class="Apple-tab-span" style="white-space:pre">                                                                                 </span>},{</div><div>                context: {</div><div>                  // ...</div><div>                  label: function(feature) {</div><div>                    // clustered features count or blank if feature is not a cluster</div><div>                    return feature.cluster ? feature.cluster.length : "";  </div><div>                  }</div><div>                  // ..</div><div>                }</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                  </span>})});</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                     </span>registerEvents(pointLayer);</div><div><br></div><div><br></div><div>Any ideas?</div><br>---<br><b>Frederick Löbig</b><br>Ingenieur für Geomatik und Geodäsie<br><br><b>Dienst:</b><br>Fachreferent bei DB Netz AG<br>Zentraler Datenmanager und Innovationsverantwortlicher<br>Infrastrukturdatenmanagement (I.NVT 52)<br>A: Im Galluspark 23, 60326 Frankfurt am Main<br>E: Frederick.Loebig@deutschebahn.com<br><br><b>Privat:</b><br>Röderichstraße 59<br>60489 Frankfurt am Main<br>---<br>E: Frederick.Loebig@live.de <br>P: +49 (0) 69 - 78 99 52 41<br>M: +49 (0) 174 - 70 89 296<br>S: floebig</div>                                          </div></body>
</html>