Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150971 | Jan 26,2020 06:34 PM UTC | Aug 21,2020 03:23 PM UTC | ASP.NET Core - EJ 2 | 18 |
![]() |
Tags: Maps |
<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.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.