Giter VIP home page Giter VIP logo

wikiminiatlas's Introduction

WikiMiniAtlas

This repo contains the client-facing scripts and data for the WikiMiniAtlas map plugin in Wikipedia. WikiMiniAtlas will display maps of Earth, Moon, Venus, Mars, Mercury, Titan and Io, and on those maps clickable links to Wikipedia articles.

Features include:

  • 3D buildings
  • Map data by OpenStreetMap
  • Outline overlays
  • Size comparison overlays
  • Article summary display

Visit http://meta.wikimedia.org/wiki/WikiMiniAtlas for documentation and licensing details.

wikiminiatlas's People

Contributors

arlolra avatar dschwen avatar dvorapa avatar hartman avatar krinkle avatar nicolas-raoul avatar putnik avatar rillke avatar samwilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wikiminiatlas's Issues

Miss Chinese label

It's very nice to have WikiMiniAtlas on the coordinated articles. There's a problem when I read Chinese Wikipedia article. When I switch the language label on the WikiMiniAtlas, I can't switch back to Chinese label. There's no Chinese option on the list. It will be more convenience to add it rather then to reload the page to bring back to the Chinese label on.

Supaplex

Replace some of internal map code with Leaflet

Just an idea that I have (and would be happy to fork and work on if it seems like a good path): do you think it would be useful/desirable to farm out some of the basic mapping functionality of this plugin with a Leaflet dependency? With their 0.8 update, they have full support for different CRS parameters and other planetary bodies, which brings them in line with one of the major use cases for WikiMiniAtlas. Another alternative would be OpenLayers 3, which is heavier but has more built-in support for 3D views, etc. Depending on a dedicated mapping library would free this project to focus on more specialized functionality/language support/etc.

It just seems like as things evolve, more and more time will be spent reinventing the wheel to keep up. Standardizing the internal architecture would also help others with web GIS experience contribute more constructively.

jQuery.fn.hover() is deprecated

The script still uses hover (here: 1, 2) which causes the warning

JQMIGRATE: jQuery.fn.hover() is deprecated

when it is loaded on Wikipedia.

Polar area not properly supported

Step to create the problem:

  1. Open WikiMiniAtlas
  2. Zoom out to the lowest zoom level, then move south

What should happen:
a. The scale of the map should adjust according to the zoomed out scale
b. The map projection should properly display the area around South Pole

What actually happened:
圖片

old coastline data

It appears to me that the coastline data has been imported a log time ago and has not been updated since.

I just looked around Macuse. In the WikiMiniAtlas you can see much more water than on OpenStreetMap.

Example: In OSM the way 20156703 was part of the coastline only until two years ago when the coastline in that region was restructured. However you can still see its shape in WikiMiniAtlas as water. This leads to strange rendering east of that way on the residential area, where untagged areas are rendered as water.

Set a per language font size

Certain scripts (such as chinese) need bigger default font sizes. Maybe we need to have this userdefined. For now I propose adding a css class that contains the language code in the class name.

Tooltip element is a div inside a span

The tooltip is added as a <div> inside a <span> element, e.g.:

<span style="position: relative; white-space: nowrap;">
	<div style="background-color: white; padding: 0.2em; border: 1px solid black; position: absolute; top: 1em; left: 0em; z-index: 15; display: none;">
		<span style="cursor: pointer;">
			<img src="..." srcset="..." class="wmamapbutton noprint" title="Show location on an interactive map" alt="" style="padding: 0px 3px 0px 0px; cursor: pointer;">
			&nbsp;WikiMiniAtlas
		</span>
	</div>
	<a class="external text" href="//tools.wmflabs.org/geohack/geohack.php?pagename=Flight_19&amp;params=29_N_79_W_">
		...
	</a>
</span>

This is not valid HTML, and I think is causing one of the issues described in T231424.

It looks like it should be possible to make this a span, and as .fadeIn() sets display:block it should work the same.

Display a category of pictures as a map

WMA offers a wonderful way to come to pictures. It's a great alternative to the standart views Mediawiki offers already to users.

I wanted to use it to display the content of a category of pictures in a map. here is a small mockup of what I had in mind (of course, in reality, the pictures on the map should be the one in the category):
wma_picture_category

This usage would have following properties:

  • Easy to integrate, for example {{WikiMiniAtlasCategory|my_category}}
  • Per default open widget (best would be integrated in the web page - on the same layer level)
  • autozoom to choose the right/adapted level of zoom

It seems that for now this is not possible, but dschwen feedback was optimistic. See the the original discussion here: https://meta.wikimedia.org/wiki/Talk:WikiMiniAtlas#Commons_category_picture_map.

Dots drawn from Wikipedia are out of date

New articles or moved/corrected coordinates from en Wikipedia have not updated since mid-December.

Is this an issue with WikiMiniAtlas getting data from a database cache, the cache not getting updated from Wikipedia, or does the data now come via WikiData, and there are delay issues with updated or new coordinates getting to there?

WIWOSM

Is this the place to raise the concern that WIWOSM does not seem to have updated for months?

I have entered new wikipedia and wikipedia:en tags into OSM on some rivers and highways, but they do not seem to be getting to WikiMiniAtlas, whereas ones that have been there for longer render in the miniatlas on the corresponding Wikipedia articles.

The scale is not displayed

Currently the wikiminiatlas does not show the scale. I tried it with current versions of firefox, ie and chrome. Happens in de wp and en wp. Instead of the scale, a white bar is displayed with the label NaN.

wikiminiatlasnan

nearby wikipedia article dot are missing

The layer that shows the locations of other wikipedia articles is not showing up at all in WikiMiniAtlas on English Wikipedia for me. Has it broken, or have I unset a preference somewhere by accident?

Shapes far from equator are squished, almost like plate caree

One thing that annoys me a lot with WMA is that shapes get more squished the further they are from the equator. Examples:

Maybe some stretching can be done to approximately revert the squish on the display side, like stretching the y by a factor of cos(map center lat)? That would not require extra work on the server, and should work well enough until we get really close to the poles or become super zoomed out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.