Stylefactory, Style descriptions, Areastyle – Pitney Bowes MapXtreme User Manual

Page 289: Bitmappointstyle, Areastyle bitmappointstyle

Advertising
background image

Chapter 15: Stylizing Your Maps

Style Descriptions

MapXtreme v7.1

296

Developer Guide

MapXtreme comes with a number of sample styles to get you started. There are more than 170
interior fill patterns, approximately 120 line style patterns, and approximately 70 bitmap point style
images. You can create bitmap images in any application that can create bitmaps, like MS Paint or
Paint Shop Pro. There are virtually no size limitations on the image; however, the ability of
MapXtreme to display it will depend on available memory. The image does not have to be square
and can also have up to 24-bit color depth. To make sure the image is displayed at the height and
width you want, select the 'Display at actual size' option for BitmapPointStyles. Once the image is
created, place it in the CustSymb directory. Custom symbols are located in C:\Program
Files\Common Files\MapInfo\MapXtreme\7.x.x\CustSymb folder.

Additionally, MapXtreme ships with style controls and dialogs that allow you to rapidly add them to a
form or web application. See the ChangeStyles and FeatureStyles sample applications under the
Samples folder which bring together all the style classes discussed in this chapter. For more
information on form style controls and dialogs see

Chapter 7: Desktop Applications, Controls,

Dialogs, and Tools

. For more on web controls see

Chapter 5: Web Applications, Controls, and

Tools

.

For visual representations of supported style elements, see

Appendix F: Style Lookups

.

StyleFactory

A StyleFactory class is available from MapInfo.Styles that contains methods to generate MapInfo
Style objects from various types of style parameters. For example, MapInfo.Styles.
StyleFactory.FromMBstring takes a MapBasic style clause as string input and returns a
CompositeStyle. See the online Developer Reference for more information and a code example.

Style Descriptions

AreaStyle

The AreaStyle class contains style properties used for drawing regions. Regions are drawn using a
BaseLineStyle and BaseInterior.

BitmapPointStyle

The MapInfo BitmapPointStyle class contains style properties for drawing points using custom
bitmaps. Use this class for marking point locations. BitmapPointStyle is one of three types of
supported point styles, the others being FontPointStyle and SimpleVectorPointStyle.

BitmapPointStyle has a ShowWhiteBackground property; if set to false, any white pixel in the bitmap
is transparent. By default, ShowWhiteBackground is set to false. For example, you may wish to use
your corporate logo to represent office locations worldwide, but do not want to cover up other map
features in the immediate area. There are other settings that control how BitmapPointStyles are
displayed. See the BitmapStyles enumeration in the online help for more details.

Advertising