Add a Map tip to a graphic layer

418
1
12-26-2012 05:40 AM
JamesFitzgerald
Occasional Contributor II
Hello

I want to add a map tip to a graphic layer. My idea is to add a map point to Silverlight app by VB and XAML coding. I have had luck with calling a text file and adding a map point and map tip with information important to map point. This may not be the easiest method. Looking for a better way.

Problem: I have had no luck in finding a way to add a map point without calling a text file. Is there a way to add a graphic Layer and programmetrically adding a map tip to the grahic layer.

Thanks
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Is there a way to add a graphic Layer and programmetrically adding a map tip to the grahic layer.


Sure.
You can look at this sample http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#AddGraphics that demonstrates how to add graphics by code.

Then you can look at these samples (http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#WebMapFeatureServicePopups and http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#WebMapKML) that create maptip by code;
0 Kudos