Azure-Samples / Azure-Samples/AzureMapsCodeSamples

Weird positioning of map control in right bottom corner

Ouverte
#154 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
373
Forks
468
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduce the behavior using the shown Azure Maps configuration and the controls.add call with ControlPosition.BottomRight and StyleControl. Compare the rendered control position with the expected bottom alignment, then determine whether the issue belongs in this sample or in the Azure Maps web control; done means the cause and expected behavior are established.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, javascript
Domaine
frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.