Marker data

Map Name: Wales

JavaScript Alias: maps/wales


{
    "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": "CA",
                "shapeid": "myCustomShape",
                "x": "325.87",
                "y": "465.78",
                "label": "Cardiff",
                "labelpos": "left"
            },
            {
                "id": "01",
                "shapeid": "newCustomShape",
                "x": "131.99",
                "y": "20.28",
                "label": "Holyhead",
                "labelpos": "right"
            },
            {
                "id": "02",
                "shapeid": "newCustomShape",
                "x": "241.99",
                "y": "25.78",
                "label": "Llandudno",
                "labelpos": "bottom"
            },
            {
                "id": "03",
                "shapeid": "newCustomShape",
                "x": "284.62",
                "y": "34.03",
                "label": "Rhyl",
                "labelpos": "right"
            },
            {
                "id": "04",
                "shapeid": "newCustomShape",
                "x": "207.62",
                "y": "47.78",
                "label": "Bangor",
                "labelpos": "right"
            },
            {
                "id": "05",
                "shapeid": "newCustomShape",
                "x": "358.87",
                "y": "86.28",
                "label": "Wrexham",
                "labelpos": "left"
            },
            {
                "id": "06",
                "shapeid": "newCustomShape",
                "x": "196.62",
                "y": "254.03",
                "label": "Aberystwyth",
                "labelpos": "right"
            },
            {
                "id": "07",
                "shapeid": "newCustomShape",
                "x": "112.74",
                "y": "317.28",
                "label": "Cardigan",
                "labelpos": "left"
            },
            {
                "id": "08",
                "shapeid": "newCustomShape",
                "x": "67.37",
                "y": "342.03",
                "label": "Fishguard",
                "labelpos": "right"
            },
            {
                "id": "09",
                "shapeid": "newCustomShape",
                "x": "156.74",
                "y": "375.03",
                "label": "Carmarthen",
                "labelpos": "bottom"
            },
            {
                "id": "10",
                "shapeid": "newCustomShape",
                "x": "208.99",
                "y": "441.03",
                "label": "Swansea"
            },
            {
                "id": "11",
                "shapeid": "newCustomShape",
                "x": "369.87",
                "y": "456.15",
                "label": "Newport"
            }
        ]
    }
}

New JSON format for map marker data.


{
    "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": "CA",
                "x": "325.87",
                "y": "465.78",
                "label": "Cardiff",
                "labelpos": "left"
            },
            {
                "id": "01",
                "x": "131.99",
                "y": "20.28",
                "label": "Holyhead",
                "labelpos": "right"
            },
            {
                "id": "02",
                "x": "241.99",
                "y": "25.78",
                "label": "Llandudno",
                "labelpos": "bottom"
            },
            {
                "id": "03",
                "x": "284.62",
                "y": "34.03",
                "label": "Rhyl",
                "labelpos": "right"
            },
            {
                "id": "04",
                "x": "207.62",
                "y": "47.78",
                "label": "Bangor",
                "labelpos": "right"
            },
            {
                "id": "05",
                "x": "358.87",
                "y": "86.28",
                "label": "Wrexham",
                "labelpos": "left"
            },
            {
                "id": "06",
                "x": "196.62",
                "y": "254.03",
                "label": "Aberystwyth",
                "labelpos": "right"
            },
            {
                "id": "07",
                "x": "112.74",
                "y": "317.28",
                "label": "Cardigan",
                "labelpos": "left"
            },
            {
                "id": "08",
                "x": "67.37",
                "y": "342.03",
                "label": "Fishguard",
                "labelpos": "right"
            },
            {
                "id": "09",
                "x": "156.74",
                "y": "375.03",
                "label": "Carmarthen",
                "labelpos": "bottom"
            },
            {
                "id": "10",
                "x": "208.99",
                "y": "441.03",
                "label": "Swansea"
            },
            {
                "id": "11",
                "x": "369.87",
                "y": "456.15",
                "label": "Newport"
            }
        ],
        "application": [
            {
                "id": "CA",
                "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"
            }
        ]
    }
}

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