Azure-Samples / Azure-Samples/azure-maps-overview-map

Other controls are added to the map-overlay if they are added after the OverviewMap Control

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### This issue is for a: (mark with an `x`)
```
- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
- Add an `OverviewMap` control to the map
- Add another type of control to the map

The secondly added control is added inside the overlay of the `OverviewMap` control

### Mention any other details that might be useful

This only affect the controls added **after** the `OverviewMap` control. If the `OverviewMap` control is the last added, everything works fine.

```
//Wait until the map resources are ready.
map.events.add('ready', function () {
// The compass is added on the top-right corner of the map
map.controls.add(new atlas.control.CompassControl(), {
position: 'top-right'
});

//Add the bring data into view control to the map.
map.controls.add(new atlas.control.OverviewMap(), {
position: 'top-left'
});

// The style control will be added to the bottom-right corner of the overlay
map.controls.add(new atlas.control.StyleControl(), {
position: 'bottom-right'
});
});
```

![image](https://user-images.githubusercontent.com/9578038/108094162-cea45b00-707e-11eb-9685-87092468a447.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.