cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the icon of a spot in a dynpro application?

Former Member
0 Kudos

Hi,

I am trying to change the icons for the spots on the map in a dynpro application dynamically. Is it possible to change the icon for only some of the spots? If yes, which method should I use?

The images for the icons are located in the mime repository and I added them to the application in the initialization of the application.

Thanks and regards,

Marc

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182119
Active Participant
0 Kudos

Hello Mark,

The intended place for any UI technology is method DETERMINE_SPOT_ICONS of the control adapter. The default impl. resides in class CL_VBI_CONTROL_ADAPTER_GEO. There are two options for changing the icons:

1. derive your own control adapter impl. and overwrite this method

2. If the default pin assignment is sufficient you may simply replace the images. To do so provide an alternative MIME repository path to method GET_INITIAL_ZIP_ARCHIVE of class CL_VBI_GEOMAP_APPLICATION

In the later case all pin images need to be available under the new path.

Hope the answer your question.

Cheers Uwe