简体   繁体   English

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

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

i am using the Subgurim.Controles google maps in my project.when i use StyledIconOptions,StyledIcon,StyledMarker it show missing the assembly or directive. 我在我的项目中使用Subgurim.Controles谷歌地图。当我使用StyledIconOptions,StyledIcon,StyledMarker时,它显示缺少程序集或指令。 what is the name space is required for this issue... 此问题所需的名称空间是什么...

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);

        }

the namespace is 命名空间是

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

regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM