Warning: Declaration of LJXP_Walker_Category_Checklist::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /var/www/u3357911/data/www/karta39.ru/blog/wp-content/plugins/lj-xp/lj-xp-options.php on line 771

Warning: Declaration of LJXP_Walker_Category_Checklist::end_lvl(&$output, $depth, $args) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /var/www/u3357911/data/www/karta39.ru/blog/wp-content/plugins/lj-xp/lj-xp-options.php on line 776

Warning: Declaration of LJXP_Walker_Category_Checklist::start_el(&$output, $category, $depth, $args) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /var/www/u3357911/data/www/karta39.ru/blog/wp-content/plugins/lj-xp/lj-xp-options.php on line 781

Warning: Declaration of LJXP_Walker_Category_Checklist::end_el(&$output, $category, $depth, $args) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /var/www/u3357911/data/www/karta39.ru/blog/wp-content/plugins/lj-xp/lj-xp-options.php on line 793

Warning: Use of undefined constant odnaknopka - assumed 'odnaknopka' (this will throw an Error in a future version of PHP) in /var/www/u3357911/data/www/karta39.ru/blog/wp-content/plugins/odnaknopka/ok2.php on line 11

Warning: Use of undefined constant ddsg_language - assumed 'ddsg_language' (this will throw an Error in a future version of PHP) in /var/www/u3357911/data/www/karta39.ru/blog/wp-content/plugins/sitemap-generator/sitemap-generator.php on line 44
Blog » Map

Архив

Публикации с меткой ‘Map’

GDirections без маркеров

//Don't supply a map to GDirections()
var direction = new GDirections(); 

//Make sure {getPolyline:true} is given to the load function
direction.load("here to there", {getPolyline:true});

GEvent.addListener(direction, 
                   "load", 
                   function(){ map.addOverlay(direction.getPolyline()); }
);

Краткое руководство по добавлению собственных карт на Google Maps.

26 Январь 2009 4 comments

Добавить собственную карту не так сложно, как может показаться :)
Итак приступим…

Земля в Google Maps разворачивается в проекцию Меркатора – т.е. представляет собой развёрнутый на плоскость цилиндр, что даёт нам прямоугольник, который разбивается на маленькие квадратики (tiles) с размерами 256×256пикселей.

Пример кусочка карты от Google:
http://mt1.google.com/mt?v=ap.88&hl=ru&x=285&y=162&z=9&s=G
mt

Читать далее…