Web/shop/TogoPolygon.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
public partial class shop_TogoPolygon : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        UserHelp.IsLogin_Togo(Request.Url.PathAndQuery);
        if (!Page.IsPostBack)
        {
            //获取商家
            ETogoLocalInfo info = new ETogoLocalInfo();

            ETogoLocal bll = new ETogoLocal();
            int id = UserHelp.GetUser_Togo().Unid;
            info = bll.GetInfoById(id + "");

            //如无坐标点则默认

            string js = "function buildMap()";
            js += "{";
            js += "var container = document.getElementById(\"map\"); ";
            js += "map = new GMap2(container, {draggableCursor:\"auto\", draggingCursor:\"move\"});";
            js += "tooltip = document.createElement(\"div\");";
            js += "tooltip.className = \"tooltip\";";
            js += "map.getPane(G_MAP_MARKER_PANE).appendChild(tooltip);";
            if (info != null && info.Lat != null && info.Lng != null && info.Lat != "" && info.Lng != "")
            {
                js += "center = new GLatLng(" + info.Lat + "," + info.Lng + ");";
            }
            else
            {
                js += "center = new GLatLng(" + Map.DefautLocal.getlocalInfo().Lat + "," + Map.DefautLocal.getlocalInfo().Lng + ");";
            }
            js += "map.setCenter(center, 13);";
            js += " marker = new GMarker(center, {draggable: true});";
            js += "map.addOverlay(marker);";
            js += "map.addControl(new GLargeMapControl3D()); ";
            js += "map.addMapType(G_PHYSICAL_MAP);";
            js += "var hierarchy = new GHierarchicalMapTypeControl();";
            js += " hierarchy.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP, \"Labels\", true);";
            js += " map.addControl(hierarchy);";
            js += "map.addControl(new GScaleControl()); ";
            js += "map.disableDoubleClickZoom();";
            js += "GEvent.addListener(map, \"click\", leftClick);";
            js += "}";

后面还有 57 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。