mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [Maps] use higher resolution icons with larger fixed sizes * [Maps] use higher resolution icons with larger fixed sizes
This commit is contained in:
parent
ce1e024d64
commit
26fa709e7b
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ export class StaticSizeProperty extends StaticStyleProperty {
|
|||
|
||||
syncIconImageAndSizeWithMb(symbolLayerId, mbMap, symbolId) {
|
||||
const iconPixels =
|
||||
this._size >= HALF_LARGE_MAKI_ICON_SIZE ? LARGE_MAKI_ICON_SIZE : SMALL_MAKI_ICON_SIZE;
|
||||
this._options.size >= HALF_LARGE_MAKI_ICON_SIZE ? LARGE_MAKI_ICON_SIZE : SMALL_MAKI_ICON_SIZE;
|
||||
|
||||
mbMap.setLayoutProperty(symbolLayerId, 'icon-image', `${symbolId}-${iconPixels}`);
|
||||
const halfIconPixels = iconPixels / 2;
|
||||
mbMap.setLayoutProperty(symbolLayerId, 'icon-size', this._options.size / halfIconPixels);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue