Knowledge Base Article
KB10231 - I am trying to rotate a SymbolFont, but the source bombs for some reason. The problems are that the override rotate function for the SymbolFont never gets called and, I think, for some reason the draw routine hard codes the angle to 0. I am sending you the code to show what I am doing.
Try using rotation of MarkerSymbol, like this:
shp.AddPart ;
shp.AddPoint( GisPoint( runSavedSearchQueryOrigin_longitude.AsFloat ...
shp.MarkerSymbol := SymbolList.Prepare('some symbol');
shp.MarkerRotation := Pi/2;
shp.Invalidate;
By-the-way, if you want to use R-Tree then:
layer.UseRTtree := True;
and after any shape modification (adding point), you must call shp.Update.
Created: 2003-11-21, Modified: 2005-09-14
|