Динамическое изменение URL

This commit is contained in:
Krivchikov Dmitry 2014-04-26 20:54:31 +04:00
parent 55faabb709
commit f3508a3012
1 changed files with 2 additions and 1 deletions

View File

@ -129,12 +129,13 @@ function showInfo(id)
point = getURLParameter('point'); point = getURLParameter('point');
if (point != null && id == point) if (point != null && id == point)
{ {
myMap.setCenter(points[point].geometry.getCoordinates());
points[point].balloon.open(); points[point].balloon.open();
} }
} }
}); });
} }
history.pushState({}, document.title, "/?point="+id);
return true; return true;
} }