Как изменить коэффициент масштабирования при перемещение карты в yandex maps api
Как изменить коэффициент масштабирования при перемещение карты в yandex maps api. Есть следующий код:
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .javascript.geshi_code {font-family:monospace;} .javascript.geshi_code .imp {font-weight: bold; color: red;} .javascript.geshi_code .kw1 {color: #000066; font-weight: bold;} .javascript.geshi_code .kw2 {color: #003366; font-weight: bold;} .javascript.geshi_code .kw3 {color: #000066;} .javascript.geshi_code .co1 {color: #006600; font-style: italic;} .javascript.geshi_code .co2 {color: #009966; font-style: italic;} .javascript.geshi_code .coMULTI {color: #006600; font-style: italic;} .javascript.geshi_code .es0 {color: #000099; font-weight: bold;} .javascript.geshi_code .br0 {color: #009900;} .javascript.geshi_code .sy0 {color: #339933;} .javascript.geshi_code .st0 {color: #3366CC;} .javascript.geshi_code .nu0 {color: #CC0000;} .javascript.geshi_code .me1 {color: #660066;} .javascript.geshi_code span.xtra { display:block; }
destinations = {
'Germany': [51.150443,10.453979],
'Russia': [64.397509,100.102416],
'Belarus': [53.902692,27.573522]
},
menuContainer = $('#mapMenu');
for (var item in destinations) {
(function (title, geoPoint) {
$("<li><a href="javascrtipt:void(0)">" + item + "</a></li>")
.find('a')
.bind('click', function () {
menuContainer.find('a').css('text-decoration', 'underline');
$(this).css('text-decoration', 'none');
myMap.panTo(geoPoint, { });
return false;
})
.end()
.appendTo(menuContainer);
})(item, destinations[item])
}
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .javascript.geshi_code {font-family:monospace;} .javascript.geshi_code .imp {font-weight: bold; color: red;} .javascript.geshi_code .kw1 {color: #000066; font-weight: bold;} .javascript.geshi_code .kw2 {color: #003366; font-weight: bold;} .javascript.geshi_code .kw3 {color: #000066;} .javascript.geshi_code .co1 {color: #006600; font-style: italic;} .javascript.geshi_code .co2 {color: #009966; font-style: italic;} .javascript.geshi_code .coMULTI {color: #006600; font-style: italic;} .javascript.geshi_code .es0 {color: #000099; font-weight: bold;} .javascript.geshi_code .br0 {color: #009900;} .javascript.geshi_code .sy0 {color: #339933;} .javascript.geshi_code .st0 {color: #3366CC;} .javascript.geshi_code .nu0 {color: #CC0000;} .javascript.geshi_code .me1 {color: #660066;} .javascript.geshi_code span.xtra { display:block; }
destinations = {
'Germany': [51.150443,10.453979],
'Russia': [64.397509,100.102416],
'Belarus': [53.902692,27.573522]
},
menuContainer = $('#mapMenu');
for (var item in destinations) {
(function (title, geoPoint) {
$("<li><a href="javascrtipt:void(0)">" + item + "</a></li>")
.find('a')
.bind('click', function () {
menuContainer.find('a').css('text-decoration', 'underline');
$(this).css('text-decoration', 'none');
myMap.panTo(geoPoint, { });
return false;
})
.end()
.appendTo(menuContainer);
})(item, destinations[item])
}