ProfessionalWiki / ProfessionalWiki/Maps

Different icons based on query result

Open
#242 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement SMW
Dominant language
JavaScript
Stars
78
Forks
65
Avg merge
9h 17m
Merged PRs (30d)
6

Description

Requested by @c-ern at https://github.com/SemanticMediaWiki/SemanticMaps/issues/24

In order to being able to distinguish each query result displayed on a map it would be great if each one was shown with the according icon.
I.e. one would search for fast food restaurants in a town, the location of McD would be displayed with its signature golden M, BK with its logo and so on.
One possibility to implement this would be to add a new attribute like "has custom_marker=mcd.png" to the corresponding page and add this ?has custom_marker to the ask-query.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by tracing map query-result marker rendering and the ask-query/custom_marker data path, then define how each result's icon is represented and verify that distinct results can display distinct markers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.