Last modified: 2011-04-14 15:13:31 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 T21861, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19861 - Simplify the URL parameters cgi-bin/export takes
Simplify the URL parameters cgi-bin/export takes
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SlippyMaps (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 19860
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-21 14:30 UTC by Ævar Arnfjörð Bjarmason
Modified: 2011-04-14 15:13 UTC (History)
0 users

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


Attachments

Description Ævar Arnfjörð Bjarmason 2009-07-21 14:30:48 UTC
It would make the SlippyMap Extension code a lot simpler if the cgi-bin/export script could take that were something like the Google Maps static map API:

  ?center=40.714728,-73.998672&zoom=14&size=512x512

Instead of the current bbox/scale stuff that needs a lot of complex PHP to calculate.

Mapnik probably has functions to make it easy to calculate bbox/scale based on lat/lon/zoom/width/height.
Comment 1 Ævar Arnfjörð Bjarmason 2009-07-21 21:38:06 UTC
This should be easy to do with a mapnik contrib library:

21:32:59 <@springmeyer> if you just want to support mercator/osm projection then thats pretty easy
21:33:59 <@springmeyer> just do:
21:34:07 <@springmeyer> >>> import mapnik
21:34:18 <@springmeyer> >>> import metaclass_injectors
21:34:25 <@springmeyer> (which are here: http://mapnik-utils.googlecode.com/svn/trunk/nik2img/mapnik_utils/metaclass_injectors.py)
21:34:48 <@springmeyer> and then you'll auto-magically have some functions off the mapnik.Map object to play with
21:36:29 < avar> ah, like set_center_and_zoom
21:36:36 <@springmeyer> yep yep

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


Navigation
Links