*/
protected Location createLocation(float lat, float lon, String name,
String iconURL) {
// This will turn into a regular location if iconURL is null.
Location loc = new URLRasterLocation(lat, lon, name, iconURL);
// let the layer handler default set these initially...
loc.setShowName(isShowNames());
loc.setShowLocation(isShowLocations());
loc.setLocationHandler(this);
getLocationDrawingAttributes().setTo(loc.getLocationMarker());
getNameDrawingAttributes().setTo(loc.getLabel());
loc.setDetails(name + " is at lat: " + lat + ", lon: " + lon);
if (iconURL != null) {
loc.setDetails(loc.getDetails() + " icon: " + iconURL);
}
Debug.message("csvlocation", "CSVLocationHandler " + loc.getDetails());
return loc;
}