Template:Spratly Islands OSM
<graph>
{ // // ATTENTION: This code is maintained at https://www.mediawiki.org/wiki/Template:Graph:Street_map_with_marks // Please do not modify it anywhere else, as it may get copied and override your changes. // Suggestions can be made at https://www.mediawiki.org/wiki/Template_talk:Graph:Street_map_with_marks // // Template translation is in https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab // "version": 2, "width":500, "height": 375, "padding": 0, "signals":[ // These signals allow us to quickly move the map within the image, e.g. to leave space for the legend {"name":"legendWidth", "init": {"expr": "0"} }, {"name":"legendHeight", "init": {"expr": "height"} }, {"name":"imgWidth", "init": {"expr": "width-legendWidth"} }, {"name":"imgHeight", "init": {"expr": "height"} }, {"name":"imgXC", "init": {"expr": "imgWidth/2"} }, {"name":"imgYC", "init": {"expr": "imgHeight/2"} }, {"name":"imgTileSize", "init": {"expr": "256"} }, {"name":"imgLat", "init": {"expr": "9.0"} }, {"name":"imgLon", "init": {"expr": "114.0"} }, {"name":"imgZoom", "init": {"expr": "6"} }, {"name":"picWidth", "init": {"expr": "180"} }, {"name":"picHeight", "init": {"expr": "picWidth/2"} }, {"name":"picXC", "init": {"expr": "imgWidth-(picWidth/2)"} }, {"name":"picYC", "init": {"expr": "imgHeight-(picHeight/2)"} }, {"name":"showMiniMap", "init": {"expr": "0"} } ], "data": [ { "name": "data", // Otherwise use the first unnamed argument for source values "values": [ { "lat": 9.0, "lon": 114.0, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", "width": 50, "height": 8, "offsetX": 213, "offsetY": 177.5, "textAlign": "right", "textDx": 22, "textDy": -2, "textColor": "grey", "textFont": "Tahoma", "textFontSize": 9, "text": "200km" } , { "lat": 0, "lon": 0, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 2, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
}
, { "lat": 10.375, "lon": 114.366667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/c/ce/SpringGreen_pog.svg/5px-SpringGreen_pog.svg.png", "height": 5, "width": 5, "text": "1", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.383333, "lon": 114.4, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/c/ce/SpringGreen_pog.svg/5px-SpringGreen_pog.svg.png", "height": 5, "width": 5, "text": "2", "textAngle": 0, "textAlign": "center", "textBaseline": "bottom", "textDx": 1, "textDy": -4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.55, "lon": 112.883333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "3", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.9, "lon": 115.533333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "4", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.9133, "lon": 114.062, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "5", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.866667, "lon": 112.833333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "6", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.208333, "lon": 114.225, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "7", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.715, "lon": 114.287, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "8", "textAngle": 0, "textAlign": "center", "textBaseline": "top", "textDx": 1, "textDy": 4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.908333, "lon": 114.5, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/0/0c/Red_pog.svg/5px-Red_pog.svg.png", "height": 5, "width": 5, "text": "9", "textAngle": 0, "textAlign": "center", "textBaseline": "bottom", "textDx": 1, "textDy": -4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.816667, "lon": 115.816667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "10", "textAngle": 0, "textAlign": "center", "textBaseline": "bottom", "textDx": 1, "textDy": -4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.716667, "lon": 114.533333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "11", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.72861, "lon": 114.3525, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "12", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.666667, "lon": 114.425, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "13", "textAngle": 0, "textAlign": "center", "textBaseline": "bottom", "textDx": 1, "textDy": -4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.733333, "lon": 115.8, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "14", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 11.45, "lon": 114.35, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "15", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 11.05, "lon": 114.283333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "16", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 11.083333, "lon": 115.016667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "17", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.366667, "lon": 115.2, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "18", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.866667, "lon": 114.916667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "19", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.733333, "lon": 115.866667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/d/d7/Blue_pog.svg/5px-Blue_pog.svg.png", "height": 5, "width": 5, "text": "20", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 11.433333, "lon": 114.333333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "21", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.375, "lon": 114.483333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "22", "textAngle": 0, "textAlign": "center", "textBaseline": "top", "textDx": 1, "textDy": 4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.183333, "lon": 114.366667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "23", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.883333, "lon": 114.333333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "24", "textAngle": 0, "textAlign": "center", "textBaseline": "bottom", "textDx": 1, "textDy": -4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.644722, "lon": 111.92, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "25", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.9, "lon": 112.916667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "26", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.9, "lon": 114.566667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "27", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.933333, "lon": 112.35, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "28", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.95, "lon": 113.666667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "29", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.166667, "lon": 113.3, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "30", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.866667, "lon": 112.233333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "31", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.683333, "lon": 111.666667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "32", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.066667, "lon": 113.85, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "33", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.85, "lon": 114.65, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "34", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.833333, "lon": 112.6, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "35", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.85, "lon": 114.0, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "36", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.716667, "lon": 114.183333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "37", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 10.408333, "lon": 114.583333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "38", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 11.383333, "lon": 114.3, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "39", "textAngle": 0, "textAlign": "center", "textBaseline": "top", "textDx": 1, "textDy": 4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.775, "lon": 114.258333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "40", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 9.783333, "lon": 114.366667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "41", "textAngle": 0, "textAlign": "center", "textBaseline": "top", "textDx": 1, "textDy": 4, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.933333, "lon": 111.716667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "42", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.15, "lon": 110.6, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "43", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.533333, "lon": 109.75, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "44", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.916667, "lon": 109.966667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "45", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.816667, "lon": 110.5, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "46", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.016667, "lon": 110.616667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "47", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.683333, "lon": 111.716667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "48", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.568333, "lon": 111.553611, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/4/45/Purple_8000ff_pog.svg/5px-Purple_8000ff_pog.svg.png", "height": 5, "width": 5, "text": "49", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.372222, "lon": 113.841667, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ab/Green_pog.svg/5px-Green_pog.svg.png", "height": 5, "width": 5, "text": "50", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.633333, "lon": 113.933333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ab/Green_pog.svg/5px-Green_pog.svg.png", "height": 5, "width": 5, "text": "51", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 7.616667, "lon": 113.8, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ab/Green_pog.svg/5px-Green_pog.svg.png", "height": 5, "width": 5, "text": "52", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.1, "lon": 114.133333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ab/Green_pog.svg/5px-Green_pog.svg.png", "height": 5, "width": 5, "text": "53", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.116667, "lon": 114.7, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ab/Green_pog.svg/5px-Green_pog.svg.png", "height": 5, "width": 5, "text": "54", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 8.0, "lon": 113.9, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ab/Green_pog.svg/5px-Green_pog.svg.png", "height": 5, "width": 5, "text": "55", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
} , { "lat": 6.333333, "lon": 113.233333, "img": "wikirawupload:https://handwiki.org/wiki/images/thumb/9/9d/Yellow_pog.svg/5px-Yellow_pog.svg.png", "height": 5, "width": 5, "text": "56", "textAngle": 0, "textAlign": "left", "textBaseline": "middle", "textDx": 5, "textDy": 1, "textFontSize": 10, "textColor": "#000000"
}
], "transform": [ { "type": "geo", "projection": "mercator", "scale": {"expr": "imgTileSize/PI/2*pow(2,imgZoom)"}, "translate": [{"expr": "imgXC"}, {"expr": "imgYC"}], "center": [{"expr": "imgLon"}, {"expr": "imgLat"}], "lon": "lon", "lat": "lat" }, { "type": "formula", "field":"layout_x", "expr": "datum.layout_x + (datum.offsetX || 0)" }, { "type": "formula", "field":"layout_y", "expr": "datum.layout_y + (datum.offsetY || 0)" }, { "type": "formula", "field":"color", "expr": "datum.color || '#c33'" }, { "type": "formula", "field":"textColor", "expr": "datum.textColor || datum.color" }, { "type": "formula", "field":"strokeColor", "expr": "datum.strokeColor || '#ffe7e6'" } ] }, { // Hack: single value data source for drawing/hiding images and other non-series elements "name": "dummyData", "values": [{}] } ], // Legend only works if showLegend and colorScaleField are set "marks": [ { "type": "image", "from": { "data": "dummyData", "transform": [ { "type": "formula", "field":"url", "expr": "'mapsnapshot:///?width='+imgWidth+'&height='+imgHeight+'&zoom='+imgZoom+'&lat='+imgLat+'&lon='+imgLon+'&style=osm'" } ] }, "properties": { "enter": { "url": {"field": "url"}, "xc": {"signal": "imgXC"}, "yc": {"signal": "imgYC"}, "width": {"signal": "imgWidth"}, "height": {"signal": "imgHeight"} } } }, { // Places an image of a given name and size at the [lan,lon] location "type": "image", "from": { "data": "data", "transform": [ { "type": "filter", "test": "datum.img" }, { "type": "formula", "field":"iconWidth", "expr": "datum.width || 0" }, { "type": "formula", "field":"iconHeight", "expr": "datum.height || 0" }, { "type": "formula", "field":"img", "expr": "if(!test(/^[a-z]+:\\/\\//, datum.img), 'wikifile:///'+datum.img, datum.img)" }, // Ensure that either width or height parameter is passed to wikifile:// request { "type": "formula", "field":"img", "expr": "if((datum.iconWidth || datum.iconHeight) && !test(/[?&](width|height)=\\d/, datum.img),if(datum.iconWidth,datum.img+'?width='+datum.iconWidth,datum.img+'?height='+datum.iconHeight), datum.img)" } ]}, "properties": { "enter": { "url": {"field": "img"}, "xc": {"field": "layout_x"}, "yc": {"field": "layout_y"}, "width": {"field": "iconWidth"}, "height": {"field": "iconHeight"} } } }, { // Draw marks of a given color, shape, and size at the [lan,lon] location "type": "symbol", "from": { "data": "data", "transform": [{ "type": "filter", "test": "!datum.img" }] }, "properties": { "enter": { "x": {"field": "layout_x"}, "y": {"field": "layout_y"}, // If colorScaleField is set, use color scaling, otherwise use the preset color value "fill": { "field": "color" }, "size": {"field": "size"}, "shape": {"field": "shape"}, "stroke": {"field": "strokeColor"} } } }, { // Draw text with the given color and size at the [lan,lon] location // See https://github.com/vega/vega/wiki/Marks#text for all parameter description (prepend "text" and capitalize them) "type": "text", "from": { "data": "data", "transform": [ { "type": "filter", "test": "datum.text" }, // Figure out if this is an LTR or RTL page. For LTR, show label to the right of the icon, left-aligned. For RTL, reverse. { "type": "formula", "field":"isLTR", "expr": "'' == '\\u200E'" }, // If these values are not defined ("undefined" is not allowed, so test for truthiness and not 0) { "type": "formula", "field":"textDx", "expr": "if(!datum.textDx && datum.textDx != 0, if(datum.isLTR,8,-8), datum.textDx)" }, { "type": "formula", "field":"textAlign", "expr": "if(!datum.textAlign, if(datum.isLTR,'left','right'), datum.textAlign)" }, { "type": "formula", "field":"textBaseline", "expr": "datum.textBaseline || 'middle'" } ]}, "properties": { "enter": { "text": {"field": "text"}, "x": {"field": "layout_x" }, "y": {"field": "layout_y"}, "dx": {"field": "textDx" }, "dy": {"field": "textDy"}, "fill": {"field": "textColor"}, "align": {"field": "textAlign"}, "baseline": {"field": "textBaseline"}, "radius": {"field": "textRadius"}, "theta": {"field": "textTheta"}, "angle": {"field": "textAngle"}, "font": {"field": "textFont"}, "fontSize": {"field": "textFontSize"}, "fontWeight": {"field": "textFontWeight"}, "fontStyle": {"field": "textFontStyle"} } } }, { // Draw a low-zoom locator map frame "type": "rect", "from": { "data": "dummyData", "transform": [ { "type": "filter", "test": "showMiniMap" } ] }, "properties": { "enter": { "xc": {"signal": "picXC"}, "yc": {"signal": "picYC"}, "width": {"signal": "picWidth", "offset":2}, "height": {"signal": "picHeight"}, "stroke": {"value":"#fff"},"strokeWidth": {"value":6} } } }, { // Draw a low-zoom locator map by using a premade world map image "type": "image", "from": { "data": "dummyData", "transform": [ { "type": "filter", "test": "showMiniMap" }, { "type": "formula", "field":"url", "expr": "1" } ] }, "properties": { "enter": { "url": {"value": "wikirawupload:https://handwiki.org/wiki/images/thumb/a/ac/Earthmap1000x500.jpg/180px-Earthmap1000x500.jpg"}, "xc": {"signal": "picXC"}, "yc": {"signal": "picYC"}, "width": {"signal": "picWidth"}, "height": {"signal": "picHeight"} } } }, { // Draw a zoom-out mark at the [lan,lon] location "type": "symbol", "from": { "data": "dummyData", "transform": [ { "type": "filter", "test": "showMiniMap" }, { "type": "formula", "field":"lat", "expr": "imgLat" }, { "type": "formula", "field":"lon", "expr": "imgLon" }, { "type": "geo", "projection": "equirectangular", "scale": {"expr": "180/2/PI"}, "translate": [{"expr": "picXC"}, {"expr": "picYC"}], "center": [{"expr": "0"}, {"expr": "0"}], "lon": "lon", "lat": "lat" } ] }, "properties": { "enter": { "x": {"field": "layout_x"}, "y": {"field": "layout_y"}, "fill": {"value": "#c33"}, "stroke": {"value": "#ffe7e6"}, "size": {"value": 40} } } } ] } </graph> <maplink zoom="7" latitude="9.0" longitude="114.0" text="[Interactive fullscreen map]">
[
"features": [
"properties": { "title": "Taiping", "description": " 10.375,114.366667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#00FF00" }, "geometry": {"type": "Point", "coordinates": [114.366667,10.375] } } , { "type": "Feature", "properties": { "title": "Zhongzhou", "description": " 10.383333,114.4", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#00FF00" }, "geometry": {"type": "Point", "coordinates": [114.4,10.383333] } } , { "type": "Feature", "properties": { "title": "Yongshu", "description": " 9.55,112.883333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [112.883333,9.55] } } , { "type": "Feature", "properties": { "title": "Meiji", "description": " 9.9,115.533333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [115.533333,9.9] } } , { "type": "Feature", "properties": { "title": "Zhubi", "description": " 10.9133,114.062", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [114.062,10.9133] } } , { "type": "Feature", "properties": { "title": "Huayang", "description": " 8.866667,112.833333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [112.833333,8.866667] } } , { "type": "Feature", "properties": { "title": "Nanxun", "description": " 10.208333,114.225", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [114.225,10.208333] } } , { "type": "Feature", "properties": { "title": "Chiguo", "description": " 9.715,114.287", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [114.287,9.715] } } , { "type": "Feature", "properties": { "title": "Dongmen", "description": " 9.908333,114.5", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FF0000" }, "geometry": {"type": "Point", "coordinates": [114.5,9.908333] } } , { "type": "Feature", "properties": { "title": "Flat Island", "description": " 10.816667,115.816667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [115.816667,10.816667] } } , { "type": "Feature", "properties": { "title": "Lankiam Cay", "description": " 10.716667,114.533333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [114.533333,10.716667] } } , { "type": "Feature", "properties": { "title": "Loaita Cay", "description": " 10.72861,114.3525", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [114.3525,10.72861] } } , { "type": "Feature", "properties": { "title": "Loaita Island", "description": " 10.666667,114.425", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [114.425,10.666667] } } , { "type": "Feature", "properties": { "title": "Nanshan Island", "description": " 10.733333,115.8", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [115.8,10.733333] } } , { "type": "Feature", "properties": { "title": "Northeast Cay", "description": " 11.45,114.35", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [114.35,11.45] } } , { "type": "Feature", "properties": { "title": "Thitu Island", "description": " 11.05,114.283333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [114.283333,11.05] } } , { "type": "Feature", "properties": { "title": "West York Island", "description": " 11.083333,115.016667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [115.016667,11.083333] } } , { "type": "Feature", "properties": { "title": "Commodore Reef", "description": " 8.366667,115.2", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [115.2,8.366667] } } , { "type": "Feature", "properties": { "title": "Irving Reef", "description": " 10.866667,114.916667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [114.916667,10.866667] } } , { "type": "Feature", "properties": { "title": "Second Thomas Reef", "description": " 9.733333,115.866667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#0000FF" }, "geometry": {"type": "Point", "coordinates": [115.866667,9.733333] } } , { "type": "Feature", "properties": { "title": "Southwest Cay", "description": " 11.433333,114.333333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.333333,11.433333] } } , { "type": "Feature", "properties": { "title": "Sand Cay", "description": " 10.375,114.483333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.483333,10.375] } } , { "type": "Feature", "properties": { "title": "Namyit Island", "description": " 10.183333,114.366667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.366667,10.183333] } } , { "type": "Feature", "properties": { "title": "Sin Cowe Island", "description": " 9.883333,114.333333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.333333,9.883333] } } , { "type": "Feature", "properties": { "title": "Spratly Island", "description": " 8.644722,111.92", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [111.92,8.644722] } } , { "type": "Feature", "properties": { "title": "Amboyna Cay", "description": " 7.9,112.916667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [112.916667,7.9] } } , { "type": "Feature", "properties": { "title": "Grierson Reef", "description": " 9.9,114.566667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.566667,9.9] } } , { "type": "Feature", "properties": { "title": "Central London Reef", "description": " 8.933333,112.35", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [112.35,8.933333] } } , { "type": "Feature", "properties": { "title": "Pearson Reef", "description": " 8.95,113.666667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [113.666667,8.95] } } , { "type": "Feature", "properties": { "title": "Barque Canada Reef", "description": " 8.166667,113.3", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [113.3,8.166667] } } , { "type": "Feature", "properties": { "title": "West London Reef", "description": " 8.866667,112.233333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [112.233333,8.866667] } } , { "type": "Feature", "properties": { "title": "Ladd Reef", "description": " 8.683333,111.666667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [111.666667,8.683333] } } , { "type": "Feature", "properties": { "title": "Discovery Great Reef", "description": " 10.066667,113.85", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [113.85,10.066667] } } , { "type": "Feature", "properties": { "title": "Pigeon Reef", "description": " 8.85,114.65", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.65,8.85] } } , { "type": "Feature", "properties": { "title": "East London Reef", "description": " 8.833333,112.6", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [112.6,8.833333] } } , { "type": "Feature", "properties": { "title": "Alison Reef", "description": " 8.85,114.0", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.0,8.85] } } , { "type": "Feature", "properties": { "title": "Cornwallis South Reef", "description": " 8.716667,114.183333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.183333,8.716667] } } , { "type": "Feature", "properties": { "title": "Petley Reef", "description": " 10.408333,114.583333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.583333,10.408333] } } , { "type": "Feature", "properties": { "title": "South Reef", "description": " 11.383333,114.3", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.3,11.383333] } } , { "type": "Feature", "properties": { "title": "Collins Reef", "description": " 9.775,114.258333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.258333,9.775] } } , { "type": "Feature", "properties": { "title": "Lansdwone Reef", "description": " 9.783333,114.366667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [114.366667,9.783333] } } , { "type": "Feature", "properties": { "title": "Bombay Castle", "description": " 7.933333,111.716667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [111.716667,7.933333] } } , { "type": "Feature", "properties": { "title": "Prince of Wales Bank", "description": " 8.15,110.6", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [110.6,8.15] } } , { "type": "Feature", "properties": { "title": "Vanguard Bank", "description": " 7.533333,109.75", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [109.75,7.533333] } } , { "type": "Feature", "properties": { "title": "Prince Consort Bank", "description": " 7.916667,109.966667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [109.966667,7.916667] } } , { "type": "Feature", "properties": { "title": "Grainger Bank", "description": " 7.816667,110.5", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [110.5,7.816667] } } , { "type": "Feature", "properties": { "title": "Alexandra Bank", "description": " 8.016667,110.616667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [110.616667,8.016667] } } , { "type": "Feature", "properties": { "title": "Orleana Shoal", "description": " 7.683333,111.716667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [111.716667,7.683333] } } , { "type": "Feature", "properties": { "title": "Kingston Shoal", "description": " 7.568333,111.553611", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [111.553611,7.568333] } } , { "type": "Feature", "properties": { "title": "Swallow Reef", "description": " 7.372222,113.841667", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#008000" }, "geometry": {"type": "Point", "coordinates": [113.841667,7.372222] } } , { "type": "Feature", "properties": { "title": "Ardasier Reef", "description": " 7.633333,113.933333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#008000" }, "geometry": {"type": "Point", "coordinates": [113.933333,7.633333] } } , { "type": "Feature", "properties": { "title": "Dallas Reef", "description": " 7.616667,113.8", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#008000" }, "geometry": {"type": "Point", "coordinates": [113.8,7.616667] } } , { "type": "Feature", "properties": { "title": "Erica Reef", "description": " 8.1,114.133333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#008000" }, "geometry": {"type": "Point", "coordinates": [114.133333,8.1] } } , { "type": "Feature", "properties": { "title": "Investigator Shoal", "description": " 8.116667,114.7", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#008000" }, "geometry": {"type": "Point", "coordinates": [114.7,8.116667] } } , { "type": "Feature", "properties": { "title": "Mariveles Reef", "description": " 8.0,113.9", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#008000" }, "geometry": {"type": "Point", "coordinates": [113.9,8.0] } } , { "type": "Feature", "properties": { "title": "Louisa Reef", "description": " 6.333333,113.233333", "marker-symbol": "-number", "marker-size": "medium", "marker-color": "#FFFF00" }, "geometry": {"type": "Point", "coordinates": [113.233333,6.333333] } }
|
Location of the major islands in Spratly Islands Legend: |