the-hideout / tarkov-dev

The official site for tarkov.dev - A web app to track item prices, view trader barters, quests, maps, and much more!
https://tarkov.dev
MIT License
144 stars 52 forks source link

Add capability to add labels to maps #830

Closed Razzmatazzz closed 8 months ago

Razzmatazzz commented 8 months ago

image

Introduces capability to add labels to maps. I don't have time to add the labels myself, but it's therefore anyone who has the bandwidth. There are a couple example labels on Customs and Factory (these are currently "commented" out by naming the property _label). They work by adding a labels property to a map in the maps.json that is an array of the labels. Each label needs to have at least position (array of [x, z] coordinates) and text (the label text to display, which is localized via the maps namespace) properties. It also supports the following optional properties:

Also updates the API queries so that they are named and uses fragments on the items query. Also improves logic for determining which quests are "active." Also adds support for svgBounds property on maps to specify the exact bounds of the SVG, if different from overall map bounds.

github-actions[bot] commented 8 months ago

👋 Thanks for opening a pull request!

If you are new, please check out the trimmed down summary of our deployment process below:

  1. 👀 Observe the CI jobs and tests to ensure they are passing

  2. ✔️ Obtain an approval/review on this pull request

  3. 🚀 Deploy your pull request to the development environment with .deploy to development

  4. 🚀 Deploy your pull request to the production environment with .deploy

    If anything goes wrong, rollback with .deploy main

  5. 🎉 Merge!

Note: If you have a larger change and want to block deployments, you can run .lock --reason <reason> to lock all other deployments (remove with .unlock)

You can view the branch deploy usage guide for additional information

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev

Razzmatazzz commented 8 months ago

.deploy to development

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to development

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to development

Show Results https://53265484.tarkov-dev.pages.dev
Razzmatazzz commented 8 months ago

.deploy

github-actions[bot] commented 8 months ago

Deployment Triggered 🚀

Razzmatazzz, started a branch deployment to production

You can watch the progress here 🔗

Branch: map-labels

github-actions[bot] commented 8 months ago

Deployment Results ✅

Razzmatazzz successfully deployed branch map-labels to production

Environment URL: tarkov.dev