ProfessionalWiki / ProfessionalWiki/Maps
Looking for some help tracking down an error in my implementation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 78
- Forks
- 65
- Avg merge
- 9h 17m
- Merged PRs (30d)
- 6
Description
Not sure if this is the best place to ask, please say if not!
I've got a mediawiki server setup to host for our game server and I am trying to configure a dynamic map with some pointers and polygons on it that get generated from data pulled via semantic media wiki query.
currently using this to generate the actual map.
{{#ask: [[Coordinates::+]] | ?Coordinates | ?Archetype | ?Faction | ?BackgroundCount | ?Noise | format=leaflet | polygons={{#regex: {{#ask: [[SecurityLevel::+]] [[Is a::District]] | ?AreaCoordinates | ?SecurityLevel | ?Noise | ?BGC | ?DistrictName | format=template | template=SecurityZoneStyle | named args=yes | mainlabel=- | link=none | headers=hide | sep=; }} | /;$/ | }} | allow_simplification=false | width=90% | height=800px | center=Seattle, WA | zoom=9 | cluster=on }}
And this is my template for the polygons.
<includeonly> {{{AreaCoordinates|}}}~{{#replace:{{{DistrictName|District}}}| |_}}~'''Security Rating:''' {{{SecurityLevel|}}}<br>'''Noise Level:''' {{{Noise|}}}<br>'''Background Count:''' {{{BGC|}}}~#36454F~0.55~1~#{{#switch:{{{SecurityLevel|}}}|AAA=55bfa0|AA=85e39d|A=bcdb72|B=ffd952|C=f7cb94|D=fa917a|E=de85c9|Z=9c6cb3|777777}}~0.50~ </includeonly>
The map mostly renders correctly. All my points of interested show up correctly. I also get 3 polygons (matching the 3 sources that feed it) the popups for these 3 seem correct but one of the 3 polygons render odd. rather than being a hexagon of sorts around the seattle area I get some points there, but 1 point in africa ( i think probably 0,0) and one someplace in south america. Not really sure whats happening. any one have any thoughts?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the three polygon data sources produced by the nested #ask query and the SecurityZoneStyle template, focusing on AreaCoordinates. Check which source contains the points outside Seattle and whether its coordinate order or missing values differs. Done means identifying the malformed polygon input and confirming that all three polygons render around their intended locations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100