<ejs-maps id="maps" markerClick="markerClick">
<e-maps-layers>
<e-maps-layer shapeData="ViewBag.shapeData1">
<e-layersettings-markers>
<e-layersettings-marker visible="true" dataSource="data" height="20" width="20" animationDuration="0">
</e-layersettings-marker>
</e-layersettings-markers>
</e-maps-layer>
</e-maps-layers>
</ejs-maps>
<script>
function markerClick(args) {
var aEl = document.createElement('a');
aEl.rel='nofollow' href = 'https://ej2.syncfusion.com/aspnetcore/Maps/Default#/material';
aEl.target = '_blank';
aEl.click();
}
</script> |
function markerClick(args) {
var aEl = document.createElement('a');
aEl.rel='nofollow' href = 'https://ej2.syncfusion.com/aspnetcore/Maps/Default#/material/' +
args.data.name;
aEl.target = '_blank';
aEl.click();
} |
<div id="container" style="display:block;height:100%">
<ejs-maps id="maps" height="100%"width=”100%” markerClick="markerClick">
<e-maps-layers>
<e-maps-layer shapeData="ViewBag.shapeData1">
<e-layersettings-markers>
<e-layersettings-marker visible="true" dataSource="data" height="20" width="20" animationDuration="0">
</e-layersettings-marker>
</e-layersettings-markers>
</e-maps-layer>
</e-maps-layers>
</ejs-maps>
</div>
<style>
#maps {
display: block;
height: 100%;
width: 100%;
}
html, body {
height: 100%;
width: 100%;
display: block;
}
//This is parent class, and this is in layout page.
.container {
height: 100% !important;
width: 100% !important;
}
</style> |
<style>
#maps {
display: block;
height: 100%;
width: 100%;
}
html, body {
height: 100%;
width: 100%;
display: block;
}
.container {
height: 100% !important;
width: 100% !important;
}
</style> |
Hi Luigi,
Most welcome. Please let us know, if you have any other concerns. We are always happy to assist you.
Regards,Baby.