Commit 6ee784b5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

centering on top map is working properly

parent ba171932
......@@ -84,7 +84,7 @@
var configuration = new Configuration();
function processUrlGetParams() {
if (GuiConnector.getParams["submap"]==null) {
if (GuiConnector.getParams["submap"]==null || configuration.ID_MODEL==GuiConnector.getParams["submap"]) {
if (GuiConnector.getParams["x"]!=undefined && GuiConnector.getParams["y"]!=undefined){
ServerConnector.setCenterCoordinateX(GuiConnector.getParams["x"]);
ServerConnector.setCenterCoordinateY(GuiConnector.getParams["y"]);
......@@ -103,9 +103,9 @@ function updateConfig() {
}
function initMap(){
updateConfig();
processUrlGetParams();
updateConfig();
searchPanel = new SearchPanel(document.getElementById('tabView:mainForm:searchText_input'),
document.getElementById('tabView:mainForm:searchButton'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment