POST
|
Hi All, Is there a way to calculate the width of text accurately for a TextSymbol? I need to accurately calculate the width to overlay a Edit box over the label (to simulate editing). Using the standard .NET MeasureText call, returns a different width to what is actually rendered on the ESRI surface, hence giving me a larger edit box than needed (lots of extra white space). Is there like an API call to get this value? Any ideas? Thanks
... View more
05-04-2017
03:56 AM
|
0
|
0
|
582
|
POST
|
Hi Michael, Thanks for the reply, I will have a play about with your comments on point 2) and see what I can do with the NormalizeCentralMeridian call. Regards, Dave
... View more
05-02-2017
03:09 AM
|
0
|
0
|
2074
|
POST
|
Hi All, I have noticed an oddity with rendering a TextSymbol whilst it passes across the international Date Line. I have created a CompositeSymbol, consisting of a SimpleFillSymbol and a TextSymbol, then rendered this to the map across the international date line. To see this in action run the attached application and zoom out to the fullest extent, zoom in and out a few times to get it to render incorrectly. After zooming in and out a few times I noticed that the Symbol is rendered way outside the shape appearing in the middle of the map. Firstly I need to understand why it renders two TextSymbols in GraphicsRenderingMode.Static and only one in GraphicsRenderingMode.Dynamic, and also why its rendered out of bounds sometimes? Bug? I have attached two screenshots outlining the issue, and a sample application to demo the issue. Note there is a button at the top to switch GraphicsRenderingMode to highlight that Dynamic works fine, but Static exhibits the described behaviour. Also you will need to run nuget to get the latest ArcGIS packages to make it compile (adding this in the project makes the Zip file 100+ mb) Any ideas what is going on? Is this a known issue? Any help appreciated. Regards, Dave
... View more
04-27-2017
06:21 AM
|
0
|
3
|
2580
|
POST
|
Hi All, I have noticed some odd rendering differences when using a GraphicsOverlay with Dynamic vs Static GraphicsRenderingMode setting with Geometries across the international date line. I have a small application to demo this effect (attached) - The first map I connected to was the following: http://www.arcgis.com/home/item.html?id=2d6fa24b357d427f9c737774e7b0f977 The application renders a Polygon over the international Date line with a GraphicsOverlay and GraphicsRenderingMode as Static - the polygon is altered and looks almost as if its been normalised (and looks like a folded book with incorrect y coordinates). Switching to Dynamic renders this correctly as a Square polygon with no changes. I tried the same on another map (http://www.arcgis.com/home/item.html?id=ee80391f71a4452ebaa19ad518db3b8d ) and noticed different results again. The polygon was rendered with a line down the centre (almost like its been normalised for the date line - eg. GeometryEngine.NormalizeCentralMeridian) - this happens on both Dynamic and Static for this map. I have attached some screenshots and a demo application to demonstrate what is going on, if you need to replicate this quickly. Does anyone have any explanation as to why Static vs Dynamic has differences when rendering a simple polygon? Any help would be appreciated. Our deployed application uses static for rendering due to issues with dynamic rendering and hence we found this oddity. Regards, David
... View more
03-28-2017
06:52 AM
|
0
|
0
|
831
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|