Opened 14 years ago

Closed 14 years ago

#1300 closed defect (fixed)

Chrome basic web layout and base layer, zooming in/out will make features disappear

Reported by: liuar Owned by: liuar
Priority: medium Milestone:
Component: AJAX Viewer Version: 2.1.0
Severity: major Keywords:
Cc: vito.huang@… External ID: 1311532

Description

  1. Set layer as base layer in map and give a number, such as 10, for total number for scales
  2. Create a basic web layout and use Chrome to browse
  3. Zoom in and zoom out some times, and the features in the layer is disppeared

Change History (2)

comment:1 by liuar, 14 years ago

Comments from Chris

This appears to be a defect in the way Chrome caches images. It is possible to resolve the problem by making each tile request URL unique. This can be done by adding a timestamp parameter as shown below in the if(chrome) section.

function RequestTile(col, row, tilex, tiley) { ... ...

url = webAgent + "?OPERATION=GETTILEIMAGE&VERSION=1.2.0&SESSION=" + sessionId + "&MAPDEFINITION=" + encodeComponent(mapDefinitionName) + "&BASEMAPLAYERGROUPNAME=" + encodeComponent(baseGroups[k]) + "&TILECOL=" + tilex + "&TILEROW=" + tiley + "&SCALEINDEX=" + sci + "&CLIENTAGENT=" + encodeComponent(clientAgent); if(chrome) {

var timestamp = new Date().getTime(); url += ('&TS=' + timestamp);

}

... ... ... }

comment:2 by liuar, 14 years ago

Resolution: fixed
Status: newclosed

Fixed at changeset [4704]

Note: See TracTickets for help on using tickets.