IMap

The IMap interface is part of FalconView's AutomationInterface. It allows out of process applications or in-process COM objects to change display settings, get elevation data, generate pixmaps of map data and get Mouse Click information.

IMap methods fall in the following general categories:

  • Map Type Information
    • GetMapDisplayString
    • QueryMapTypes
  • Map Creation
    • CreateFixedSizeMapFromGeoBounds
    • CreateMap
    • CreateMapFromGeoBounds
    • SetCibParameters
  • Map Information
    • CalcPixmapGeoCorners
    • CalcPixmapSizeFromGeoBounds
    • GetBlockDTEDinFeet
    • GetDegreesPerPixel
    • GetElevation
    • GetLatLonPositionInMap
    • GetMapDimensions
  • Mouse Click Requests
    • CancelClickRequest
    • GetGeoCircleBounds
    • GetGeoCircleBoundsCallback
    • GetGeoRectBounds
    • GetGeoRectBoundsCallback
    • GetMouseClick
    • GetMouseClickCallback
    • GetSnapToInfo
    • GetSnapToInfoCallback
    • SetDispatchPtr
  • Miscellaneous
    • CAPSPrint

The following code is a bit rough around the edges but it creates an Active X map control in Visual Basic 6.0. The code shows how to work with map scales and uses the "CreateMap" function call in VB by unpacking the safe array into a GDI DC.

Thanks, Grumpy, for the VB bitmap code.

-- Main.ChrisBailey - 16 Jun 2005

Attachments