Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

For some reason, I'm unable to see the graphic layer. Here's the code (assuming GraphicResource is a Graphic Map Resource ) :

Dim gresource As ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource
Dim eglayer As New ESRI.ArcGIS.ADF.Web.Display.Graphics.ElementGraphicsLayer

gresource = MyResourcesManager.GetResource("GraphicResource")

Dim sms As New ESRI.ArcGIS.ADF.Web.Display.Symbol.SimpleMarkerSymbol
Dim newpoint As New ESRI.ArcGIS.ADF.ArcGISServer.PointN
newpoint.Y = SOMEVALUESHERE
newpoint.X = SOMEVALUESHERE

Dim markerpoint As ESRI.ArcGIS.ADF.Web.Geometry.Point = ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Converter.ToAdfPoint(newpoint)

sms.Color = Drawing.Color.Aqua
sms.Width = 90
Dim ge As New ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicElement(markerpoint, sms)
eglayer.Add(ge)

gresource.Graphics.Tables.Add(eglayer)

You help is highly appreciated.

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.