﻿function init() {

    var map = new VMapEngine(document.getElementById('viewport'));

    map.setCenter(new VGeoPoint(35.103142, 47.840771), 11);

    map.initialize();

    var marker = new VMarker(new VGeoPoint(35.103142, 47.840771));
    marker.setDraggable(false);
    marker.setHint('«INFOCOM Ltd»');

    var infoWindow = new VInfoWindow('«INFOCOM Ltd»', '<b>«INFOCOM Ltd»</b> provides services regarding creation of automated control systems of production starting from encoders and actuating mechanisms up to MES level and integration into ERP-system of the company.<br><b>Our address:</b> bul. T. Shevchenko, 56.<br>Zaporozhye, 69001, Ukraine<br>(N 47° 50\' 27\" / E 35° 06\' 11\")');
    infoWindow.setSize(VInfoWindow.MEDIUM);
    marker.bindInfoWindow(infoWindow);

    map.addMarker(marker);
    map.repaintMap();

    document.getElementById('viewport').style.zIndex = 0;
}  