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?
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?