MapWindow Developer Team : MapWindow Discussion Forum
I've comitted changes faciliating new labels (Map.ShapeDrawingMethod = dmNewWithLabels) for images and drawing layers. The layers can be managed through the object Labels class in both cases. To access labels use: Image.Labels //for images; Map.DrawingLab
Labels for images and drawing layers are availible
Posted by: Sergei ()
Date: May 23, 2010 09:51AM

I've comitted changes faciliating new labels (Map.ShapeDrawingMethod = dmNewWithLabels) for images and drawing layers.

The layers can be managed through the object Labels class in both cases. To access labels use:
Image.Labels  //for images;
Map.DrawingLabels(DrawingLayerIndex)  //for drawing layer

For images the check of extents isn't implemented, i.e. labels can be added outside extents of image and will be drawn there even if the parent image doesn't fall in the visible extents.

For drawing layer labels will be drawn immediatelly after parent layer, Labels.VerticalPosition = vpAboveAllLayers won't work.

Sample code is here: [www.mapwindow.org]

Sergei

Options: ReplyQuote
Re: Labels for images and drawing layers are availible
Posted by: RalphElsaesser ()
Date: June 08, 2010 06:11AM

Thank you Sergei,

Unfortunately I cannot find the method axMap1.get_DrawingLabels(drawingHandle). I found a new ocx in under WeeklyBuilds/LatestPatches.zip (28.05.2010) and created new interop dlls. But the map component does not show me the requested function.

There is a property called axMap.DrawingLayer but accessing it does not work. Where can I find the OCX with the changes?

Ralph

Options: ReplyQuote
Re: Labels for images and drawing layers are availible
Posted by: Sergei ()
Date: June 09, 2010 11:05AM

Ralph,

I hardly can help here. I've commited changes and it should be in the latest build. Are you sure that you created Interop dlls properly?

Regards,
Sergei

Options: ReplyQuote
Re: Labels for images and drawing layers are availible
Posted by: RalphElsaesser ()
Date: June 10, 2010 06:24AM

OK I got it working. It was a registration issue. Thanks a lot, it labels like a charm.

Ralph

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: