Template:OSM Location map/sandbox/testcases

<<Template:OSM Location map/testcases Test of dateline functionality

Side by side comparison
{{OSM Location map}}{{OSM Location map/sandbox}}
<mapframe width="400" height="200" zoom="0" longitude="0" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>
About OpenStreetMaps
Maps: terms of use
10 000km
6,000miles
Vancouver
6
Manila
4
3
.
1 Manila
<maplink zoom="1" class="no-icon" frameless="1" latitude="0" longitude="0" text="'"`UNIQ--templatestyles-00000005-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000007-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " -20,179.9",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,-20] }
}























































] }

]</maplink>
<mapframe width="400" height="200" zoom="0" longitude="0" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>User:RobinLeicester/sandbox/swithlandwood
About OpenStreetMaps
Maps: terms of use
User:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwood User:RobinLeicester/sandbox/swithlandwood
<maplink zoom="1" class="no-icon" frameless="1" latitude="0" longitude="0" text="'"`UNIQ--templatestyles-00000008-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000009-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-239.0228,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-180.1,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " -20,179.9",
   "marker-symbol": "-number-F004925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,-20] }
}























































] }

]</maplink>

Pacific centric map -180

Side by side comparison
{{OSM Location map}}{{OSM Location map/sandbox}}
<mapframe width="400" height="200" zoom="1" longitude="-180" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>
About OpenStreetMaps
Maps: terms of use
5000km
3,100miles
-123° Vancouver
d=0
San Fran'
6
3
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="-180" text="'"`UNIQ--templatestyles-0000000E-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-0000000F-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " -33.867778,151.21",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [151.21,-33.867778] }
}

, { "type": "Feature",

  "properties": {
   "title": "San Fran", 
   "description": " 37.7775,-122.416389",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-122.416389,37.7775] }
}























































] }

]</maplink>
<mapframe width="400" height="200" zoom="1" longitude="-180" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>User:RobinLeicester/sandbox/swithlandwood
About OpenStreetMaps
Maps: terms of use
User:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwood User:RobinLeicester/sandbox/swithlandwood
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="-180" text="'"`UNIQ--templatestyles-00000010-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000011-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-239.0228,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-180.1,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " -33.867778,151.21",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-208.79,-33.867778] }
}

, { "type": "Feature",

  "properties": {
   "title": "San Fran", 
   "description": " 37.7775,-122.416389",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-122.416389,37.7775] }
}























































] }

]</maplink>

Pacific centric map 180

Side by side comparison
{{OSM Location map}}{{OSM Location map/sandbox}}
<mapframe width="400" height="200" zoom="1" longitude="180" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>
About OpenStreetMaps
Maps: terms of use
5000km
3,100miles
-123° Vancouver
d=1
San Fran'
6
Sidney
5
4
3
120° Manila d=0
1
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="180" text="'"`UNIQ--templatestyles-00000016-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000017-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " -33.867778,151.21",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [151.21,-33.867778] }
}

, { "type": "Feature",

  "properties": {
   "title": "San Fran", 
   "description": " 37.7775,-122.416389",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-122.416389,37.7775] }
}























































] }

]</maplink>
<mapframe width="400" height="200" zoom="1" longitude="180" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>User:RobinLeicester/sandbox/swithlandwood
About OpenStreetMaps
Maps: terms of use
User:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwood User:RobinLeicester/sandbox/swithlandwood
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="180" text="'"`UNIQ--templatestyles-00000018-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000019-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [236.9,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [180.1,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " -33.867778,151.21",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [151.21,-33.867778] }
}

, { "type": "Feature",

  "properties": {
   "title": "San Fran", 
   "description": " 37.7775,-122.416389",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [237.583611,37.7775] }
}























































] }

]</maplink>

Try with mark coords to confirm new logic not working for marks more complex than labels

Side by side comparison
{{OSM Location map}}{{OSM Location map/sandbox}}
<mapframe width="400" height="200" zoom="1" longitude="-180" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>
About OpenStreetMaps
Maps: terms of use
5000km
3,100miles
Vancouver
3
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="-180" text="'"`UNIQ--templatestyles-00000021-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000022-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [120.9772,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [179.9,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " -33.867778,151.21",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [151.21,-33.867778] }
}

, { "type": "Feature",

  "properties": {
   "title": "Another box", 
   "description": " -10,159.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [159.9,-10] }
}























































] }

]</maplink>
<mapframe width="400" height="200" zoom="1" longitude="-180" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>User:RobinLeicester/sandbox/swithlandwood
About OpenStreetMaps
Maps: terms of use
User:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwood User:RobinLeicester/sandbox/swithlandwood
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="-180" text="'"`UNIQ--templatestyles-00000023-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000024-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 

