# MSS - Google Maps

{% hint style="success" %}
The functions presented in this area are common to versions 5.0 and 5.1 of the MSS.
{% endhint %}

**P\_GMAPS\_LoadMap**

This action set creates the file Temp\_Map\_File.html in PFOLDER with HTML to display the map in a Web Control. The base HTML is in the MapTemplate\_New\.html file that is in the FilesToSend of the Framework project.

The input parameters are:

* **inMyLocation\_Latitude** - Latitude of “my location”
* **inMyLocation\_Longitude** - Longitude of “my location”

If the coordinates are valid, the map will show a green flag.

* **inShowPoint** – If it shows a point (used in prospecting to show the location search point and in customers to show the customer's location), the possible values are:
  * 1 - Shows point
  * 0 - Do not show
* **inPoint\_Latitude** - Point latitude&#x20;
* **inPoint\_Longitude** - Point longitude&#x20;
* **inCanChangePointLocation** - If the point on the map can be repositioned elsewhere (used on clients to change the client's location), the possible values are:
  * 1 - You can change the location of the point&#x20;
  * 0 - You cannot change&#x20;
* **inZoom** - Zoom value to apply on the map

Show multiple points on the map:

* **inPointsList\_Latitude** - Latitudes of points separated by SEP\_ACL ( ASCII 7 )
* **inPointsList\_Longitude** - Longitudes of points separated by SEP\_ACL ( ASCII 7 )
* **inPointsList\_Title** - Point descriptions separated by SEP\_ACL ( ASCII 7 )
* **inPointsList\_Icon** - Dots icons separated by SEP\_ACL ( ASCII 7 )
* **inPointsList\_GooglePlacesID** - PlacesID dos pontos separadas por SEP\_ACL ( ASCII 7 )
* **inPointsShowLabels** - If the point labels are shown (text above the point to identify the location), the possible values are:&#x20;
  * 1 - Show labels&#x20;
  * 0 - Do not show

Result:&#x20;

This action set returns 2 values:

* **Result**
  * 0 - Error&#x20;
  * 1 - OK&#x20;
* **MapFile** - Generated file name

{% hint style="info" %}
There is no parameter for the Google Maps key, because it is loaded into the action set.
{% endhint %}

The template has the setCenter function that takes as parameters the latitude and longitude of the location you want to appear centered on the map, zoom applied in this case is fixed and is 16.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/mss-extensibility/mss-google-maps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
