Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
        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()));
        }