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; } }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.