PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the details of the error, use ErrorInfo.
<Map control>: Control name
Name of Map control to use. 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 the details of the error, use ErrorInfo.
<Map control>: Control name
Name of Map control to use. 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 control will automatically be positioned on the specified area.
Business / UI classification : UI Code
Component : wd260obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment