builder.append("]");
renderJSON(builder.toString().replace("},]", "}]"));
}
public static void open(String lng, String lat) {
Marker m = Marker.filter("lng", lng).filter("lat", lat).first();
Photo photo = Photo.filter("marker", m).first();
String markerId = "\"id\":\"" + m.getId() + "\"";
String photoName = photo == null ? "" : photo.name;
String data =
"{" + markerId + ",\"photo\":\"" + photoName + "\",\"title\":\"" + m.title + "\"}";
Logger.info(data);
renderJSON(data);