mapbox / mapbox/mapbox-gl-draw

Custom controls not visible on iOS

Open
#990 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

mapbox-gl-js version: 1.9.1
mapbox-gl-draw version: 1.2.0-dev (https://github.com/trygveaa/mapbox-gl-draw/tree/dont-drag-with-multiple-fingers)

Steps to Trigger Behavior
  1. Ionic 5 (Angular) Application with mapbox-gl-js and mapbox-gl-draw
new MapboxDraw({
    displayControlsDefault: false,
    controls: {
        polygon: true,
        trash: true
    }
})
Expected Behavior

Custom draw controls are visible on all platforms

Actual Behavior

Custom draw controls are not visible on iOS. Using the default draw controls (new MapboxDraw()) is working.
However, the custom draw controls are visible on macOS in Chrome and Safari.

iOS 13.4 (iPad 6. Generation)

Custom draw controls Default draw controls
IMG_0010 IMG_0009

macOS Chrome

Custom draw controls Default draw controls
Bildschirmfoto 2020-06-03 um 11 50 55 is also working

The weird thing is that the draw controls are visible when I pan the map and tiles have not been loaded yet. When the tiles load, they are on top of the controls. Changing z-index on the controls doesn't have an effect however.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the MapboxDraw configuration shown in an Ionic 5 Angular application on iOS 13.4, then compare custom and default controls while map tiles load. Done means custom draw controls remain visible on iOS after the tiles load, without relying on z-index changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.