

To place the pin at the user's current location, set this property to Location.Longitude. Sets the longitude coordinate of the current location pin that the map shows if Show current location is enabled. Properties Advanced: CurrentLocationLatitude To place the pin at the user's current location, set this property to Location.Latitude. Sets the latitude coordinate of the current location pin that the map shows if Show current location is enabled. Sets the zoom level if Use default location is enabled, from 0 to 22. Sets the longitude coordinate the map shows if Use default location is enabled. Sets the latitude coordinate the map shows if Use default location is enabled. Initializes the map at a default location. Shows information about a mapped location when the user selects it ( On click) or points to it ( On hover). Properties Advanced: BorderStyle, BorderThickness, BorderColorĭetermines whether the control allows user input ( Edit), only displays data ( View), or is disabled ( Disabled). Places the upper-left corner of the map at the screen coordinates specified in x and y.ĭetermines the size of the map using the pixel values provided in Width and Height.ĭetermines the corner radius of the map border.ĭetermines the style, width, and color of the map border. Options: Road, Night, Road shaded relief, Satellite, Satellite road labels, High contrast light, High contrast dark, Grayscale light, Grayscale dark.ĭetermines the map's transparency, from 0 (opaque) to 100 (transparent). Leave this property off to display the map in road view. The map control has six different types of properties:ĭisplays the map in satellite view. Some properties are only available on the Advanced tab. PropertiesĬhange a map's behavior and appearance using properties.

When both latitude or longitude and an address is given for a single pin, the map control will prioritize using the latitude or longitude to avoid geocoding the address. You can save geocoded addresses back to your data source. We recommend not using addresses where possible. The pin limit is lower for addresses as the map needs to geocode these addresses into latitude or longitude to display them.

Set the ItemLatitude property to "Latitude"Įach map control can display up to 5000 pins from latitude or longitude and 50 pins from addresses. Set the ItemLongitude property to "Longitude" To display these as labeled pins on the map: The Properties section contains additional information about these data sets and their related properties.įor example, if you had a table collection named Locations with Name, Longitude, and Latitude columns: Name ItemLatitudes, ItemLongitudes, etc for pins). The data source is set in the Items property (Items for pins, RouteWaypoints_Items for routes, Shape_Items for shapes) and the relevant columns are set in the related properties (e.g. Pins, routes, and shapes are data set properties that need to both identify a data source, which is a table from a collection or connector, and the relevant columns.
APPSTUDIO MAP CODE
Otherwise, this is an impressive code base for the starting point for a custom app.Easily add an interactive map to your canvas apps. We are thinking it is an internationalization issue with the strings, but can't find where "PL" would replace "OK". We can get a standard MessageDialog to work, but not using the customized messageDialog in the AppStudio.

At first we thought it was some of the customization, but we tested with a non-customized version with the same results. It looks fine when testing on the desktop player. This happens using both the AppStudio Player, as well as when deploying to a device.
APPSTUDIO MAP OFFLINE
This particular case happens immediately after downloading an offline map.
APPSTUDIO MAP ANDROID
While testing, we noticed the "OK" button from messageDialog (MessageDialog.qml) does not display the default text correctly in some cases when testing on at least Android (we did not try iOS), and displays "PL" as in the image below. I recently downloaded AppStudio 4.0 and modified the Map Viewer sample as the base to a custom app my team is working on.
