AzureMapsCodeSamples icon indicating copy to clipboard operation
AzureMapsCodeSamples copied to clipboard

Weird positioning of map control in right bottom corner

Open Jxlle opened this issue 1 year ago • 4 comments

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 });

Jxlle avatar Oct 23 '24 13:10 Jxlle

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.

cschotte avatar Oct 23 '24 13:10 cschotte

@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.

Jxlle avatar Oct 23 '24 13:10 Jxlle

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.

cschotte avatar Oct 23 '24 13:10 cschotte

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

Jxlle avatar Oct 23 '24 14:10 Jxlle