Hi,
I am an android development beginner and have a problem.
I created a BasicMapComponent with a KmlUrlReader service and implemented elementClicked() method.
I would get a field "id" which is present in the Kml string.
How I can get a KmlPlace from a OnMapElement to execute this : place.getExtendedData().getValue("id") ?
I know that the following code is not correct but it's what I want to do :
public void elementClicked(OnMapElement element) {
Log.d("elementClicked", ((KmlPlace) element).getExtendedData().getValue("id"));
}
Thanks for your help
try:
Log.d("elementClicked",mapComponent.getAdditionalInfo((Place) element).getExtendedData("id"));
/JaakL