public void AddMarker(string caption, double latitude, double longitude, string color) { lock (_loadingSync) { if (_isLoaded) { _view.EvaluateJavascript(_bahavior.BuildShowMarkerFunction(caption, latitude, longitude, color)); } else { _bahavior.AddMarker(caption, latitude, longitude, color); } } }
public void AddMarker(string caption, double latitude, double longitude, string color) { lock (_loadingSync) { if (_isLoaded) { _view.LoadUrl(string.Format("javascript:{0}" , _behavior.BuildShowMarkerFunction(caption, latitude, longitude, color))); } else { _behavior.AddMarker(caption, latitude, longitude, color); } } }