public static MvcHtmlString GetAMapMakerClick(this HtmlHelper helper) { StringBuilder sb = new StringBuilder(); JavascriptRenderer.GetAMapMarkerClickJs(sb); return(new MvcHtmlString(sb.ToString())); }
public static MvcHtmlString GetAMapMaker(this HtmlHelper helper, string id, double latitude, double longitude, string imagename) { StringBuilder sb = new StringBuilder(); JavascriptRenderer.GetAMapMarkerJs(sb, id, 116.404, 39.915, imagename); return(new MvcHtmlString(sb.ToString())); }
public static MvcHtmlString GetAMap(this HtmlHelper helper, string id, double latitude, double longitude, int zoom) { StringBuilder sb = new StringBuilder(); JavascriptRenderer.GetAMapJS(sb, id, latitude, longitude, zoom); return(new MvcHtmlString(sb.ToString())); }
public static MvcHtmlString GetAMapMaker(this HtmlHelper helper, IEnumerable <AMapMarker> markers) { StringBuilder sb = new StringBuilder(); foreach (var marker in markers) { JavascriptRenderer.GetAMapMarkerJs(sb, marker.Id, marker.Latitude, marker.Longitude, marker.ImageName, marker.Contents); } return(new MvcHtmlString(sb.ToString())); }