ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Map functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Limits the geographic area displayed in the Map control.
Example
p1 is geoPosition
p1.Latitude = 0
p1.Longitude = 0
p2 is geoPosition
p2.Latitude = 3
p2.Longitude = 3
MapLimitArea(MAP_MyMap, p1, p2)
Syntax

Defining the geographic area Hide the details

<Result> = MapLimitArea(<Map control> , <North West position> , <South East position>)
<Result>: Boolean
  • True if the the limits of the displayable area have been set,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Map control>: Control name
Name of the Map control to be used. If this parameter corresponds to an empty string (""), the Map control to which the current event belongs will be used.
<North West position>: geoPosition variable
Name of the geoPosition variable that corresponds to the North West point of the area displayed in the Map control.
<South East position>: geoPosition variable
Name of the geoPosition variable that corresponds to the South East point of the area displayed in the Map control.

Deleting the geographic area Hide the details

<Result> = MapLimitArea(<Map control>)
<Result>: Boolean
  • True if the the limits of the displayable area have been removed,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Map control>: Control name
Name of the Map control to be used. If this parameter corresponds to an empty string (""), the Map control to which the current event belongs will be used.
Remarks
  • Depending on the zoom level, the Map control can display an area larger than the specified area, but the center of the map will always be within the area specified as parameter.
  • When MapLimitArea is called, the map displayed in the Map control will automatically be positioned on the specified area.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help