-->
اكتب ما تود البحت عنه و اضغط Enter
معذرة، فالصفحة التي تبحث عنها في هذه المدونة ليست متوفرة.

الأربعاء، 13 أبريل 2016

Creating a marker point

Creating a marker point
In this section, we will write code to add a marker point on the map to display
a picture of a cell phone. We can actually add a picture to the map by using the
picture marker element. So far we have managed to create a tool and get the x and
y coordinates of the mouse-click location. Then we learned how to create a point
geometry using those coordinates.
Follow these steps to create a point on the map:
1. Open our TelZaViBa project from the
C:\ArcGISByExample\telzaviba\Code if you have closed it.
2. We will now load the picture of the cell phone located in
C:\ArcGISByExample\telzaviba\Icons\Cell-phone.png and
add it to the map by creating a marker element and using the point
we created in the previous section as the geometry:
Protected Overrides Sub OnMouseUp(arg As ESRI.ArcGIS.Desktop.
AddIns.Tool.MouseEventArgs)
Dim pDocument As IMxDocument = My.ArcMap.Application.Document
Dim pPoint As IPoint = pDocument.ActiveView.ScreenDisplay.
DisplayTransformation.ToMapPoint(arg.X, arg.Y)
Dim pElement As IElement = New MarkerElement
pElement.Geometry = pPoint
Dim pMarkerElement As IMarkerElement = pElement
Dim pPictureMarkerSymbol As IPictureMarkerSymbol = New
PictureMarkerSymbol
 pPictureMarkerSymbol.CreateMarkerSymbolFromFile(esriIPictu
reType.esriIPicturePNG, "C:\ArcGISByExample\telzaviba\Icons\Cell-
phone.png")
pPictureMarkerSymbol.Size = 20
pMarkerElement.Symbol = pPictureMarkerSymbol
pDocument.ActiveView.GraphicsContainer.AddElement(pElement, 0)
pDocument.ActiveView.Refresh()
End Sub

شارك الموضوع عبر :

كاتب الموضوع :

ليست هناك تعليقات:

إرسال تعليق

بث مباشر

انتظروا البث المباشر للإجابة على تساؤلاتكم

730

بتوقيت مصر

830

بتوقيت مكة المكرمة

مدونة بحث علمي
مدونة بحث عملي تهتم بطرح العديد من البحاث العلمية و المواضيع المهمة و المفيدة التي يحتاجها كل مدون و او مصمم و كل شخص باحث عما يفيده في احتياجاته لتطوير انفسة او البرامج التي يبحث عنها اصحاب مجالات المختصة في جميع التخصصات المختلة هدف الموقع تقديم الخدمات و المساعدات في التطوير و التصميم و كل شئ تقريبا و حظا موفق مدونة بحث عملي
للإتصال بما :Ahmedragab9497@gmail.com
جميع الحقوق محفوظة ل famous egypt

تصميم و تكويد   احمد رجب