- if (_coordinates == null) return;
- String allCoords = _coordinates.toString().trim();
- String[] coordArray = allCoords.split("[ \n]");
- int numPoints = coordArray.length;
- if (numPoints == 1)
- {
- // Add single waypoint to list
- _pointList.add(makeStringArray(allCoords, _name, _desc));
- _linkList.add(_imgLink);
- }
- else if (numPoints > 1)
+ if (_coordinateList == null || _coordinateList.isEmpty()) return;
+ final boolean isSingleSelection = (_coordinateList.size() == 1);
+ // Loop over coordinate sets in list (may have multiple <coordinates> tags within single placemark)
+ for (String coords : _coordinateList)