You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, width and height are not set in traditional css format. Adding height="250px" will not work, because in angular-mapbox.js, the following modifications are added to the attributes:
var mapWidth = attrs.width || 500;
var mapHeight = attrs.height || 500;
element.css('width', mapWidth + 'px');
element.css('height', mapHeight + 'px');
Here, whatever value is given for the width/height attribute, 'px' is added. Therefore, you define your height/width values without the "px", such as:
In Chrome, you can still use relative sizes with percentages ( width="100%"), as it seems to be prioritized over the px value. (Untested in other browsers)