Afghanistan

Map Name: Afghanistan

Javascript Alias: maps/afghanistan

New format for marker data in JSON:

{
    "map": {
        "showshadow": "0",
        "showlabels": "0",
        "showmarkerlabels": "1",
        "fillcolor": "F1f1f1",
        "bordercolor": "CCCCCC",
        "basefont": "Verdana",
        "basefontsize": "10",
        "markerbordercolor": "000000",
        "markerbgcolor": "FF5904",
        "markerradius": "6",
        "usehovercolor": "0",
        "hoveronempty": "0",
        "showmarkertooltip": "1",
        "canvasBorderColor": "375277",
        "canvasBorderAlpha": "0"
    },
    "markers": {
        "shapes": [
            {
                "id": "myCustomShape",
                "type": "circle",
                "fillcolor": "FFFFFF,333333",
                "fillpattern": "radial",
                "showborder": "0",
                "radius": "4"
            },
            {
                "id": "newCustomShape",
                "type": "circle",
                "fillcolor": "FFFFFF,000099",
                "fillpattern": "radial",
                "showborder": "0",
                "radius": "3"
            }
        ],
        "items": [
            {
                "id": "KA",
                "shapeid": "myCustomShape",
                "x": "388.77",
                "y": "207.41",
                "label": "Kabul",
                "labelpos": "left"
            },
            {
                "id": "01",
                "shapeid": "newCustomShape",
                "x": "358.11",
                "y": "72.54",
                "label": "Shir Khan"
            },
            {
                "id": "02",
                "shapeid": "newCustomShape",
                "x": "364.24",
                "y": "92.97",
                "label": "Kondoz",
                "labelpos": "left"
            },
            {
                "id": "03",
                "shapeid": "newCustomShape",
                "x": "280.46",
                "y": "95.02",
                "label": "Mazar-e-Sharif",
                "labelpos": "left"
            },
            {
                "id": "04",
                "shapeid": "newCustomShape",
                "x": "403.07",
                "y": "183.91",
                "label": "Bagram",
                "labelpos": "right"
            },
            {
                "id": "05",
                "shapeid": "newCustomShape",
                "x": "434.74",
                "y": "216.6",
                "label": "Jalalabad",
                "labelpos": "left"
            },
            {
                "id": "06",
                "shapeid": "newCustomShape",
                "x": "321.33",
                "y": "263.6",
                "label": "Ghazni",
                "labelpos": "right"
            },
            {
                "id": "07",
                "shapeid": "newCustomShape",
                "x": "228.35",
                "y": "390.3",
                "label": "Kandahar",
                "labelpos": "top"
            },
            {
                "id": "08",
                "shapeid": "newCustomShape",
                "x": "62.83",
                "y": "379.06",
                "label": "Zaranj",
                "labelpos": "left"
            },
            {
                "id": "11",
                "shapeid": "newCustomShape",
                "x": "87.35",
                "y": "165.52",
                "label": "Towraghondi",
                "labelpos": "left"
            },
            {
                "id": "09",
                "shapeid": "newCustomShape",
                "x": "80.2",
                "y": "242.15",
                "label": "Shindand",
                "labelpos": "left"
            },
            {
                "id": "10",
                "shapeid": "newCustomShape",
                "x": "81.22",
                "y": "199.23",
                "label": "Herat",
                "labelpos": "left"
            }
        ]
    }
}

Old format for marker data in JSON, using separate application and definition blocks:

{
    "map": {},
    "markers": {
        "shapes": [
            {
                "id": "myCustomShape",
                "type": "circle",
                "fillcolor": "FFFFFF,333333",
                "fillpattern": "radial",
                "showborder": "0",
                "radius": "4"
            },
            {
                "id": "newCustomShape",
                "type": "circle",
                "fillcolor": "FFFFFF,000099",
                "fillpattern": "radial",
                "showborder": "0",
                "radius": "3"
            }
        ],
        "definition": [
            {
                "id": "KA",
                "x": "388.77",
                "y": "207.41",
                "label": "Kabul",
                "labelpos": "left"
            },
            {
                "id": "01",
                "x": "358.11",
                "y": "72.54",
                "label": "Shir Khan"
            },
            {
                "id": "02",
                "x": "364.24",
                "y": "92.97",
                "label": "Kondoz",
                "labelpos": "left"
            },
            {
                "id": "03",
                "x": "280.46",
                "y": "95.02",
                "label": "Mazar-e-Sharif",
                "labelpos": "left"
            },
            {
                "id": "04",
                "x": "403.07",
                "y": "183.91",
                "label": "Bagram",
                "labelpos": "right"
            },
            {
                "id": "05",
                "x": "434.74",
                "y": "216.6",
                "label": "Jalalabad",
                "labelpos": "left"
            },
            {
                "id": "06",
                "x": "321.33",
                "y": "263.6",
                "label": "Ghazni",
                "labelpos": "right"
            },
            {
                "id": "07",
                "x": "228.35",
                "y": "390.3",
                "label": "Kandahar",
                "labelpos": "top"
            },
            {
                "id": "08",
                "x": "62.83",
                "y": "379.06",
                "label": "Zaranj",
                "labelpos": "left"
            },
            {
                "id": "11",
                "x": "87.35",
                "y": "165.52",
                "label": "Towraghondi",
                "labelpos": "left"
            },
            {
                "id": "09",
                "x": "80.2",
                "y": "242.15",
                "label": "Shindand",
                "labelpos": "left"
            },
            {
                "id": "10",
                "x": "81.22",
                "y": "199.23",
                "label": "Herat",
                "labelpos": "left"
            }
        ],
        "application": [
            {
                "id": "KA",
                "shapeid": "myCustomShape"
            },
            {
                "id": "01",
                "shapeid": "newCustomShape"
            },
            {
                "id": "02",
                "shapeid": "newCustomShape"
            },
            {
                "id": "03",
                "shapeid": "newCustomShape"
            },
            {
                "id": "04",
                "shapeid": "newCustomShape"
            },
            {
                "id": "05",
                "shapeid": "newCustomShape"
            },
            {
                "id": "06",
                "shapeid": "newCustomShape"
            },
            {
                "id": "07",
                "shapeid": "newCustomShape"
            },
            {
                "id": "08",
                "shapeid": "newCustomShape"
            },
            {
                "id": "11",
                "shapeid": "newCustomShape"
            },
            {
                "id": "09",
                "shapeid": "newCustomShape"
            },
            {
                "id": "10",
                "shapeid": "newCustomShape"
            }
        ]
    }
}

Old format for marker data in XML, using separate and blocks:

<map>
    <markers>
       <shapes>
           <shape id='myCustomShape' type='circle' fillColor='FFFFFF,333333' fillPattern='radial' showBorder='0' radius='4'/>
               <shape id='newCustomShape' type='circle' fillColor='FFFFFF,000099' fillPattern='radial' showBorder='0' radius='3'/>
       </shapes>  
        <definition>
            <marker id='KA' x='388.77' y='207.41' label='Kabul' labelPos='left'  />
            <marker id='01' x='358.11' y='72.54' label='Shir Khan'  />
            <marker id='02' x='364.24' y='92.97' label='Kondoz' labelPos='left'  />
            <marker id='03' x='280.46' y='95.02' label='Mazar-e-Sharif' labelPos='left'  />
            <marker id='04' x='403.07' y='183.91' label='Bagram' labelPos='right'  />
            <marker id='05' x='434.74' y='216.6' label='Jalalabad' labelPos='left'  />
            <marker id='06' x='321.33' y='263.6' label='Ghazni' labelPos='right'  />
            <marker id='07' x='228.35' y='390.3' label='Kandahar' labelPos='top'  />
            <marker id='08' x='62.83' y='379.06' label='Zaranj' labelPos='left'  />
            <marker id='11' x='87.35' y='165.52' label='Towraghondi' labelPos='left'  />
            <marker id='09' x='80.2' y='242.15' label='Shindand' labelPos='left'  />
            <marker id='10' x='81.22' y='199.23' label='Herat' labelPos='left'  />

        </definition>
        <application>
            <marker id='KA' shapeId='myCustomShape'  />
            <marker id='01' shapeId='newCustomShape'  />
            <marker id='02' shapeId='newCustomShape'  />
            <marker id='03' shapeId='newCustomShape'  />
            <marker id='04' shapeId='newCustomShape'  />
            <marker id='05' shapeId='newCustomShape'  />
            <marker id='06' shapeId='newCustomShape'  />
            <marker id='07' shapeId='newCustomShape'  />
            <marker id='08' shapeId='newCustomShape'  />
            <marker id='11' shapeId='newCustomShape'  />
            <marker id='09' shapeId='newCustomShape'  />
            <marker id='10' shapeId='newCustomShape'  />

        </application>
    </markers>
</map>