Динамическое изменение URL
This commit is contained in:
parent
55faabb709
commit
f3508a3012
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue