Marker data

Map Name: NewBrunswick

JavaScript Alias: maps/newbrunswick


{
    "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": "CA.NB.AC"
        },
        {
            "id": "CA.NB.AR"
        },
        {
            "id": "CA.NB.FC"
        },
        {
            "id": "CA.NB.MR"
        },
        {
            "id": "CA.NB.RV"
        }
    ],
    "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": "FE",
                "shapeid": "myCustomShape",
                "x": "226.95",
                "y": "262.17",
                "label": "Fredericton"
            },
            {
                "id": "01",
                "shapeid": "newCustomShape",
                "x": "316.95",
                "y": "136.95",
                "label": "Chatham",
                "labelpos": "right"
            },
            {
                "id": "02",
                "shapeid": "newCustomShape",
                "x": "299.34",
                "y": "64.56",
                "label": "Bathurst",
                "labelpos": "right"
            },
            {
                "id": "04",
                "shapeid": "newCustomShape",
                "x": "234.78",
                "y": "9.78",
                "label": "Dalhousie",
                "labelpos": "left"
            },
            {
                "id": "03",
                "shapeid": "newCustomShape",
                "x": "230.86",
                "y": "27.39",
                "label": "Campbellton",
                "labelpos": "left"
            },
            {
                "id": "05",
                "shapeid": "newCustomShape",
                "x": "68.47",
                "y": "76.3",
                "label": "Edmundston",
                "labelpos": "right"
            },
            {
                "id": "06",
                "shapeid": "newCustomShape",
                "x": "111.52",
                "y": "107.6",
                "label": "St.Leonard",
                "labelpos": "right"
            },
            {
                "id": "07",
                "shapeid": "newCustomShape",
                "x": "117.39",
                "y": "129.13",
                "label": "Grand Falls",
                "labelpos": "right"
            },
            {
                "id": "08",
                "shapeid": "newCustomShape",
                "x": "109.56",
                "y": "205.43",
                "label": "Perth-Andover"
            },
            {
                "id": "09",
                "shapeid": "newCustomShape",
                "x": "144.78",
                "y": "248.47",
                "label": "Woodstock",
                "labelpos": "left"
            },
            {
                "id": "10",
                "shapeid": "newCustomShape",
                "x": "242.6",
                "y": "285.65",
                "label": "Oromocto",
                "labelpos": "left"
            },
            {
                "id": "11",
                "shapeid": "newCustomShape",
                "x": "168.26",
                "y": "360",
                "label": "St.Stephen",
                "labelpos": "left"
            },
            {
                "id": "12",
                "shapeid": "newCustomShape",
                "x": "242.6",
                "y": "358.04",
                "label": "Grand Bay",
                "labelpos": "bottom"
            },
            {
                "id": "13",
                "shapeid": "newCustomShape",
                "x": "270",
                "y": "363.91",
                "label": "St.John",
                "labelpos": "right"
            },
            {
                "id": "14",
                "shapeid": "newCustomShape",
                "x": "379.56",
                "y": "273.91",
                "label": "Moncton"
            },
            {
                "id": "15",
                "shapeid": "newCustomShape",
                "x": "360",
                "y": "289.56",
                "label": "Riverview",
                "labelpos": "left"
            }
        ]
    }
}

New JSON format for map marker data.


{
    "map": {
        "animation": "0",
        "showshadow": "0",
        "showmarkerlabels": "1",
        "fillcolor": "F1f1f1",
        "bordercolor": "999999",
        "basefont": "Verdana",
        "basefontsize": "10",
        "markerbordercolor": "000000",
        "markerbgcolor": "FF5904",
        "markerradius": "6",
        "legendposition": "bottom",
        "usehovercolor": "1",
        "showmarkertooltip": "1",
        "showlabels": "0"
    },
    "data": [
        {
            "id": "CA.NB.AC"
        },
        {
            "id": "CA.NB.AR"
        },
        {
            "id": "CA.NB.FC"
        },
        {
            "id": "CA.NB.MR"
        },
        {
            "id": "CA.NB.RV"
        }
    ],
    "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": "FE",
                "x": "226.95",
                "y": "262.17",
                "label": "Fredericton"
            },
            {
                "id": "01",
                "x": "316.95",
                "y": "136.95",
                "label": "Chatham",
                "labelpos": "right"
            },
            {
                "id": "02",
                "x": "299.34",
                "y": "64.56",
                "label": "Bathurst",
                "labelpos": "right"
            },
            {
                "id": "04",
                "x": "234.78",
                "y": "9.78",
                "label": "Dalhousie",
                "labelpos": "left"
            },
            {
                "id": "03",
                "x": "230.86",
                "y": "27.39",
                "label": "Campbellton",
                "labelpos": "left"
            },
            {
                "id": "05",
                "x": "68.47",
                "y": "76.3",
                "label": "Edmundston",
                "labelpos": "right"
            },
            {
                "id": "06",
                "x": "111.52",
                "y": "107.6",
                "label": "St.Leonard",
                "labelpos": "right"
            },
            {
                "id": "07",
                "x": "117.39",
                "y": "129.13",
                "label": "Grand Falls",
                "labelpos": "right"
            },
            {
                "id": "08",
                "x": "109.56",
                "y": "205.43",
                "label": "Perth-Andover"
            },
            {
                "id": "09",
                "x": "144.78",
                "y": "248.47",
                "label": "Woodstock",
                "labelpos": "left"
            },
            {
                "id": "10",
                "x": "242.6",
                "y": "285.65",
                "label": "Oromocto",
                "labelpos": "left"
            },
            {
                "id": "11",
                "x": "168.26",
                "y": "360",
                "label": "St.Stephen",
                "labelpos": "left"
            },
            {
                "id": "12",
                "x": "242.6",
                "y": "358.04",
                "label": "Grand Bay",
                "labelpos": "bottom"
            },
            {
                "id": "13",
                "x": "270",
                "y": "363.91",
                "label": "St.John",
                "labelpos": "right"
            },
            {
                "id": "14",
                "x": "379.56",
                "y": "273.91",
                "label": "Moncton"
            },
            {
                "id": "15",
                "x": "360",
                "y": "289.56",
                "label": "Riverview",
                "labelpos": "left"
            }
        ],
        "application": [
            {
                "id": "FE",
                "shapeid": "myCustomShape"
            },
            {
                "id": "01",
                "shapeid": "newCustomShape"
            },
            {
                "id": "02",
                "shapeid": "newCustomShape"
            },
            {
                "id": "04",
                "shapeid": "newCustomShape"
            },
            {
                "id": "03",
                "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"
            }
        ]
    }
}

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