if (browser != null) {
try {
// Reload Google Map
- browser.refresh();
- boolean bResult = browser.setText(googleMapScript);
+ boolean bResult = browser.execute("deleteMarkers()");
+ DebugLog.log("[Map] Browser execute deleteMakers() : "
+ + (bResult ? "Success" : "Fail"));
+
+ if (!bResult) {
+ bResult = browser.setText(googleMapScript);
+ DebugLog.log("[Map] Browser reload : "
+ + (bResult ? "Success" : "Fail"));
+ }
model.clear();
((Map) getParent()).refreshViewers();
injectButton.setEnabled(validate());
resetButton.setEnabled(validate());
- DebugLog.log("[Map] Browser reload : "
- + (bResult ? "Success" : "Fail"));
} catch (SWTException e) {
e.printStackTrace();
}
class NfcErrorString {
public static String RecordCountIsZero = "NDEF record list is empty\nAt least one or more records are required.";
public static String RecordCountIsMax = "The number of NDEF records has reached the maximum limit of 5.\n";
-
+ public static String MessageLenIsMax = "The length of the NDEF messag has reached the maximun limit of 4096 bytes.\n";
public static String MediaFileException = "Throw exception while select media file.\n";
public static String CheckVconfException = "Throw exception while check NFC state of emulator.\n";