`

How to add custom image on graphicLayer

Web 
阅读更多
ct Re: How to add custom image on graphicLayer 
Author Roger Federer 
Date Oct 30, 2008 
Message Thanks mike

Got the solution. 
  ESRI.ArcGIS.ADF.Web.Display.Symbol.RasterMarkerSymbol rms = new ESRI.ArcGIS.ADF.Web.Display.Symbol.RasterMarkerSymbol();
rms.ImageFormat = ImageFormat.PNG24;
rms.Image = new CartoImage("images\1.png");

glayer = new ESRI.ArcGIS.ADF.Web.Display.Graphics.FeatureGraphicsLayer();
glayer.TableName = "FeaturePoint";
gResource.Graphics.Tables.Add(glayer);
ESRI.ArcGIS.ADF.Web.Display.Renderer.SimpleRenderer sr =
new ESRI.ArcGIS.ADF.Web.Display.Renderer.SimpleRenderer(rms);

glayer.Renderer = sr;
glayer.Add(point);

分享到:
评论

相关推荐

    Android代码-通过贝塞尔曲线实现的药瓶和液体效果

    > * 1.The project does not use any image resources, colors of bottle and water can be changed by custom attributes; > * 2.LoadingView will automatically adjust the width and height; 2 How to Use: ...

    Advanced Apple Debugging & Reverse Engineering v0.9.5

    In this chapter, you’ll explore how to pass optional parameters (aka options) as well as arguments (parameters which are expected) to your custom command to alter functionality or logic in your ...

    Getting Started with Unity 2018 , 3rd Edition

    Import and use custom assets and asset packages to add characters to your game Build a 3D game world with a custom terrain, water, sky, mountains, and trees Animate game characters, using animation ...

    How_To_Add_Icon_Image_In_Title_Bar:此html示例显示了如何在标题栏中添加带有文本的iconimage

    在提供的压缩包文件中,"How_To_Add_Icon_Image_In_Title_Bar-master"可能包含了示例代码和其他资源,你可以下载并查看这些文件以更深入地理解和实践这个过程。记住,实践是最好的老师,动手尝试并在实际项目中应用...

    Visual C++ 编程资源大全(英文源码 控件)

    (123KB)<END><br>15,custfile.zip This sample shows how to add a couple of extra buttons to a CFileDialog. (23KB)<END><br>16,custlist.zip CUSTLIST shows how to use custom draw in a list view ...

    Java邮件开发Fundamentals of the JavaMail API

    Instructions on how to download and install the JavaMail API are contained in the course. In addition, you will need a development environment such as the JDK 1.1.6+ or the Java 2 Platform, Standard...

    Docker - Clustering Payara Server in Docker

    2. **Start Nodes**: Launch multiple Payara Server nodes using the `payara/server-node` image, connecting them to the custom network. 3. **Configure Clustering**: Use the `create-instance.sh` script to...

    Android代码-在滚动的android ImageView上创建视差和任何其他转换效果

    Android Parallax Image View ...https://medium.com/@abdularis/android-custom-view-tutorial-scroll-parallax-image-view-2140ac292ecb Screenshot Setup Step 1 Add repository into root build.g

    .Embedded.Linux.Development.with.Yocto.Project.1783282339

    Compliance is always a hassle, so you will learn the methods to share source code and modifications, and how to fulfill open source license compliance effectively and convincingly. You will then gain ...

    Android代码-DragScaleCircleView

    A custom imageview that provides the circle window can be dragged and scaled, crop image. How does it look? Why? Sometimes need to cut a picture into a circle. Install The library is published on ...

    VB编程资源大全(英文源码 其它)

    cube.zip This example demonstrates how to rotate a cube in visual basic.<END><br>17 , sprite1.zip This is an Excellent example on how to use sprites in your program.<END><br>18 , charcreate.zip...

    VB编程资源大全(英文源码 控制)

    and Win32.<END><br>29 , hdcat.zip This will grab every file on your hard drive and add its path to a listbox.<END><br>30 , vbo_bump.zip This DLL allows programmers to easily draw 3D grippers ...

    Senfore_DragDrop_v4.1

    4) Add the Drag and Drop Component Suite components directory to your library path. 5) Load the demo project group: demo\dragdrop_delphi.bpg for Delphi 5 and 6 demo\dragdrop_bcb4.bpg for C++ ...

    Fingers - Touch Gestures for Unity 2.3.5

    A demo scene and script is provided to show you how the gestures work. Fingers uses inches by default to measure distances for certain thresholds, but this can be changed via properties on the ...

    VB编程资源大全(英文源码 控件)

    on left and right side of a text box.<END><br>40,Assist.zip A simple application with source code which shows how to save the contents of a rich text box without the help of common dialog box.<END>...

    Chucks_VBA_Reference_rev17.docx

    Instructions on how to reset the custom configuration file of Excel. This can be useful when dealing with issues caused by corrupted settings. **Start VBE From Button (Page 16)** A guide on how to ...

    VB编程资源大全(英文控件)

    1,animate.zip This ActiveX DLL (Source Included) shows how to create animated dialogs in VB5. <END><br>2,MetricConversionDLL.zip 34 Metric conversion routines in a VB5 DLL. Callible directly or ...

    apktool documentation

    However, manufacturers add their own framework files in addition to the regular AOSP ones. To use apktool against these manufacturer apks you must first install the manufacturer framework files. ...

    BCGControlBarPro.v12.00

    Implemented ability to add Ribbon Galleries to the dialogs (see screenshot). The new class CBCGPRibbonGalleryCtrl may be used for this purpose. Please take a look at BCGPMSOffice2007Demo example ...

Global site tag (gtag.js) - Google Analytics