Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikimedia Meta-Wiki
Search

WikiMiniAtlas

From Meta, a Wikimedia project coordination wiki

English(main) |Català |Deutsch |Eesti |Esperanto |Euskara |Finnish |Français |Frysk |עברית |Italiano |日本語 |한국어 |Kölsch |Kurdî |Lietuvių |Nederlands |Polski |Português |Svenska |Türkçe |廣東話 |العربية |Српски |فارسی |پښتو |edit

Feature
VMAP0 layer
Legend
Seaice
seaicea
shelf ice
Grassland
grassa
grassland
Trees
treesa
Trees
Waterbodies
inwatera
lakes and wide streams
Ice
landicea
landice
Cities
builtupa
all settlements
Rivers
watrcrsl
river

intermittent river

Borders
polbndl
country border

regional border

Canals
aquecanl
canal
Railroad
railrdl
railtrack
Roads
roadl
with median

without median

Mapsymbols
Article
Mountain
Event
Village < 10000 inhabitants
Town < 100.000 inhabitants
City < 500.000 inhabitants
City < 1.000.000 inhabitants
City > 1.000.000 inhabitants

WikiMiniAtlas is a JavaScript plugin to display a draggable, zoomable, and clickable world map (as well as Moon, Mars, Venus, Mercury, Io and Titan imagery) in geocoded Wikipedia articles. The map contains links to all other geocoded articles in Wikipedia and can be magnified down to street level. 3D building models are displayed in modern browsers. While it looks similar toGoogle Maps it is our own software and free data.

Go toHimalayas. Check out the-icon in the top right corner. Click it and drag the map around. Use the +/- buttons to zoom in and out, use the downward arrow to open the config page.

Map data courtesy ofOpenStreetMap andVMAP0, rendered using theMapnik toolkit, additional data courtesy of theUS National Park Service, Landsat7 data courtesy of NASA.

Data Sources

[edit]
  • Textual labels on the map are extracted from the external links (pointing to the geohack) tables on the WMF cloud database replica servers. Labels are sorted according to importance into a quadtree data structure for fast retrieval.
  • The default base map is generated fromVMAP0 andold data from theOpenStreetMap project and rendered using theMapnik toolkit. Plotted VMAP0 layers are shown on the right.
  • As a big fan of theNPS I also added all US National Parks and Monuments to the VMAP0 base map. (Thanks for the freely available Geodata!)
  • Some shape overlays are extracted from the OSM database and obtained through theWIWOSM project.
  • The reduced bandwidth map (coastline) is based onGSHHS Coastline Data (public domain)
  • Thephysical shaded relief is created by Tom Patterson of the US National Park Service mainly based onLandsat and SRTM30 data. It is in the public domain, downloadablehere. To cut the two hemisphere images up into tiles a custom ImageMagick script was used.
  • The Landsat7, daily aqua, and daily terra satellite modes use data by theNational Air and Space Administration
  • "The Blue Marble" and "Night on Earth" are based on imagery fromhttps://visibleearth.nasa.gov/

Status reports

[edit]

The WikiMiniAtlas status is available athttp://wma.wmcloud.org/status.php . For every language an error report with unparsable coordinates is generated.

Configuration

[edit]

To set custom configuration for you, add the following toyour common.js file:

window.wma_settings={height:400,width:700};

to set the size of the MiniAtlas window.

Configuration reference

[edit]
ParameterDescription
height: hSet the height of the map popup toh pixels.
width: wSet the width of the map popup tow pixels.
zoom: zSet default zoom level of the map toz (0=show whole world, 15=maximum zoom). Settingz to -1 activates automatic choice of a sensible zoom level (default).
enabled: true|falseSet this tofalse to deactivate the WikiMiniAtlas.
onlyTitle: true|falseSet this totrue to limit the WikiMiniAtlas to title coordinates.
flowTextTooltips: true|falseAdds tooltip menus to coordinates in inline text rather than icons.
buttonImage: urlReplace the blue globe with the image aturl.
timeout: timeSet coordinate processing timeout totime in milliseconds (default 5000 = 5 seconds).

Technology

[edit]
  • TheVMAP0 layer is based on data from thevector map 0 of the US armed forces, rendered using theMapnik toolkit.
  • Thecoastline layer is based onGSHHS Coastline Data and rendered using custom software built on the AGG (Anti Grain Geometry) graphics library.
  • Thelandsat layer is fetched from JPLs mapserver and then rescaled and cut into tiles suitable for the WMA.
  • Theexperimental Moon layer is fetched and cached fromhttp://onmoon.jpl.nasa.gov.
  • Thetext labels on the map are based on data extracted from a copy of the Wikipedia database on the Toolserver. The data is fetched by XMLHTTP-requests from a specially prepared quadtree database for fast retrieval. Labels are fetched in JSON format and laid out client-side.
  • All coordinates in an article are scraped by the WMA and transferred to the WMA iframe using postMessage. Those coordinates are displayed using blue dots. Hovering the dots with the mouse will highlight the corresponding coordinates in the article (again using postMessage to message across the different domains toolserver.org <-> *.wikipedia.org). Clicking the dots scrolls the articles to the respective coordinate.
  • Some articles haveKML files attached using theAttached KML template. This data is fetched using an XMLHTTP-request, the XML-DOM is parsed and polygons and lines are extracted, coded into JSON format and passed to the WMA iframe using postMessage. The WMA then creates a canvas element overlayed over the map, where the data from the KML attachemnt is plotted (seethis article for a good example)
  • Some articles have corresponding tags in the OpenStreetMap database, the OSM geometries are fetched with the help of theWIWOSM project and displayed using a canvas overlay on the WikiMiniAtlas.
  • Textual labels arecached in the sessionStorage of the browser, if supported. This makes labels appear instantly in areas of the map that have already been viewed (try zooming out and in again).
  • The 3D overview globe in the bottom right corner is rendered using WebGL, taking the texture from a canvas (to allow dynamically adding the WIWOSM/KML overlays)

