Skip to content

safari或retina显示白边修正 #1

@thomashooo

Description

@thomashooo
    const viewport = new WebMercatorViewport({
        // width: gl.drawingBufferWidth*1.11,
        // height: gl.drawingBufferHeight*1.11,
        width: gl.drawingBufferWidth / window.devicePixelRatio,
        height: gl.drawingBufferHeight / window.devicePixelRatio,
        longitude: center.lng,
        latitude: center.lat,
        zoom: currentZoomLevel,
        pitch,
        bearing,
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions