The labels on the map does not show up properly in JSF application

Technote (troubleshooting)


Problem(Abstract)

The labels are not being display in my JViews Maps JSF page when using the IlvMapDefaultLabeler to label the maps.

Symptom

In the JSP page with the <jvmf:mapView> component, the map labels that were set with IlvMapDefaultLabeler do not show up. The labels partially appear when panning or zooming on the map.


Cause

The IlvMapDefaultLabeler has two modes: process labels in the current thread or in a separate thread.
The later is the default mode.This mode is not designed to use in JSF environment because the image will be send from the server to the client while the separate thread is still creating the labels.

Resolving the problem

When using the IlvMapDefaultLabeler in JSF environment, the labeler must be configured to synchronously respond to an image request. This can be done using the method: IlvMapDefaultLabeler.setGeneratingImage(true).

Note that you must call this before you set the view to the labeler:

IlvMapDefaultLabeler labeler  = new IlvMapDefaultLabeler();

labeler.setGeneratingImage(true);

labeler.setView(view);


Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM ILOG JViews Maps
SDK

Software version:

8.7, 8.8

Operating system(s):

Platform Independent

Reference #:

1618591

Modified date:

2013-02-06

Translate my page

Machine Translation

Content navigation