ImageEn, unit iexVirtualBitmaps

TIESlippyMap.EnablePin

TIESlippyMap.EnablePin

Declaration

procedure EnablePin(PinLatitude, PinLongitude: double; PinSize: Integer = 48; PinColor: TColor = clRed);

Description

Draws a pin shape at the specified position in decimal degrees.
Pass 0,0 to clear the pin.
Parameter Description
PinLatitude Pin latitude in decimal degrees. Allowed range is between -85 and 85 degrees.
PinLongitude Pin longitude in decimal degrees. Allowed range is between -180 and 180 degrees.
PinSize The width and height of the pin (in pixels)
PinColor The fill color for the pin (border color will be black)

Default: 0

Examples

// Draw a pin on London
TIESlippyMap(ImageEnView1.IEBitmap.VirtualBitmapProvider).EnablePin( 51.503614574056016, -0.12774750793460043, clRed, 32 );
ImageEnView1.Update();

// Clear the pin
TIESlippyMap(ImageEnView1.IEBitmap.VirtualBitmapProvider).EnablePin( 0, 0 );
ImageEnView1.Update();

See Also

PointPosition