ThinkGeo.com    |     Documentation    |     Premium Support

BUG - PointStyle with GeoFont?

Today I have tried to use an PointStyle with an GeoFont. I think I have found an bug...


In the documentation stays:


characterFont 
This parameter is the font used to select the character from. 
characterIndex 
This parameter is the index to the character in the font chosen. 
characterSolidBrush 
This parameter is the SolidBrush used to draw the character.
$$Return_Type$$


%%comment%%
" blankformat="
" -->

My source code is:

 


ShapeFileLayer testLayer = new ShapeFileLayer(MapPath("~/Shp/test.shp")); 

testLayer.Name = "Test"; 

testLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; 

testLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle 

    ( 

    new GeoFont("Verdana", 10), 

    76, 

    new GeoSolidBrush(GeoColor.StandardColors.Magenta) 

    ); 



testLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.SymbolSize = 50; 



this.map.StaticLayers.Add(testLayer.Name, testLayer);

I set the Font "Verdana" (I tryed Arial and Symbol to) and the character index 76 - but I see always the Font-Family WinDings (the smiley ":-(")!


Why I can set the font family, but the PointStyle do not use the given family? And is it correct, that I can set an font size, but the Symbol is very small - so I must set the SymbolSize to resize the PointStyle size... I excepted sth. else.


Thank you for your help


Anke



Anke, 
  
 Thanks for the post!  
  
 You are right this is a bug. We will solve this in the next Beta, which will be released around the beginning of next month.  
  
 Sorry for the inconvenience and thanks for the attention to Map Suite. 
  
 Ben.