Frequently Asked Questions

[edit]
Why is the red dot not exactly at the position of the article marker?
The coordinates of the article markers are not necessarily the same as the coordinates coded in the actual article you are viewing. This may have different reasons:
  • The coordinates have been changed since the last extraction run
  • The coordinates in the database were extracted from an article version in a different language. (Articles linked by interwikilinks are assumed to have the same coordinates, however, the geocoding accuracy can vary considerably across projects.)
  • Numerical errors in the JavaScript interpreter restrict the matching accuracy (they shouldn't in a perfect world...).
I am fromxx.wikipedia.org and would like to enable the WikiMiniAtlas on our project!
Great, this is easy and should work out of the box, just add code to includeMediaWiki:Wikiminiatlas.js in your localMediaWiki:Common.js file. Please do not copy the whole JavaScript code to your project as you will not get automatic updates, and the interaction protocol between the client JavaScript code and the server may change any time.
Where can I see it in action?
The WikiMiniAtlas is enabled by default on the English, Catalan, Esperanto, French, Greek, Icelandic, Italian, Lithuanian, Norwegian (bokmål), Portuguese, Russian, Danish, Polish, Spanish, Old Church Slavonic, Hebrew, Swedish, and Vietnamese Wikipedias and Wikimedia Commons. It is a gadget on the German and Finnish Wikipedia.
Where I can contribute translations?
To help translating the WikiMiniAtlas user interface to new languages add new translation toCommons:WikiMiniAtlas/Translations.
Where is the source code?
On github:

Screenshots

[edit]
  • Article synopsis with thumbnail (added January'21)
    Article synopsis with thumbnail (added January'21)
  • Hold Ctrl or Cmd and hover a label to see an article preview
    Hold Ctrl or Cmd and hover a label to see an article preview
  • The preview feature uses the official API now
    The preview feature uses the official API now
  • 3D building models rendered using hardware accelerated WebGL
  • Client-side tile rendering makes arbitrarily large zoom levels possible (added July'12)
    Client-side tile rendering makes arbitrarily large zoom levels possible (added July'12)
  • Mars coordinates on the WikiMiniAtlas
    Mars coordinates on the WikiMiniAtlas
  • Moon coordinates on the WikiMiniAtlas
    Moon coordinates on the WikiMiniAtlas
  • Article summaries (hold CTRL and hover a link)
    Article summaries (hold CTRL and hover a link)
  • 3D overview globe in the bottom right corner (showing a WIWOSM overlay on both map and globe!)
    3D overview globe in the bottom right corner (showing a WIWOSM overlay on both map and globe!)
  • Dragging around Texas for size comparison
    Dragging around Texas for size comparison
  • OpenStreetMap data, KML overlay (blue line), and additional article coordinates (blue dots). February 2012
    OpenStreetMap data, KML overlay (blue line), and additional article coordinates (blue dots). February 2012
  • The new detailed basemap
    The new detailed basemap
  • WikiMiniAtlas in action
    WikiMiniAtlas in action
  • Pyramids of Giza in satellite mode
    Pyramids of Giza in satellite mode
  • Current weather on the Azores
    Current weather on theAzores
  • January 2021
    January 2021

License Stuff

[edit]

WikiMiniAtlas is (c) 2006-2013 by Daniel Schwen and licensed under theGPL License version 3 or above. The unminified source code is available on GitHub at

https://github.com/dschwen/wikiminiatlas

The author is grateful toWikimedia Deutschland and theToolserver administrators for funding and running the Toolserver, where WikiMiniAtlas used to be hosted (it is now hosted athttps://wma.wmcloud.org/ ).

WikiMiniAtlas uses several 3rd party libraries listed below.

jQuery

[edit]

jQuery is licensed under theMIT License.

json2.js

[edit]

json2.js provides JSON serialization and parsing for browsers that do not support it natively. Library by Douglas Crockford, licensed as Public Domain.

glMatrix

[edit]

glMatrix is a matrix creation and manipulation library for WebGL. WikiMiniAtlas uses a stripped and minified version of glMatrix.Copyright (c) 2013 Brandon Jones, Colin MacKenzie IV

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Poly2Tri

[edit]

Poly2Tri is a polygon triangulation library. WikiMiniAtlas uses a slightly stripped and minified version of Poly2Tri.

Copyright (c) 2009-2010, Poly2Tri Contributorshttp://code.google.com/p/poly2tri/

All rights reserved.Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Poly2Tri nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

Disclaimer

[edit]

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER ORCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, ORPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDINGNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Retrieved from "https://meta.wikimedia.org/w/index.php?title=WikiMiniAtlas&oldid=28706118"
Category:

[8]ページ先頭

©2009-2026 Movatter.jp