These are chat archives for H1D/space

20th
Mar 2015
Artem Suschev
@H1D
Mar 20 2015 17:54
Александр Гренишин
@nd0ut
Mar 20 2015 17:57
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC25ZxrBvHhVTP9/ECh8U6z71qtDkGtnSEefBee0XYSZ2cCdzDTV0KEIXDgTmwWKQ4CYEbYwZeYIkfHYNx6LQUmg/soohzVQQEjjEoUzZVJzUg5/a3yi/MA8klP85W1nI0W+kbYBW6eUFcrXa20tkymurRoBaAH26/BIYbYAH3q9etTKP97/+tfEiXVsxBbaR1Gv0OBf/ZEuktHY45unxLuChBIbyXSRfilAZN4BF+orpMxaBkGkoAmi/zv7jrWmgTe8ni4rp2xQsnGhXqSQnhK6CLR4fWyRj1H/nj1UPUDPvs45ttXVtwYnBNCybZMGIdEykZKk5TL431/x1bC92fV nd0ut.me@gmail.com
Sergey Starkov
@stark92
Mar 20 2015 18:10
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/x8nUrRx6TXoVspAAWGcblltuvb5kSqWvTkQvZfz2q9/OZTga+M7co1OB2fpYmtCQrwri1E/zi/CZP7jA88TLrRFoYqNVBP7FIc5Rj0VS7RKxpPi8DdqvNGx54+G73cvJyEhjXa9AXoWznwxIb7qKnFBZjfobZknR2pISmkfNd0x0j0cFwj3KdYNm4WgI0vRkjGGb1aAHH1s/yGhPf9lyUQHCQrCciBVRJ9IX2Jucnl2q6Fth+bR660FO5tGZk7q1ZcmY9pnv2iGY9N8wgI38K8XDjVjqP7C6dGGoL/Ea7fbKYEyimUe2HWdtIXxvyaa//wrmzsSbvYKGmxcCwRkX stark@ubuntu
Artem Suschev
@H1D
Mar 20 2015 18:15
ssh root@188.226.222.86
Artem Suschev
@H1D
Mar 20 2015 18:23
ssh-copy-id root@188.226.222.86
пароль tkMG63UfPejsRCYJtxAY
Artem Suschev
@H1D
Mar 20 2015 18:40
пример с 9гигапиксельной фоткой http://build-failed.blogspot.ru/2012/11/zoomable-image-with-leaflet.html
Александр Гренишин
@nd0ut
Mar 20 2015 18:42
Александр Гренишин
@nd0ut
Mar 20 2015 18:51
Александр Гренишин
@nd0ut
Mar 20 2015 19:37
        var map = L.map('map').setView([0, 0], 2);
        L.tileLayer('eso/{z}/{x}/{y}.jpg', {
            minZoom: 1,
            maxZoom: 6,
            attribution: 'ESO/INAF-VST/OmegaCAM',
            tms: true
        }).addTo(map);
Александр Гренишин
@nd0ut
Mar 20 2015 19:53
    // the tile layer containing the image generated with gdal2tiles --leaflet ...
    L.tileLayer('./tiles/{z}/{x}/{y}.png', {
        noWrap: true,
        attribution: 'Map <a href="https://commons.wikimedia.org/wiki/'+
            'File:Karta_%C3%B6ver_Europa,_1672_-_Skoklosters_slott_-_95177.tif">'+
            'Karta över Europa, 1672 - Skoklosters</a> under '+
            '<a href="https://creativecommons.org/publicdomain/zero/1.0/deed.en">CC0</a>',
    }).addTo(map);
Александр Гренишин
@nd0ut
Mar 20 2015 20:05
    // the tile layer containing the image generated with gdal2tiles --leaflet ...
    L.tileLayer('./tiles/{z}/{x}/{y}.png', {
        noWrap: true,
        attribution: 'Map <a href="https://commons.wikimedia.org/wiki/'+
            'File:Karta_%C3%B6ver_Europa,_1672_-_Skoklosters_slott_-_95177.tif">'+
            'Karta över Europa, 1672 - Skoklosters</a> under '+
            '<a href="https://creativecommons.org/publicdomain/zero/1.0/deed.en">CC0</a>',
    }).addTo(map);
/*
 * @copyright 2015 commenthol
 * @license MIT
 */

/* globals L */

function init() {
    var minZoom = 0,
        maxZoom = 5,
        img = [
            3831,  // original width of image
            3101   // original height of image
        ];

    // create the map
    var map = L.map('map');

    // assign map and image dimensions
    var rc = new L.RasterCoords(map, img);
    // set the bounds on map
    rc.setMaxBounds();

    // set the view on a marker ...
    map.setView(rc.unproject([1589, 1447]), 5);

    // set marker at the image bound edges


    // the tile layer containing the image generated with gdal2tiles --leaflet ...
    L.tileLayer('./tiles/{z}/{x}/{y}.png', {
        attribution: 'Map <a href="https://commons.wikimedia.org/wiki/'+
            'File:Karta_%C3%B6ver_Europa,_1672_-_Skoklosters_slott_-_95177.tif">'+
            'Karta över Europa, 1672 - Skoklosters</a> under '+
            '<a href="https://creativecommons.org/publicdomain/zero/1.0/deed.en">CC0</a>',
    }).addTo(map);
}
Александр Гренишин
@nd0ut
Mar 20 2015 20:11
19424x5249
Artem Suschev
@H1D
Mar 20 2015 22:41
проверил координаты. Все совпадает!
rc.project(map.getCenter()) дает координаты в пикселях – то что надо!