This project is read-only.

tkPointShapeType arrow

Mar 23, 2011 at 12:02 PM

hi,

how can i create a shape with this type of point MapWinGIS::tkPointShapeType::ptShapeArrow ??

thanks

Mar 27, 2011 at 1:46 PM

Seum, you need to set:

options.PointType = MapWinGIS.tkPointSymbolType.ptSymbolStandard;            

options.PointShape = MapWinGIS.tkPointShapeType.ptShapeArrow;

In the latest binaries (03 march) ShapeDrawingOptions.SetDefaultPointSymbol method is available which allows to do it in a single call.

Also check a scheme for ShapeDrawingOptions class here: http://mapwingis.codeplex.com/wikipage?title=Class%20schemes it describes how the properties affect each other.

Mar 28, 2011 at 9:49 AM

sleschinski,

that's my code:

this->map->ShapeDrawingMethod = MapWinGIS::tkShapeDrawingMethod::dmNewSymbology;
        MapWinGIS::ShapeDrawingOptions^ opt =  this->platformShpFile->SelectionDrawingOptions;
        opt->SetDefaultPointSymbol(MapWinGIS::tkDefaultPointSymbol::dpsArrowUp);

 

i'm using the 3march ocx version...

i don't see anything...except the label (drawn after the code above)

what's the problem?

Mar 28, 2011 at 12:31 PM

Are you sure that you actually have selected symbols in your shapefile?

Mar 28, 2011 at 12:51 PM

what do you mean with selected symbols?

Mar 28, 2011 at 4:52 PM

Selected shapes. Can be set through Shapefile.ShapeSelected(Index).  SelectionDrawingOptions are applied to those only, otherwise Shapefile.DefaultDrawingOptions are used.