Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#953 closed defect (fixed)

Map title bar disappears when interactive resource is added through the search results

Reported by: xzam Owned by: geonetwork-devel@…
Priority: major Milestone: v2.8.1
Component: Web Map Viewer Version: v2.6.4
Keywords: Map Panel, Title Bar Cc:

Description

Problem:

The map title bar disappears (or in other words is reduced in height significantly) when a interactive resource is added to the map following the steps below.

Prerequisites:

  • The main map is in hidden state

Steps to reproduce the behavior:

  • locate a interactive resource in the search result panel
  • add the resource to the map (the map should fade in and the new layer is added)
  • click on the button for hiding the map-panel (top-left corner)
  • result should be that the title-bar of the map disappears. It´s not possible to permanently display the mappanel afterwards because the button for this is not visible/clickable anymore

(the attached image shows this status - marked with red)

Attachments (1)

geonetwork_maptitlebar_bug.PNG (52.5 KB ) - added by xzam 12 years ago.
Visualization of the bug (marked in red)

Download all attachments as: .zip

Change History (5)

by xzam, 12 years ago

Visualization of the bug (marked in red)

comment:1 by xzam, 12 years ago

Here is a link to our geonetwork to reproduce the bug: http://131.220.109.2/geonetwork

comment:2 by ianwallen, 11 years ago

In the file ./geonetwork/web/geonetwork/scripts/gn_search.js

If I remove the call to the following mainViewport.doLayout(); from the addWMSLayer function it seems to fix the issue. Anyone know why doLayout is required?

function addWMSLayer(layers) {
   Ext.getCmp("north-map-panel").expand();
//   mainViewport.doLayout();
   GeoNetwork.mapViewer.addWMSLayer(layers);
}

Only tested on Firefox - Maybe it is required for other browsers?

comment:3 by ianwallen, 11 years ago

Milestone: v2.6.5v2.9.0
Resolution: fixed
Status: newclosed

Applied fix in commit f00b5fc35cde4dfbd3a61c2ff882efcda16e354e (master)

comment:4 by ianwallen, 11 years ago

Milestone: v2.9.0v2.8.1

Commit 357e53fc1d3acf12c2296d4362a4ca51b4963429 in 2.8 branch

Note: See TracTickets for help on using tickets.