Marker data

Map Name: Srilanka

JavaScript Alias: maps/srilanka


{
    "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"
    },
    "data": [
        {
            "id": "LK.AP"
        },
        {
            "id": "LK.AD"
        },
        {
            "id": "LK.BD"
        },
        {
            "id": "LK.BC"
        },
        {
            "id": "LK.CO"
        },
        {
            "id": "LK.GL"
        },
        {
            "id": "LK.GQ"
        },
        {
            "id": "LK.HB"
        },
        {
            "id": "LK.JA"
        },
        {
            "id": "LK.KT"
        },
        {
            "id": "LK.KY"
        },
        {
            "id": "LK.KE"
        },
        {
            "id": "LK.KL"
        },
        {
            "id": "LK.KG"
        },
        {
            "id": "LK.MB"
        },
        {
            "id": "LK.MT"
        },
        {
            "id": "LK.MH"
        },
        {
            "id": "LK.MJ"
        },
        {
            "id": "LK.MP"
        },
        {
            "id": "LK.NW"
        },
        {
            "id": "LK.PR"
        },
        {
            "id": "LK.PX"
        },
        {
            "id": "LK.RN"
        },
        {
            "id": "LK.TC"
        },
        {
            "id": "LK.VA"
        }
    ],
    "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": "CO",
                "shapeid": "myCustomShape",
                "x": "73.22",
                "y": "799.67",
                "label": "Colombo",
                "labelpos": "left"
            },
            {
                "id": "01",
                "shapeid": "newCustomShape",
                "x": "76.27",
                "y": "810.86",
                "label": "Mt.Lavinia",
                "labelpos": "left"
            },
            {
                "id": "02",
                "shapeid": "newCustomShape",
                "x": "92.54",
                "y": "812.89",
                "label": "Kotte",
                "labelpos": "right"
            },
            {
                "id": "03",
                "shapeid": "newCustomShape",
                "x": "81.35",
                "y": "832.22",
                "label": "Moratuwa",
                "labelpos": "left"
            },
            {
                "id": "04",
                "shapeid": "newCustomShape",
                "x": "193.22",
                "y": "842.38",
                "label": "Ratnapura",
                "labelpos": "right"
            },
            {
                "id": "05",
                "shapeid": "newCustomShape",
                "x": "168.81",
                "y": "1013.23",
                "label": "Galle",
                "labelpos": "left"
            },
            {
                "id": "06",
                "shapeid": "newCustomShape",
                "x": "356.94",
                "y": "993.91",
                "label": "Hambantota",
                "labelpos": "right"
            },
            {
                "id": "07",
                "shapeid": "newCustomShape",
                "x": "371.18",
                "y": "807.81",
                "label": "Badulla"
            },
            {
                "id": "08",
                "shapeid": "newCustomShape",
                "x": "543.05",
                "y": "558.66",
                "label": "Batticaloa",
                "labelpos": "left"
            },
            {
                "id": "09",
                "shapeid": "newCustomShape",
                "x": "427.11",
                "y": "345.1",
                "label": "Trincomalee",
                "labelpos": "right"
            },
            {
                "id": "10",
                "shapeid": "newCustomShape",
                "x": "224.74",
                "y": "426.45",
                "label": "Anuradhapura"
            },
            {
                "id": "11",
                "shapeid": "newCustomShape",
                "x": "89.49",
                "y": "249.5",
                "label": "Mannar",
                "labelpos": "right"
            },
            {
                "id": "12",
                "shapeid": "newCustomShape",
                "x": "34.57",
                "y": "421.37",
                "label": "Kalpitiya",
                "labelpos": "right"
            },
            {
                "id": "13",
                "shapeid": "newCustomShape",
                "x": "62.03",
                "y": "487.47",
                "label": "Puttalam",
                "labelpos": "right"
            },
            {
                "id": "14",
                "shapeid": "newCustomShape",
                "x": "263.38",
                "y": "606.45",
                "label": "Matale",
                "labelpos": "right"
            },
            {
                "id": "15",
                "shapeid": "newCustomShape",
                "x": "262.37",
                "y": "661.37",
                "label": "Kandy",
                "labelpos": "right"
            },
            {
                "id": "16",
                "shapeid": "newCustomShape",
                "x": "113.89",
                "y": "50.18",
                "label": "Jaffna",
                "labelpos": "right"
            }
        ]
    }
}

New JSON format for map marker data.


{
    "map": {
        "animation": "0",
        "showshadow": "0",
        "showlabels": "0",
        "showmarkerlabels": "1",
        "fillcolor": "F1f1f1",
        "bordercolor": "999999",
        "basefont": "Verdana",
        "basefontsize": "10",
        "markerbordercolor": "000000",
        "markerbgcolor": "FF5904",
        "markerradius": "6",
        "legendposition": "bottom",
        "usehovercolor": "1",
        "showmarkertooltip": "1"
    },
    "data": [
        {
            "id": "LK.AP"
        },
        {
            "id": "LK.AD"
        },
        {
            "id": "LK.BD"
        },
        {
            "id": "LK.BC"
        },
        {
            "id": "LK.CO"
        },
        {
            "id": "LK.GL"
        },
        {
            "id": "LK.GQ"
        },
        {
            "id": "LK.HB"
        },
        {
            "id": "LK.JA"
        },
        {
            "id": "LK.KT"
        },
        {
            "id": "LK.KY"
        },
        {
            "id": "LK.KE"
        },
        {
            "id": "LK.KL"
        },
        {
            "id": "LK.KG"
        },
        {
            "id": "LK.MB"
        },
        {
            "id": "LK.MT"
        },
        {
            "id": "LK.MH"
        },
        {
            "id": "LK.MJ"
        },
        {
            "id": "LK.MP"
        },
        {
            "id": "LK.NW"
        },
        {
            "id": "LK.PR"
        },
        {
            "id": "LK.PX"
        },
        {
            "id": "LK.RN"
        },
        {
            "id": "LK.TC"
        },
        {
            "id": "LK.VA"
        }
    ],
    "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": "CO",
                "x": "73.22",
                "y": "799.67",
                "label": "Colombo",
                "labelpos": "left"
            },
            {
                "id": "01",
                "x": "76.27",
                "y": "810.86",
                "label": "Mt.Lavinia",
                "labelpos": "left"
            },
            {
                "id": "02",
                "x": "92.54",
                "y": "812.89",
                "label": "Kotte",
                "labelpos": "right"
            },
            {
                "id": "03",
                "x": "81.35",
                "y": "832.22",
                "label": "Moratuwa",
                "labelpos": "left"
            },
            {
                "id": "04",
                "x": "193.22",
                "y": "842.38",
                "label": "Ratnapura",
                "labelpos": "right"
            },
            {
                "id": "05",
                "x": "168.81",
                "y": "1013.23",
                "label": "Galle",
                "labelpos": "left"
            },
            {
                "id": "06",
                "x": "356.94",
                "y": "993.91",
                "label": "Hambantota",
                "labelpos": "right"
            },
            {
                "id": "07",
                "x": "371.18",
                "y": "807.81",
                "label": "Badulla"
            },
            {
                "id": "08",
                "x": "543.05",
                "y": "558.66",
                "label": "Batticaloa",
                "labelpos": "left"
            },
            {
                "id": "09",
                "x": "427.11",
                "y": "345.1",
                "label": "Trincomalee",
                "labelpos": "right"
            },
            {
                "id": "10",
                "x": "224.74",
                "y": "426.45",
                "label": "Anuradhapura"
            },
            {
                "id": "11",
                "x": "89.49",
                "y": "249.5",
                "label": "Mannar",
                "labelpos": "right"
            },
            {
                "id": "12",
                "x": "34.57",
                "y": "421.37",
                "label": "Kalpitiya",
                "labelpos": "right"
            },
            {
                "id": "13",
                "x": "62.03",
                "y": "487.47",
                "label": "Puttalam",
                "labelpos": "right"
            },
            {
                "id": "14",
                "x": "263.38",
                "y": "606.45",
                "label": "Matale",
                "labelpos": "right"
            },
            {
                "id": "15",
                "x": "262.37",
                "y": "661.37",
                "label": "Kandy",
                "labelpos": "right"
            },
            {
                "id": "16",
                "x": "113.89",
                "y": "50.18",
                "label": "Jaffna",
                "labelpos": "right"
            }
        ],
        "application": [
            {
                "id": "CO",
                "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": "09",
                "shapeid": "newCustomShape"
            },
            {
                "id": "10",
                "shapeid": "newCustomShape"
            },
            {
                "id": "11",
                "shapeid": "newCustomShape"
            },
            {
                "id": "12",
                "shapeid": "newCustomShape"
            },
            {
                "id": "13",
                "shapeid": "newCustomShape"
            },
            {
                "id": "14",
                "shapeid": "newCustomShape"
            },
            {
                "id": "15",
                "shapeid": "newCustomShape"
            },
            {
                "id": "16",
                "shapeid": "newCustomShape"
            }
        ]
    }
}

Old JSON format for map marker data, using separate application and definition blocks.