Extension:SlippyMap/Development
From MediaWiki.org
[edit] Functionality
Note: In bold are things that could go in a general slippy map class, that all map types would have. For other parameters, they may be handled differently depending on map type
If slippymap tag present:
- Map embedded on page
- Check that map mode is valid
- If map is valid, add JavaScript
- Parse map tag and check parameters
- Required params (may differ by map mode?)
- Center point (lat, lon) or bounds
- Must be numeric
- If lat, lon exceeds 180W-180E or 90S-90N, throw error (exception might be for moon or mars mode)
- Support "-80" and 80W
- Center point (lat, lon) or bounds
- Optional params
- Zoom level - should have aliases that provide meaningful, standard scale for users, and translate into what OpenLayers needs (differs by map mode)
- Instead of zoom, allow user to specify resolution or scale
- Size (width, height); if not specified, use $wgThumbSize
- Mode (use OSM as default)
- Layers (have default for each map type) - differs by mode
- Caption
- Zoom level - should have aliases that provide meaningful, standard scale for users, and translate into what OpenLayers needs (differs by map mode)
- Required params (may differ by map mode?)
- By default, show a static map (may differ)
- Add "onclick" functionality that enables the interactive map (may differ)
If coord template present:
- Pop-up map present
[edit] Old TODO list
Here's an old TODO list from Extension:SlippyMap. I erased some items that were already implemented. Please use the bug tracker to track feature requests & bugs instead --Ævar Arnfjörð Bjarmason 22:29, 11 July 2009 (UTC)
- fix js embedding include method
- internal marker image
- Change syntax to be in line with Extension:Google Maps
- Support multiple markers (specified in the content area) Deprecate marker= attribute
- Support for markers with content text
- Allow content text with wikilinks and images
- Support for polylines
- Edit page toolbar button for adding a map.
- Interface for choosing the location of the map to add.
[edit] What I want - A wish list
- A layer with clickable wikipedia-POIs for different languages. Like in WMA.
- A layer to show areas and paths defined like Query-to-map
- A button to increase the size of the map window or open it in a new window.
- What makes the serverside rendering for thumbnails to decrease server load and speed up the page load?
- Please keep in mind that we could use this tiles-technology later also for high-resolution images from commons. See: non-optimize Example
--Kolossos 13:52, 7 July 2009 (UTC)
