mapillary / mapillary-js

Interactive, extendable street imagery map experiences in the browser, powered by WebGL

Home Page:https://mapillary.github.io/mapillary-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popup capture pointer default value not respected if no options supplied

oscarlorentzon opened this issue · comments

Basic information

MapillaryJS version: 2.9.0
System/Browser: All

Steps to Reproduce Behavior

  1. Create a default popup and add it to the component:
var popupComponent = mly.getComponent('popup');

var span = document.createElement('span');
span.innerHTML = 'my popup content';

var popup = new Mapillary.PopupComponent.Popup();
popup.setDOMContent(span);
popup.setBasicPoint([0.546, 0.523]);

popupComponent.add([popup]);

Expected behavior

The popup captures the pointer according to the default value specified in the docs at https://mapillary.github.io/mapillary-js/interfaces/ipopupoptions.html#capturepointer.

Actual behavior

The popup does not capture the pointer.