Get In Touch With Us
We are here to answer your questions. If you have any questions please leave us a message. We will contact with you as soon as possible.
Contact Details
United States Address
136 Violet Way, Spring City, PA, 19475
General Numbers
Whatsapp Numbers
Email Address
Sri Lanka Address
Whatsapp Numbers
Email Address
Follow Us
Follow us on social media and join our social network & customer community to share and donate
var map, infobox, tooltip;
var tooltipTemplate = '
{title}
';
function GetMap() {
//Create custom Pushpin
var locations= [ ]; var pointsll= [ ];
cred='Au5lQJ6Ka2mZbRGCBR_8FehaOgu4BYgh0ffsQspncEuf1zz2gDcAmhFNb1kER7eZ';
if(locations.length==1){
var map = new Microsoft.Maps.Map('#mapDiv', {
credentials: cred,
center: new Microsoft.Maps.Location( 0,0),
zoom:locations.length==1 ? 15 : 9 ,
});
}else{
var r = Microsoft.Maps.LocationRect.fromLocations(pointsll);
var map = new Microsoft.Maps.Map('#mapDiv', {
credentials: cred,
bounds : r,
});
}
var center = map.getCenter();
//Create an infobox to use as a tooltip when hovering.
tooltip = new Microsoft.Maps.Infobox(map.getCenter(), {
visible: false,
showPointer: false,
showCloseButton: false,
offset: new Microsoft.Maps.Point(-75, 10)
});
tooltip.setMap(map);
//Create an infobox for displaying detailed information.
infobox = new Microsoft.Maps.Infobox(map.getCenter(), {
visible: false
});
infobox.setMap(map);
//Create random locations in the map bounds.
var randomLocations = Microsoft.Maps.TestDataGenerator.getLocations(5, map.getBounds());
//Add the pushpin to the map
if(locations.length==1) map.entities.push(locations[0]);
else if(locations.length>1) {
Microsoft.Maps.loadModule("Microsoft.Maps.Clustering", function () {
map.layers.insert(new Microsoft.Maps.ClusterLayer(locations ));
});
}
}
function pushpinClicked(e) {
//Hide the tooltip
closeTooltip();
//Make sure the infobox has metadata to display.
if (e.target.metadata) {
//Set the infobox options with the metadata of the pushpin.
infobox.setOptions({
location: e.target.getLocation(),
title: e.target.metadata.title,
description: e.target.metadata.description,
visible: true
});
}
}
function pushpinHovered(e) {
//Hide the infobox
infobox.setOptions({ visible: false });
//Make sure the infobox has metadata to display.
if (e.target.metadata) {
//Set the infobox options with the metadata of the pushpin.
tooltip.setOptions({
location: e.target.getLocation(),
htmlContent: tooltipTemplate.replace('{title}', e.target.metadata.title).replace('{text}', e.target.metadata.description),
visible: true
});
}
}
function closeTooltip() {
//Close the tooltip.
tooltip.setOptions({
visible: false
});
}
{text}