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

Weird positioning of map control in right bottom corner #154

Open
Jxlle opened this issue Oct 23, 2024 · 4 comments
Open

Weird positioning of map control in right bottom corner #154

Jxlle opened this issue Oct 23, 2024 · 4 comments

Comments

@Jxlle
Copy link

Jxlle commented Oct 23, 2024

When placing a map control in the right bottom corner, its control graphic is not placed at the bottom. I would think that the copyright or feedback link would obstruct the map control in the corner but the feedback link is disabled. Even though nothing is under the map control, it is not placed fully at the bottom. Is this by design?

image

Map configuration:

this.map = new azmaps.Map('mapContainer', {
            center: ...,
            maxBounds: ...,
            pitch: ...,
            bearing: ...,
            zoom: ...,
            minZoom: ...,
            maxZoom: ...,
            style: ...,
            language: ...,
            preserveDrawingBuffer: true,
            progressiveLoading: true,
            showFeedbackLink: false,
            showLogo: false,

            authOptions: {
                authType: azmaps.AuthenticationType.subscriptionKey,
                subscriptionKey: ...
            }
        });
        this.map.controls.add([
            new azmaps.control.StyleControl({ mapStyles: 'all' }),
        ], { position: azmaps.ControlPosition.BottomRight });
@cschotte
Copy link
Collaborator

In the bottom right corner, the mandatory copyright information is displayed on the map, with the controls positioned just above it. In your screenshot, the style picker control is correctly placed, but the copyright information is missing, that is way it looks strange.

@Jxlle
Copy link
Author

Jxlle commented Oct 23, 2024

@cschotte Thanks for your fast reply! Do you happen to know why the copyright information might be missing? I remember I saw it a few days ago but now it never shows.

@cschotte
Copy link
Collaborator

Are you using the CDN or NPM version of the map control, and which version number are you loading? I can still see the copyright information in the samples and demo site.

@Jxlle
Copy link
Author

Jxlle commented Oct 23, 2024

@cschotte I use the NPM package, latest verion, version 3.4.0

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

No branches or pull requests

2 participants