{ "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49.25,-123.1",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-123.1,49.25] }
}

, { "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 14.5958,120.9772",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-239.0228,14.5958] }
}


, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "A square", 
   "description": " 40,179.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-180.1,40] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " -33.867778,151.21",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-208.79,-33.867778] }
}

, { "type": "Feature",

  "properties": {
   "title": "Another box", 
   "description": " -10,159.9",
   "marker-symbol": "-number-F01804925145958", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-200.1,-10] }
}























































] }

]</maplink>

First draft at instructions

Side by side comparison
{{OSM Location map}}{{OSM Location map/sandbox}}
<mapframe width="400" height="210" zoom="1" longitude="160" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>
About OpenStreetMaps
Maps: terms of use
5000km
3,100miles
none
Eastern Hemisphere         Western Hemisphere
If map centre has a
negative Longitude,
positive-lon marks
(such as this one
at 0,130)
would need to set
dateline=-1.
Longitude
100   120   140   160   180  -160  -140  -120  -100
If map centre has
positive Longitude
(as here), any
negative-lon marks
(such as this one
at 0,-150)
need to set
dateline=1.
.
Map
centre
(0,160)
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="160" text="'"`UNIQ--templatestyles-0000002B-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-0000002C-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 


{ "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 0,160",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [160,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,-150",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-150,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,130",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [130,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,86",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#FAF6ED" },
  "geometry": {"type": "Point", "coordinates": [86,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,-105",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#FAF6ED" },
  "geometry": {"type": "Point", "coordinates": [-105,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 60,-179.9",
   "marker-symbol": "-number-F016030", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [-179.9,60] }
}






















































] }

]</maplink>
Coping with marks both sides of the dateline (180th meridian):

The line of longitude that is both plus and minus 180° can be seen as a feint blue line through the Pacific on this map. It divides the Eastern and Western hemispheres. The 'map centre' longitude selects which hemisphere is the main one for any mark coordinates. Any marks in that hemisphere need no further clarification.

However, to show a mark in the 'other' hemisphere, use the 'dateline=' parameter, otherwise it will end up in the 'wrong' direction relative to your map centre. Set it to -1 for positive (western hemisphere) longitude marks and to 1 for negative (eastern hemisphere) longitude marks, if the map centre is in the 'other' hemisphere.

nb. There is no such problem on the Prime meridian. Marks either side of 0° longitude work as expected without any need for dateline to be set.
<mapframe width="400" height="210" zoom="1" longitude="160" latitude="0" mapstyle="osm-intl" frameless="true">[ ]</mapframe>User:RobinLeicester/sandbox/swithlandwood
About OpenStreetMaps
Maps: terms of use
User:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwoodUser:RobinLeicester/sandbox/swithlandwood

User:RobinLeicester/sandbox/swithlandwood

User:RobinLeicester/sandbox/swithlandwood
<maplink zoom="2" class="no-icon" frameless="1" latitude="0" longitude="160" text="'"`UNIQ--templatestyles-0000002D-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-0000002E-QINU`"'">  </span>">

[


{"type": "FeatureCollection",

 "features": [ 


{ "type": "Feature",

  "properties": {
   "title": ".", 
   "description": " 0,160",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [160,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,-150",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [210,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 49,-179.9",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [180.1,49] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,130",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [130,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,86",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#FAF6ED" },
  "geometry": {"type": "Point", "coordinates": [86,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 0,-105",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#FAF6ED" },
  "geometry": {"type": "Point", "coordinates": [255,0] }
}

, { "type": "Feature",

  "properties": {
   "title": "", 
   "description": " 60,-179.9",
   "marker-symbol": "-number-F01608930", "marker-size": "medium", "marker-color": "#AA1205" },
  "geometry": {"type": "Point", "coordinates": [180.1,60] }
}






















































] }

]</maplink>
Coping with marks both sides of the dateline (180th meridian):

The line of longitude that is both plus and minus 180° can be seen as a feint blue line through the Pacific on this map. It divides the Eastern and Western hemispheres. The 'map centre' longitude selects which hemisphere is the main one for any mark coordinates. Any marks in that hemisphere need no further clarification.

However, to show a mark in the 'other' hemisphere, use the 'dateline=' parameter, otherwise it will end up in the 'wrong' direction relative to your map centre. Set it to -1 for positive (western hemisphere) longitude marks and to 1 for negative (eastern hemisphere) longitude marks, if the map centre is in the 'other' hemisphere.

nb. There is no such problem on the Prime meridian. Marks either side of 0° longitude work as expected without any need for dateline to be set.