Last modified: 2013-06-05 13:54:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49210, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47210 - Polygons not working
Polygons not working
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Maps (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-14 07:09 UTC by Paul
Modified: 2013-06-05 13:54 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Paul 2013-04-14 07:09:37 UTC
I'm using master cloned new today of mediawiki and maps.

If appears to be an issue with the way the polygons array is being created.

This wiki code doesn't work:

{{#display_map:
|polygon=-16.55296172197251,137.98828125:-26.03704188651583,138.1640625:-26.03704188651583,141.064453125:-28.84467368077178,141.064453125:-28.459033019728043,153.984375:-24.52713482259779,152.9296875:-18.56294744288831,147.041015625:-9.709057068618208,142.3828125:-17.224758206624628,140.625:-16.55196172197251,137.98828125
|zoom=3
|centre=Queensland
|width=300
|height=200
}}

The following relevant sections are from this map, and an exact copy with polygon replaced by lines:

"polygons":["\u000016.55296172197251,137.98828125:-26.03704188651583,138.1640625:-26.03704188651583,141.064453125:-28.84467368077178,141.064453125:-28.459033019728043,153.984375:-24.52713482259779,152.9296875:-18.56294744288831,147.041015625:-9.709057068618208,142.3828125:-17.224758206624628,140.625:-16.55196172197251,137.98828125"]

"lines":[{"text":"","title":"","link":"","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","pos":[{"lat":-16.552961721973,"lon":137.98828125},{"lat":-26.037041886516,"lon":138.1640625},{"lat":-26.037041886516,"lon":141.064453125},{"lat":-28.844673680772,"lon":141.064453125},{"lat":-28.459033019728,"lon":153.984375},{"lat":-24.527134822598,"lon":152.9296875},{"lat":-18.562947442888,"lon":147.041015625},{"lat":-9.7090570686182,"lon":142.3828125},{"lat":-17.224758206625,"lon":140.625},{"lat":-16.551961721973,"lon":137.98828125}]}]

The polygon isn't being displayed.

However the polygon works if I manually edit the resulting html file and have instead:

"polygons":[{"text":"","title":"","link":"","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","pos":[{"lat":-16.552961721973,"lon":137.98828125},{"lat":-26.037041886516,"lon":138.1640625},{"lat":-26.037041886516,"lon":141.064453125},{"lat":-28.844673680772,"lon":141.064453125},{"lat":-28.459033019728,"lon":153.984375},{"lat":-24.527134822598,"lon":152.9296875},{"lat":-18.562947442888,"lon":147.041015625},{"lat":-9.7090570686182,"lon":142.3828125},{"lat":-17.224758206625,"lon":140.625},{"lat":-16.551961721973,"lon":137.98828125}]}]
Comment 1 Jeroen De Dauw 2013-04-14 11:30:53 UTC
What version of the extension?
Comment 2 Andre Klapper 2013-04-25 11:56:36 UTC
Paul: What version of the extension?
Comment 3 Andre Klapper 2013-06-05 13:54:13 UTC
Unfortunately closing this report as no further information has been provided.

Paul: Please feel free to reopen this report if you can provide the information asked for and if this still happens. Thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links