Options > Maps > Map Projections > Adding Graphic Objects on Top of an Imported Map
Adding Graphic Objects on Top of an Imported Map
This section shows how to import an .ilv map file whose projection is now into a Views manager, and how to lay graphic objects over that map. It is based on an example that loads a map of the USA projected with a Lambert Azimuthal Equal Area projection into a manager, and adds cities on top of the map. The geographic coordinates indicated by the mouse pointer as well as the name of the cities pointed to are displayed in text fields at the bottom of the window.
Complete Code Example
The complete source code for this example can be found in the following file:
<installdir>/samples/maps/userman/src/useviews.cpp
The following sections provide comments on the code in this example:
*Running the Example Application
*Defining the Sample Class, the Main Function, and the Constructor
*Getting Map Information
*Adding Cities
*Showing Mouse Position
Published date: 05/24/2022
Last modified date: 02/24/2022