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

Viewer throws exception when element size is zero

oscarlorentzon opened this issue · comments

Basic information

MapillaryJS version: 2.17.0
System/Browser: All

Steps to Reproduce Behavior

  1. Create a viewer with element width and height of 0.
  2. Move to a key.

Expected behavior

The viewer is functional.

Actual behavior

The viewer throws the following exception:

Error: <path> attribute d: Expected path command, "M 0 0 NaN NaN A 1 1 0 …".