Skip to content

[WIP] Map component#3755

Draft
Vuelos wants to merge 5 commits into
azerothcore:masterfrom
Vuelos:MapComponent
Draft

[WIP] Map component#3755
Vuelos wants to merge 5 commits into
azerothcore:masterfrom
Vuelos:MapComponent

Conversation

@Vuelos
Copy link
Copy Markdown

@Vuelos Vuelos commented May 13, 2026

Adds shared map component.

Partially vibecoded

Use the new component on Creatures and Gameobject Spawn components and on Quests preview panel.

Downloads the maps images from https://cdn.wowclassicdb.com/maps/ and caches them locally.

The logic for deciding what maps to show (As they overlap on coordinates) needs some revision.

Spawns:
imagen

Quest preview:
imagen

@Helias
Copy link
Copy Markdown
Member

Helias commented May 15, 2026

Good job!

minor thing, I would increase the map size

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'keira-map-viewer',
standalone: true,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
standalone: true,

changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'keira-map-viewer',
standalone: true,
imports: [CommonModule],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not import CommonModule, imports directly the components that are exposed by CommonModule and that you are using

import { TableRow } from '@keira/shared/constants';

export const MAP_CONFIG = {
baseUrl: 'https://cdn.wowclassicdb.com/maps/',
Copy link
Copy Markdown
Member

@Helias Helias May 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of cdn.wowclassicdb.com I would use wow.zamimg.com

https://wow.zamimg.com/images/wow/wrath/maps/

example: https://wow.zamimg.com/images/wow/wrath/maps/enus/normal/40.jpg

or wowgaming/aowow https://wowgaming.altervista.org/aowow/static/images/wow/maps/

We are using this on Keira3, or wow zamimg, so I would keep using it

import { inject, Injectable } from '@angular/core';
import { MysqlQueryService } from '@keira/shared/db-layer';
import { MAP_CONFIG, WorldMapArea } from './map-viewer.model';
import { get } from 'jquery';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it used? I would avoid importing jquery if possible

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

Successfully merging this pull request may close these issues.

2 participants