I created a Class MyLabel that extends PlaceLabel.
However, when I click/touch the label in the map, the labelClicked() is not called.
Basically I'd like to recognize touch/click event for the Label and do further action.
Please advice.
Enoch
Hi I am also trying to consume click on label how to do it as LabelClicked is not working
new Place(idNo, new PlaceLabel("my location")
{
public void labelClicked(int screenX, int screenY,
int displayWidth, int displayHeight,
int clickX, int clickY) {
System.out.println("my label is clicked man !!!");
super.labelClicked(screenX, screenY, displayWidth, displayHeight, clickX,
clickY);
}
thanks in advance
The Blackberry demo project https://bitbucket.org/nutiteq/blackberry-map-samples/ has couple of working custom label samples: ClickTestLabel.java and BalloonLabel.java , you can check out from there how it should work.
Please send your label class to support@nutiteq.com and we are happy to take a look on it and improve it if needed.
/JaakL