Search results


By clicking a continent, you can view all the countries available in that continent using the drill-down feature. For example, the countries in the Africa continent have been showcased here. You can showcase all the countries in Africa continent by clicking the shapeSelected event as mentioned in the following code example.

var map = new ej.maps.Maps({
    shapeSelected: function(args) {
        var shape =(args.shapeData).continent;
        if (shape === 'Africa') {
            map.baseLayerIndex = 1;
        layers: [
            layerType: 'Geometry',
            shapeData: world_map,
            shapePropertyPath: 'continent',
            shapeDataPath: 'continent',
            shapeSettings: {
                colorValuePath: 'drillColor'
            markerSettings: [       {
                visible: true,
                template: '<div id="marker3" class="markerTemplate">Africa' +
                dataSource: [
                    { latitude: 10.97274101999902, longitude: 16.390625 }
                animationDuration: 0
            layerType: 'Geometry',
            shapeData: africa,
            shapeSettings: {
                fill: '#80306A'
            highlightSettings: {
                enable: true,
                fill: '#80306A'

}, '#element');
<!DOCTYPE html><html lang="en"><head>
    <title>EJ2 Maps</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Typescript UI Controls">
    <meta name="author" content="Syncfusion">
    <link href="index.css" rel="stylesheet">
    <script src="world-map.js"></script>
    <script src="usa.js"></script>
    <script src="data.js"></script>
    <script src="california.js"></script>
    <script src="texas.js"></script>
    <script src="africa_continent.js"></script>
    <script src="africa.js"></script>
    <script src="cluster.js"></script>
<script src="" type="text/javascript"></script>

    <div id="container" style="height: 500px; width: 700px">
        <div id="element"></div>

var ele = document.getElementById('container');
if(ele) { = "visible";
<script src="index.js" type="text/javascript"></script>
<div id="mapdrilldown"></div>
     .markerTemplate {
        font-size: 12px;
        color: white;
        text-shadow: 0px 1px 1px black;
        font-weight: 500
    .markerTemplate {
        height: 30px;
        width: 30px;
        display: block;
        margin: auto;