Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a22c8d1f6fc51709

Jump to content

Module talk:Location map/data/China

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

Created

[edit]

The mapper Template:Location map China was re-created by Ukrainian User:Амба on 15 July 2010 to set coordinates for x/y locations on a political map and terrain map of China, which have curved lines of latitude & longitude. The older China map-definition template, for using squared coordinates, is Template:Location map China (equirectangular). -Wikid77 (talk) 08:55, 16 October 2010 (UTC)Reply

Testing coordinates x/y

[edit]

The following are some test cases to ensure that the x/y for latitude and longitude are still calculated correctly, after any future updates to the template or China maps. The precisions are excessive for small map images, but might apply if maps were vastly enlarged, such as for GPS tracking.

  • Expected: x @35/95 = {{#expr: {{Location map China|x|35|95}} }} 35.070444768306
  • Currently: x @35/95 = {{#expr: {{Location map China|x|35|95}} }} 35.070444768306
  • Expected: y @35/95 = {{#expr: {{Location map China|y|35|95}} }} 55.572316016539
  • Currently: y @35/95 = {{#expr: {{Location map China|y|35|95}} }} 55.572316016539
  • Expected: x @38/100 = {{#expr: {{Location map China|x|38|100}} }} 43.607545214063
  • Currently: x @38/100 = {{#expr: {{Location map China|x|38|100}} }} 43.607545214063
  • Expected: y @38/100 = {{#expr: {{Location map China|y|38|100}} }} 48.588567988405
  • Currently: y @38/100 = {{#expr: {{Location map China|y|38|100}} }} 48.588567988405

Those are some examples, showing high precision. The values of x/y are used by {{Location_map}}, or {{Location_map_many}}, to place marker-images on the map of China. The end-digits of the numbers might vary, slightly, depending on the particular wikiserver computer hardware used to run the MediaWiki software for formatting this page to send over the Internet. -Wikid77 (talk) 08:55, 16 October 2010 (UTC)Reply