My apologies if this should technically be a 'support request', but I think there's a bug hiding in here somewhere.

This is probably related to #1387314: Pop-up behaviour in touch screens

I created a custom popup behavior and everything works perfectly, except the popup does not get produced when the feature is touched on iPad. As best as I can determine, the 'onSelect' is not being fired. To eliminate any of my own buggy code, I create a separate module that simple adds one custom behavior, but I base this new custom behavior completely off of the openlayers_behavior_popup behavior that came with the module. I only modified the class name and file names. All of the rest of the code is exactly the same.

I enabled my new module, selected it as a behavior on my map, refreshed everything and still no luck. Popup works on desktop. Nothing happens on iPad with touch. The rest of the map responds to touch events (panning, pinch zooming)

I disabled my custom behavior and enabled the standard "Pop Up for Features" behavior on the same map and it works perfectly on iPad.

So something seems to be missing with the custom behavior that is present with the standard behavior -- even though they have the same code. I have attached a ZIP with the module for my test custom behavior. Maybe there is something I'm missing in there?

Any help or advice would be greatly appreciated.

..jon

CommentFileSizeAuthor
ol_test.zip2.55 KBJonMcL
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zzolo’s picture

Status: Active » Closed (duplicate)