"
},
{
"position": {
lat: parseInt(getMapll("https://www.google.com/maps/dir//Shaikh+Omar,+Baghdad,+Iraq/@33.3482081,44.3991309,18z/data=!4m8!4m7!1m0!1m5!1m1!1s0x1557820a88f703af:0xa1066e44340b3bed!2m2!1d44.400199!2d33.3475708")[0]),
lng: parseInt(getMapll("https://www.google.com/maps/dir//Shaikh+Omar,+Baghdad,+Iraq/@33.3482081,44.3991309,18z/data=!4m8!4m7!1m0!1m5!1m1!1s0x1557820a88f703af:0xa1066e44340b3bed!2m2!1d44.400199!2d33.3475708")[1])
},
"key": "iraq",
"content": '
Mineral Circles Industrial Equipment
Shik Omar St., Baghdad, Iraq
Tel: +964-772-3709058
E-mail: iqsales@mcb.ae
' //I love this way to trim line breaks take 45 minutes to find.
// "content": '
Mineral Cercles Roulements
No. 25 Angle Bd La Gironde et Libourne
Casablanca, Morocco
Mob: +212-661-239939
Tel: +212-522-801470; +212-522-540331/33
Fax: +212-522-449751
E-mail: mcrindustrie@mcb.ae
'
// "content": "
Mineral Circles Bearings
Ajman, United Arab Emirates
"
},
{
"position": {
lat: parseInt(getMapll("https://www.google.com/maps/search/No.+500+Mingzhou+Road,+Xinqi+Beilun+District,+Ningbo+City+Zhejiang+Province,+China/@29.9096318,121.8505073,19z")[0]),
lng: parseInt(getMapll("https://www.google.com/maps/search/No.+500+Mingzhou+Road,+Xinqi+Beilun+District,+Ningbo+City+Zhejiang+Province,+China/@29.9096318,121.8505073,19z")[1])
},
"key": "china-representative-office",
"content": '
Mineral Circles Bearings - Representative Office
No. 500 Mingzhou Road, Xinqi Beilun District, Ningbo City Zhejiang Province, China
Tel: +86-5-7487863060
Fax: +86-5-7487863070
E-mail: purchase@mcb.ae
' //I love this way to trim line breaks take 45 minutes to find.
// "content": '
Mineral Cercles Roulements
No. 25 Angle Bd La Gironde et Libourne
Casablanca, Morocco
Mob: +212-661-239939
Tel: +212-522-801470; +212-522-540331/33
Fax: +212-522-449751
E-mail: mcrindustrie@mcb.ae
'
// "content": "
Mineral Circles Bearings
Ajman, United Arab Emirates
"
},
{
"position": {
lat: parseInt(getMapll("https://www.google.com/maps/place/As+Saymar,+Basrah,+Iraq/@30.4944825,47.8162873,17z/data=!4m13!1m7!3m6!1s0x3fc4976133865427:0x33115a982110ecfd!2sAs+Saymar,+Basrah,+Iraq!3b1!8m2!3d30.494874!4d47.8155695!3m4!1s0x3fc4976133865427:0x33115a982110ecfd!8m2!3d30.494874!4d47.8155695")[0]),
lng: parseInt(getMapll("https://www.google.com/maps/place/As+Saymar,+Basrah,+Iraq/@30.4944825,47.8162873,17z/data=!4m13!1m7!3m6!1s0x3fc4976133865427:0x33115a982110ecfd!2sAs+Saymar,+Basrah,+Iraq!3b1!8m2!3d30.494874!4d47.8155695!3m4!1s0x3fc4976133865427:0x33115a982110ecfd!8m2!3d30.494874!4d47.8155695")[1])
},
"key": "mustafa-trade-office",
"content": '
Mustafa Trade Office
Al Saymar City Basra, Iraq
Tel: +9647703296795
Fax: +96440320606
E-mail: basra@mcb.ae
' //I love this way to trim line breaks take 45 minutes to find.
// "content": '
Mineral Cercles Roulements
No. 25 Angle Bd La Gironde et Libourne
Casablanca, Morocco
Mob: +212-661-239939
Tel: +212-522-801470; +212-522-540331/33
Fax: +212-522-449751
E-mail: mcrindustrie@mcb.ae
'
// "content": "
Mineral Circles Bearings
Ajman, United Arab Emirates
"
},
{
"position": {
lat: parseInt(getMapll("https://www.google.com/maps/place/Baghdad,+Iraq/@33.3157907,44.3598728,16z/data=!4m8!1m2!2m1!1sAlsenak-Alwazan+Market,+Baghdad,+Iraq!3m4!1s0x15577f67a0a74193:0x9deda9d2a3b16f2c!8m2!3d33.3152521!4d44.3660545")[0]),
lng: parseInt(getMapll("https://www.google.com/maps/place/Baghdad,+Iraq/@33.3157907,44.3598728,16z/data=!4m8!1m2!2m1!1sAlsenak-Alwazan+Market,+Baghdad,+Iraq!3m4!1s0x15577f67a0a74193:0x9deda9d2a3b16f2c!8m2!3d33.3152521!4d44.3660545")[1])
},
"key": "iraq-al-khaleej-trading-auto-spare-parts-company",
"content": '
Al Khaleej Trading Auto Spare Parts Company
Alsenak-Alwazan Market, Baghdad, Iraq
Mob: +9647811110624; +9647702604833
E-mail: mcb_irq@yahoo.com
' //I love this way to trim line breaks take 45 minutes to find.
// "content": '
Mineral Cercles Roulements
No. 25 Angle Bd La Gironde et Libourne
Casablanca, Morocco
Mob: +212-661-239939
Tel: +212-522-801470; +212-522-540331/33
Fax: +212-522-449751
E-mail: mcrindustrie@mcb.ae
'
// "content": "
Mineral Circles Bearings
Ajman, United Arab Emirates
"
},
{
"position": {
lat: parseInt(getMapll("https://www.google.com/maps/place/Frejgatan+13,+114+20+Stockholm,+Sweden/@59.3482353,18.06095,19z/data=!4m5!3m4!1s0x465f9d6c62bc8ac5:0x23b943383697bfb0!8m2!3d59.3482353!4d18.0611538")[0]),
lng: parseInt(getMapll("https://www.google.com/maps/place/Frejgatan+13,+114+20+Stockholm,+Sweden/@59.3482353,18.06095,19z/data=!4m5!3m4!1s0x465f9d6c62bc8ac5:0x23b943383697bfb0!8m2!3d59.3482353!4d18.0611538")[1])
},
"key": "sweden",
"content": '
MCB Bearings AB
Frejgatan 13 Stockholm, Sweden
www.mcbbearings.com
' //I love this way to trim line breaks take 45 minutes to find.
// "content": '
Mineral Cercles Roulements
No. 25 Angle Bd La Gironde et Libourne
Casablanca, Morocco
Mob: +212-661-239939
Tel: +212-522-801470; +212-522-540331/33
Fax: +212-522-449751
E-mail: mcrindustrie@mcb.ae
'
// "content": "
Mineral Circles Bearings
Ajman, United Arab Emirates
"
},
{
"position": {
lat: parseInt(getMapll("https://www.google.com/search?q=mineral+circles+bearings&rlz=1C1GCEU_enAE858AE859&oq=Miner&aqs=chrome.0.35i39j69i57j69i59j0i131i433j0i433j69i60j69i61l2.1128j0j7&sourceid=chrome&ie=UTF-8#")[0]),
lng: parseInt(getMapll("https://www.google.com/search?q=mineral+circles+bearings&rlz=1C1GCEU_enAE858AE859&oq=Miner&aqs=chrome.0.35i39j69i57j69i59j0i131i433j0i433j69i60j69i61l2.1128j0j7&sourceid=chrome&ie=UTF-8#")[1])
},
"key": "jebel-ali-headquarters",
"content": '
Jebel Ali Headquarters
Corner S1203 and S1205 Jebel Ali Free Zone South Dubai, UAE
Tel: +971-4-886-5100
E-mail: export@mcb.ae
' //I love this way to trim line breaks take 45 minutes to find.
// "content": '
Mineral Cercles Roulements
No. 25 Angle Bd La Gironde et Libourne
Casablanca, Morocco
Mob: +212-661-239939
Tel: +212-522-801470; +212-522-540331/33
Fax: +212-522-449751
E-mail: mcrindustrie@mcb.ae
'
// "content": "
Mineral Circles Bearings
Ajman, United Arab Emirates
"
},
]
for (var i = 0; i {
if (m.key == value) {
marker = m.marker;
position = marker.getPosition();
i = index;
}
})
markerReset(position, () => {
jQuery('#demo').carousel(i);
})
})
jQuery('#demo').on('slide.bs.carousel', function(e) {
let i = e.to;
jQuery('.map-dropdown select').prop('selectedIndex', i);
let value = jQuery('.map-dropdown select').val();
let latlng = null;
let position = null;
markers.forEach((m) => {
if (m.key == value) {
marker = m.marker;
position = marker.getPosition();
}
})
markerReset(position)
})
function getMapll(mapUrl) {
//console.log(mapUrl)
var url = mapUrl.split('@');
var at = url[1].split('z');
var zero = at[0].split(',');
var lat = zero[0];
var lon = zero[1];
// console.log(zero[0]+">>"+zero[1])
return zero;
}
function markerReset(position, cb = () => {}) {
if (map.getCenter() != position) {
if (map.getZoom() == 8) {
map.setCenter(position);
map.setZoom(10);
cb();
} else {
map.setZoom(8);
setTimeout(() => {
map.setCenter(position);
map.setZoom(10);
cb()
}, 700)
}
}
}