Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having the browser zoom level at something other than 100% causes 'icon-image' icons to not display #4928

Closed
subwai opened this issue Jun 30, 2017 · 1 comment

Comments

@subwai
Copy link

subwai commented Jun 30, 2017

mapbox-gl-js version: 0.38.0

Steps to Trigger Behavior

Everything tested on macOS Sierra 10.12.5

REPRODUCIBLE: Chrome Version 59.0.3071.115 (Official Build) (64-bit)
REPRODUCIBLE: Firefox 54.0.1 (64-bit)
For some reason this is not an issue in Safari: Version 10.1.1 (12603.2.4)

  1. Go to https://www.mapbox.com/mapbox-gl-js/example/add-image-generated/ or https://www.mapbox.com/mapbox-gl-js/example/add-image/
  2. Set browser zoom level to 110% (or 90%), by pressing "Cmd +"
  3. Reload the page

Expected Behavior

  • The icon you try to load in these examples should display

Actual Behavior

  • The icon is not displaying at all (however the map base is still there)

The bug only seems to be a problem for the layer property "icon-image".

@mollymerp
Copy link
Contributor

Hi @subwai, thanks for the detailed report. I was able to reproduce this bug on my macbook pro in Chrome. We will investigate 🕵️‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants