Skip to content

Can't set map view max zoom #44

@you-randomly

Description

@you-randomly

changing the maxZoom view setting on a map view orb container has no effect

        const container = document.getElementById('graph');
        const orb = new Orb.Orb(container);
        orb.setView((context) => new Orb.MapView(context, {
            getGeoPosition: (node) => ({ lat: node.data.lat, lng: node.data.lng, }),
        }));
        orb.view.setSettings({
            map: {
                zoomLevel: 9,
            },
            render: {
                maxzoom: 20,
            },
        });

I'd expect the above would allow the user to zoom all the way to zoom level 20 on the map

however this doesn't seem to the be the case as this has no affect on the test sie i have setup

I'm guessing these settings maybe only affect the default view?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions