Kontent qismiga oʻtish

Andoza:OSM Location map/ArcText/doc

ZiyoSfera, erkin ensiklopediya

Arkdagi matn

Ushbu kichik shablon {{OSM Location map}} tomonidan xarita bo'ylab yoy bo'ylab matnni joylashtirish imkonini berish uchun ishlatiladi. Boshqa yorliqlar, markerlar va xarita xususiyatlari bilan birgalikda, bu kattaroq geografik obʼektlar uchun matnga kengroq hudud hissini yetkazish yoki daryo, togʻ tizmasi, qirgʻoq chizigʻi va boshqalarning egri chizigʻini kuzatish imkonini beradi. Bu andozadagi boshqa teglardan butunlay alohida ishlaydi. U hech qanday belgi yoki nuqtaga qoʻshilmaydi va toʻliq ekran markerlarini yaratmaydi. Bu birinchi harfning joylashuvi uchun koordinatalarni va boshlangʻich burchak, yoy radiusi va harflar orasidagi boʻshliq uchun qoʻshimcha parametrlarni talab qiladi. Matn oʻlchami va rangi ham belgilanishi yoki Standart sozlamalardan meros qilib olinishi mumkin.

Blank starter-code for text on an arcs, with starter-examples for different arc-patterns.
| arc-coordA={{coord|xxx|yyyy}}   <!-- coordinates of first letter -->
|  arc-textA=  <!-- Add your text here -->
| arc-angleA=  <!-- in degrees, -180 to 180. 0 will start as horizontal, -90 straight up, 90 straight down  -->
|   arc-gapA=  <!-- 1= a notional 'standard'. 0.2 is very tight, 10 is very wide--> 
|              <!-- negative gap will invert the letters and run the other way around the circle -->
| arc-radiusA= <!-- 1= a notional 'standard' 0.5 is quite a tight circle, 8 is so wide as to be almost flat -->
| arc-text-sizeA = <!-- standard font sizes. If undefined, default is 12 -->
| arc-text-colorA= <!-- sets text color. #000000 color hexes and standardised OSM Location map colors are accepted -->
| ellipse-factorA=1.0 <!-- 1= notionally circular, 0.5 to 1.0 will flattern top and bottom, above 1.0 flattens the sides -->
Details about using artc-text, with starter-examples for different arc-patterns.
Yerning koordinata tizimining tabiati turli kengliklarda va har xil masshtab darajalarida yoyda qandaydir oʻzgarishlar boʻlishini anglatadi. Dastur buning uchun tuzatishlar kiritadi, lekin hali ham qoldiq oʻzgarishlar boʻladi. Xuddi shunday, radiusdagi oʻzgarishlar boʻshliq hajmiga ham taʼsir qiladi, kattaroq radius boʻshliqni biroz ochadi. Shuning uchun kerakli shakl va effektni olish uchun jiddiy sinov va tuzatishlar boʻlishi kerak. Umumiy qoida sifatida, kerakli boshlangʻich nuqtasining koordinatalarini aniqlang, soʻngra quyidagi tanlovdan boshlangʻich namunasini tanlang, soʻngra parametrlarni xarita talabiga mos ravishda sozlang.
Shallow smile:

<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":200, "height": 100, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 32, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 44, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6146, "lon": -4.33821, "size": "0", "text": "S", "textAngle": -350, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614540013608, "lon": -4.3375696764729, "size": "0", "text": "h", "textAngle": -352.00703217198, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614493333548, "lon": -4.33692619532, "size": "0", "text": "a", "textAngle": -354.01406434396, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614460017093, "lon": -4.3362803460461, "size": "0", "text": "l", "textAngle": -356.02109651593, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614440105121, "lon": -4.3356329210616, "size": "0", "text": "l", "textAngle": -358.02812868791, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614433622061, "lon": -4.3349847147101, "size": "0", "text": "o", "textAngle": -360.03516085989, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614440575869, "lon": -4.3343365222942, "size": "0", "text": "w", "textAngle": -362.04219303187, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614460958012, "lon": -4.333689139099, "size": "0", "text": "", "textAngle": -364.04922520385, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614494743483, "lon": -4.3330433594169, "size": "0", "text": "S", "textAngle": -366.05625737582, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61454189083, "lon": -4.3323999755731, "size": "0", "text": "m", "textAngle": -368.0632895478, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614602342205, "lon": -4.3317597769529, "size": "0", "text": "i", "textAngle": -370.07032171978, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614676023441, "lon": -4.3311235490338, "size": "0", "text": "l", "textAngle": -372.07735389176, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614762844134, "lon": -4.3304920724216, "size": "0", "text": "e", "textAngle": -374.08438606373, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614862697763, "lon": -4.3298661218925, "size": "0", "text": "", "textAngle": -376.09141823571, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614975461814, "lon": -4.3292464654424, "size": "0", "text": "", "textAngle": -378.09845040769, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615100997934, "lon": -4.3286338633452, "size": "0", "text": "", "textAngle": -380.10548257967, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615239152099, "lon": -4.3280290672193, "size": "0", "text": "", "textAngle": -382.11251475165, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615389754805, "lon": -4.3274328191059, "size": "0", "text": "", "textAngle": -384.11954692362, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615552621271, "lon": -4.3268458505584, "size": "0", "text": "", "textAngle": -386.1265790956, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615727551673, "lon": -4.3262688817447, "size": "0", "text": "", "textAngle": -388.13361126758, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615914331385, "lon": -4.325702620564, "size": "0", "text": "", "textAngle": -390.14064343956, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=-170
arc-gapA=-1.2
arc-radiusA=1.6
Deeper smile:

<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":200, "height": 100, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 32, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 44, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6146, "lon": -4.33821, "size": "0", "text": "D", "textAngle": -330, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614406272005, "lon": -4.3375807961538, "size": "0", "text": "e", "textAngle": -335.02041795074, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614245868355, "lon": -4.3369253551563, "size": "0", "text": "e", "textAngle": -340.04083590148, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614120019802, "lon": -4.3362487061067, "size": "0", "text": "p", "textAngle": -345.06125385223, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614029691962, "lon": -4.3355560408304, "size": "0", "text": "e", "textAngle": -350.08167180297, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613975577908, "lon": -4.3348526740428, "size": "0", "text": "r", "textAngle": -355.10208975371, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613958092849, "lon": -4.3341440025704, "size": "0", "text": "", "textAngle": -360.12250770445, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613977370944, "lon": -4.3334354639416, "size": "0", "text": "S", "textAngle": -365.1429256552, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614033264276, "lon": -4.3327324946658, "size": "0", "text": "m", "textAngle": -370.16334360594, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614125343984, "lon": -4.3320404885193, "size": "0", "text": "i", "textAngle": -375.18376155668, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614252903554, "lon": -4.3313647551601, "size": "0", "text": "l", "textAngle": -380.20417950742, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614414964241, "lon": -4.3307104793877, "size": "0", "text": "e", "textAngle": -385.22459745817, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614610282578, "lon": -4.3300826813607, "size": "0", "text": "", "textAngle": -390.24501540891, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614837359917, "lon": -4.3294861780778, "size": "0", "text": "", "textAngle": -395.26543335965, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615094453928, "lon": -4.3289255464182, "size": "0", "text": "", "textAngle": -400.28585131039, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615379591968, "lon": -4.3284050880234, "size": "0", "text": "", "textAngle": -405.30626926114, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615690586216, "lon": -4.3279287962915, "size": "0", "text": "", "textAngle": -410.32668721188, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616025050461, "lon": -4.3275003257366, "size": "0", "text": "", "textAngle": -415.34710516262, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616380418408, "lon": -4.3271229639483, "size": "0", "text": "", "textAngle": -420.36752311336, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616753963374, "lon": -4.3267996063661, "size": "0", "text": "", "textAngle": -425.38794106411, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.617142819205, "lon": -4.3265327340637, "size": "0", "text": "", "textAngle": -430.40835901485, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=-150
arc-gapA=-3
arc-radiusA=0.7
wide eyebrow:

<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":200, "height": 100, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 32, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 44, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6146, "lon": -4.33721, "size": "0", "text": "E", "textAngle": -20, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614744145454, "lon": -4.336436907961, "size": "0", "text": "y", "textAngle": -14.979887925816, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614847708536, "lon": -4.3356454646396, "size": "0", "text": "e", "textAngle": -9.9597758516314, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61490989472, "lon": -4.3348417419205, "size": "0", "text": "b", "textAngle": -4.9396637774471, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614930226918, "lon": -4.3340319058953, "size": "0", "text": "r", "textAngle": 0.080448296737199, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614908549144, "lon": -4.3332221695559, "size": "0", "text": "o", "textAngle": 5.1005603709215, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614845027708, "lon": -4.3324187451297, "size": "0", "text": "w", "textAngle": 10.120672445106, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61474014994, "lon": -4.3316277964195, "size": "0", "text": "", "textAngle": 15.14078451929, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614594720454, "lon": -4.3308553915157, "size": "0", "text": "", "textAngle": 20.160896593474, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614409854972, "lon": -4.330107456242, "size": "0", "text": "", "textAngle": 25.181008667659, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614186971767, "lon": -4.3293897286933, "size": "0", "text": "", "textAngle": 30.201120741843, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613927780778, "lon": -4.3287077152134, "size": "0", "text": "", "textAngle": 35.221232816027, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613634270498, "lon": -4.3280666481509, "size": "0", "text": "", "textAngle": 40.241344890212, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.613308692711, "lon": -4.3274714457169, "size": "0", "text": "", "textAngle": 45.261456964396, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.612953545222, "lon": -4.3269266742532, "size": "0", "text": "", "textAngle": 50.28156903858, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.612571552692, "lon": -4.3264365131995, "size": "0", "text": "", "textAngle": 55.301681112764, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.612165645735, "lon": -4.326004723029, "size": "0", "text": "", "textAngle": 60.321793186949, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.611738938434, "lon": -4.3256346163988, "size": "0", "text": "", "textAngle": 65.341905261133, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.611294704451, "lon": -4.3253290327348, "size": "0", "text": "", "textAngle": 70.362017335317, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.610836351909, "lon": -4.3250903164486, "size": "0", "text": "", "textAngle": 75.382129409502, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.610367397252, "lon": -4.3249202989511, "size": "0", "text": "", "textAngle": 80.402241483686, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=-20
arc-gapA=3
arc-radiusA=0.8
opening bracket (reading up):

<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":200, "height": 150, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 57, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 69, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6132, "lon": -4.33521, "size": "0", "text": "o", "textAngle": -110, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613370386352, "lon": -4.3353077178157, "size": "0", "text": "p", "textAngle": -107.48963926273, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613543141758, "lon": -4.3353927295023, "size": "0", "text": "e", "textAngle": -104.97927852546, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613717934637, "lon": -4.3354648718914, "size": "0", "text": "n", "textAngle": -102.46891778819, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613894429498, "lon": -4.3355240065153, "size": "0", "text": "i", "textAngle": -99.958557050925, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614072287583, "lon": -4.3355700198731, "size": "0", "text": "n", "textAngle": -97.448196313656, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614251167517, "lon": -4.3356028236485, "size": "0", "text": "g", "textAngle": -94.937835576387, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614430725966, "lon": -4.335622354879, "size": "0", "text": "", "textAngle": -92.427474839118, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614610618289, "lon": -4.3356285760771, "size": "0", "text": "b", "textAngle": -89.91711410185, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614790499209, "lon": -4.335621475302, "size": "0", "text": "r", "textAngle": -87.406753364581, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614970023469, "lon": -4.3356010661826, "size": "0", "text": "a", "textAngle": -84.896392627312, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615148846495, "lon": -4.3355673878917, "size": "0", "text": "c", "textAngle": -82.386031890043, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615326625061, "lon": -4.33552050507, "size": "0", "text": "k", "textAngle": -79.875671152774, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615503017946, "lon": -4.3354605077027, "size": "0", "text": "e", "textAngle": -77.365310415506, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615677686586, "lon": -4.3353875109469, "size": "0", "text": "t", "textAngle": -74.854949678237, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61585029573, "lon": -4.3353016549097, "size": "0", "text": "", "textAngle": -72.344588940968, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616020514077, "lon": -4.3352031043804, "size": "0", "text": "(", "textAngle": -69.834228203699, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616188014916, "lon": -4.3350920485133, "size": "0", "text": "u", "textAngle": -67.32386746643, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616352476752, "lon": -4.3349687004651, "size": "0", "text": "p", "textAngle": -64.813506729162, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616513583922, "lon": -4.3348332969858, "size": "0", "text": ")", "textAngle": -62.303145991893, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616671027204, "lon": -4.334686097964, "size": "0", "text": "", "textAngle": -59.792785254624, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=-110
arc-gapA=1.5
arc-radiusA=0.6
opening bracket (reading down):

<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":200, "height": 200, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 82, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 94, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6168, "lon": -4.33521, "size": "0", "text": "o", "textAngle": -240, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616624031995, "lon": -4.3353703021237, "size": "0", "text": "p", "textAngle": -243.34734843001, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616442825815, "lon": -4.3355129666831, "size": "0", "text": "e", "textAngle": -246.69469686002, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616256999769, "lon": -4.3356375068797, "size": "0", "text": "n", "textAngle": -250.04204529004, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616067187932, "lon": -4.3357434977589, "size": "0", "text": "i", "textAngle": -253.38939372005, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615874037976, "lon": -4.3358305776598, "size": "0", "text": "n", "textAngle": -256.73674215006, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615678208967, "lon": -4.3358984494494, "size": "0", "text": "g", "textAngle": -260.08409058007, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615480369109, "lon": -4.3359468815362, "size": "0", "text": "", "textAngle": -263.43143901008, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61528119347, "lon": -4.3359757086609, "size": "0", "text": "b", "textAngle": -266.77878744009, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615081361674, "lon": -4.33598483246, "size": "0", "text": "r", "textAngle": -270.12613587011, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614881555586, "lon": -4.3359742218011, "size": "0", "text": "a", "textAngle": -273.47348430012, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61468245698, "lon": -4.33594391289, "size": "0", "text": "c", "textAngle": -276.82083273013, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.61448474522, "lon": -4.3358940091463, "size": "0", "text": "k", "textAngle": -280.16818116014, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614289094936, "lon": -4.3358246808511, "size": "0", "text": "e", "textAngle": -283.51552959015, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614096173722, "lon": -4.3357361645655, "size": "0", "text": "t", "textAngle": -286.86287802017, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613906639862, "lon": -4.3356287623239, "size": "0", "text": "", "textAngle": -290.21022645018, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613721140083, "lon": -4.335502840603, "size": "0", "text": "(", "textAngle": -293.55757488019, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613540307343, "lon": -4.3353588290714, "size": "0", "text": "d", "textAngle": -296.9049233102, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.613364758679, "lon": -4.3351972191237, "size": "0", "text": "o", "textAngle": -300.25227174021, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.613195093096, "lon": -4.3350185622035, "size": "0", "text": "w", "textAngle": -303.59962017022, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.613031889524, "lon": -4.3348234679219, "size": "0", "text": "n", "textAngle": -306.94696860024, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=-60
arc-gapA=-2
arc-radiusA=0.5
closing bracket (reading up):

<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":200, "height": 200, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 82, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 94, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6122, "lon": -4.33521, "size": "0", "text": "c", "textAngle": -60, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.612410322155, "lon": -4.33501503708, "size": "0", "text": "l", "textAngle": -62.510056037092, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.612625494794, "lon": -4.3348358278108, "size": "0", "text": "o", "textAngle": -65.020112074184, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.612845105022, "lon": -4.3346727160766, "size": "0", "text": "s", "textAngle": -67.530168111277, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613068731429, "lon": -4.3345260148725, "size": "0", "text": "i", "textAngle": -70.040224148369, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.6132959449, "lon": -4.3343960057033, "size": "0", "text": "n", "textAngle": -72.550280185461, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613526309433, "lon": -4.3342829380434, "size": "0", "text": "g", "textAngle": -75.060336222553, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613759382984, "lon": -4.3341870288583, "size": "0", "text": "", "textAngle": -77.570392259645, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613994718306, "lon": -4.3341084621879, "size": "0", "text": "b", "textAngle": -80.080448296738, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614231863817, "lon": -4.3340473887939, "size": "0", "text": "r", "textAngle": -82.59050433383, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614470364456, "lon": -4.3340039258697, "size": "0", "text": "a", "textAngle": -85.100560370922, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614709762567, "lon": -4.3339781568165, "size": "0", "text": "c", "textAngle": -87.610616408014, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614949598767, "lon": -4.3339701310825, "size": "0", "text": "k", "textAngle": -90.120672445106, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615189412836, "lon": -4.3339798640681, "size": "0", "text": "e", "textAngle": -92.630728482199, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.615428744594, "lon": -4.3340073370968, "size": "0", "text": "t", "textAngle": -95.140784519291, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615667134789, "lon": -4.3340524974507, "size": "0", "text": "", "textAngle": -97.650840556383, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615904125973, "lon": -4.3341152584715, "size": "0", "text": "(", "textAngle": -100.16089659348, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616139263384, "lon": -4.3341954997272, "size": "0", "text": "u", "textAngle": -102.67095263057, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616372095817, "lon": -4.3342930672429, "size": "0", "text": "p", "textAngle": -105.18100866766, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616602176491, "lon": -4.3344077737965, "size": "0", "text": ")", "textAngle": -107.69106470475, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.616829063903, "lon": -4.3345393992776, "size": "0", "text": "", "textAngle": -110.20112074184, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=120
arc-gapA=-1.5
arc-radiusA=0.8
closing bracket (reading down):

<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":200, "height": 200, "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": "53.6146"} },
   {"name":"imgLon", "init": {"expr": "-4.3341"} },
   {"name":"imgZoom", "init": {"expr": "15"} },
   {"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": 53.6146, 
    "lon": -4.3341, 
    "img": "wikirawupload:https://ziyosfera.uz/images/thumb/1/10/Mapscaleline.svg/120px-Mapscaleline.svg.png", 
    "width": 50, 
    "height": 8, 
    "offsetX": 63, 
    "offsetY": 82, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "200m" }

,

{ "lat": 53.6146, 
    "lon": -4.3341, 
    "width": 0, 
    "height": 0, 
    "size": 0,
    "offsetX": 63, 
    "offsetY": 94, 
    "textAlign": "right", 
    "textDx": 22, 
    "textDy": -2, 
    "textColor": "grey", 
    "textFont": "Tahoma", 
    "textFontSize": 9, 
    "text":  "220yds" }

, {

"lat": 0, "lon": 0, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


} , {

"lat": 53.6168, "lon": -4.33521, "size": "0", "text": "c", "textAngle": 60, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616623347421, "lon": -4.3350518777689, "size": "0", "text": "l", "textAngle": 64.184434551362, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616440338671, "lon": -4.3349159608914, "size": "0", "text": "o", "textAngle": 68.368869102724, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616251949427, "lon": -4.3348029739848, "size": "0", "text": "s", "textAngle": 72.553303654086, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.616059184056, "lon": -4.334713519419, "size": "0", "text": "i", "textAngle": 76.737738205448, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615863070252, "lon": -4.3346480741057, "size": "0", "text": "n", "textAngle": 80.922172756811, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615664653561, "lon": -4.334606986955, "size": "0", "text": "g", "textAngle": 85.106607308173, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615464991808, "lon": -4.3345904770159, "size": "0", "text": "", "textAngle": 89.291041859535, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615265149454, "lon": -4.3345986323085, "size": "0", "text": "b", "textAngle": 93.475476410897, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.615066191925, "lon": -4.334631409354, "size": "0", "text": "r", "textAngle": 97.659910962259, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614869179928, "lon": -4.3346886334074, "size": "0", "text": "a", "textAngle": 101.84434551362, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614675163798, "lon": -4.3347699993887, "size": "0", "text": "c", "textAngle": 106.02878006498, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.614485177898, "lon": -4.3348750735092, "size": "0", "text": "k", "textAngle": 110.21321461635, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614300235106, "lon": -4.3350032955845, "size": "0", "text": "e", "textAngle": 114.39764916771, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.614121321411, "lon": -4.3351539820209, "size": "0", "text": "t", "textAngle": 118.58208371907, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613949390661, "lon": -4.3353263294598, "size": "0", "text": "", "textAngle": 122.76651827043, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613785359474, "lon": -4.335519419061, "size": "0", "text": "(", "textAngle": 126.95095282179, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, 

{ "lat": 53.613630102355, "lon": -4.3357322214006, "size": "0", "text": "d", "textAngle": 131.13538737316, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.61348444703, "lon": -4.3359636019601, "size": "0", "text": "o", "textAngle": 135.31982192452, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.613349170034, "lon": -4.3362123271742, "size": "0", "text": "w", "textAngle": 139.50425647588, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}, { "lat": 53.613224992574, "lon": -4.3364770710077, "size": "0", "text": "n", "textAngle": 143.68869102724, "textAlign": "center", "textBaseline": "bottom", "textDx": 0, "textDy": -2, "textFontSize": 12, "textColor": "#222211"


}


, {

"lat": 0.1, "lon": 0.1, "img": "wikirawupload:https://ziyosfera.uz/images/thumb/0/0c/Red_pog.svg/20px-Red_pog.svg.png", "height": 10, "width": 10, "text": "", "textAngle": 0, "textAlign": "right", "textBaseline": "middle", "textDx": -7, "textDy": 1, "textFontSize": 12, "textColor": "#222211"


}































     ],
     "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+'&lang=uz'" }
       ]
     },
     "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://ziyosfera.uz/images/thumb/a/ac/Earthmap1000x500.jpg/250px-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>

arc-angleA=60
arc-gapA=2.5
arc-radiusA=0.4