Hi,I am developing app for Blackberry,now I using your map product (rimui_maps_lib-1.1.0a),and the map source from Bing,I put some placese on the map with image and PlaceLabel(showing some info for the place),everything is fine,the image showed,the placeLabel show too, but when I click the place it is nothing happen,the elementClicked(OnMapElement element)is not called when I click the place,other two are called(elementEntered and elementLeft).so please help me with this,thanks.
i tried by using cursor it doesn't work in non touch dvices
i tried by using the cursor but it doesn't work
The issue here is that BlackBerry scroller/touchpad click does not give keypresses, so normal onKeyDown event is not called and you need to implement NavigationClick/UnClick events. Sample:
// 1.define SELECT keypress for MapComponent // code 32 is code of "space" of in BB final UserDefinedKeysMapping keysMapping = new UserDefinedKeysMapping(); ... keysMapping.defineKey(ControlKeys.SELECT_KEY, 32); ... mapComponent.setControlKeysHandler(keysMapping); // 2. implement navigationClick/unClick events // forward them to mapComponent as "space" keypresses protected boolean navigationClick(int status, int time) { fieldChangeNotify(1); keyPressed(32); return true; } protected boolean navigationUnclick(int status, int time) { keyReleased(32); return true; }/JaakL