2 questions:1. What is f_glob supposed to be?2. What is "your number"?
You can try something like this: private void m_map_ExtentChanged(object sender, ExtentEventArgs e) { Envelope pNewEnv = e.NewExtent; double pWidthScreen = m_map.Width * f_glob._pixel_size; double pWidthMap = m_map.Extent.Width; double pScale = pWidthMap / pWidthScreen; foreach (Graphic pGraphic in pGraphicLayer) { PictureMarkerSymbol pSymbol = (PictureMarkerSymbol)pGraphic.Symbol; pSymbol.Width = your number/pScale; pSymbol.Height = your number/pScale; } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.