簡體   English   中英

C#.net中StyledIconOptions,StyledMarker的命名空間

[英]Namespace for StyledIconOptions,StyledMarker in C#.net

我在我的項目中使用Subgurim.Controles谷歌地圖。當我使用StyledIconOptions,StyledIcon,StyledMarker時,它顯示缺少程序集或指令。 此問題所需的名稱空間是什么...

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 Subgurim.Controles;
protected void Page_Load(object sender, EventArgs e)
        {

            GLatLng latLng = new GLatLng(50, 10);
            GMap1.setCenter(latLng);

            GIcon icon = new GIcon();
            icon.image = "http://gmaps-samples.googlecode.com/svn/trunk/markers/circular/greencirclemarker.png";
            icon.iconSize = new GSize(32, 32);
            icon.iconAnchor = new GPoint(16, 16);
            icon.infoWindowAnchor = new GPoint(25, 7);

            StyledIconOptions iconOptions1 = new StyledIconOptions()
            {
                Text = "Hi",
                Color = Color.Blue,
                Fore = Color.Red,
                StarColor = Color.Green
            };

            StyledIcon icon1 = new StyledIcon(StyledIconType.Marker, iconOptions1);

            StyledMarker styledMarker1 = new StyledMarker(latLng, icon1);

            StyledIconOptions iconOptions2 = new StyledIconOptions()
            {
                Text = "Hi, I'm a bubble!",
                Color = Color.Orange,
                Fore = Color.PaleGreen,
            };

            StyledIcon icon2 = new StyledIcon(StyledIconType.Bubble, iconOptions2);

            StyledMarker styledMarker2 = new StyledMarker(latLng + new GLatLng(1.0, 1.0), icon2);

            GInfoWindow window1 = new GInfoWindow(styledMarker1, "You can user StyledMarker as any other marker!");
            GInfoWindow window2 = new GInfoWindow(styledMarker2, "You can user StyledMarker as any other marker!");

            GMap1.Add(window1);
            GMap1.Add(window2);

        }

命名空間是

using Subgurim.Controles;
using Subgurim.Controles.Classes.UtilityLibrary;
using Subgurim.Controles.Classes.UtilityLibrary.Options;

問候

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM