Graphic g = new Graphic() { Geometry = new MapPoint(x, y, MyMap.SpatialReference) }; g.Attributes["CurrentDate"] = DateTime.UtcNow; g.Attributes["Greeting"] = "Hello, world!"; g.Attributes["Distance"] = 123.45;
Do you mean how to add attributes to a graphic that has MapPoint geometry? Graphic g = new Graphic() { Geometry = new MapPoint(x, y, MyMap.SpatialReference) }; g.Attributes["CurrentDate"] = DateTime.UtcNow; g.Attributes["Greeting"] = "Hello, world!"; g.Attributes["Distance"] = 123.45;
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.