Global map
The Map function is available on from the Home screen of Resco Mobile CRM app. Entities that have GPS coordinates can be displayed on the map.
See also:
- For information about how to use maps in the app, see Map and route planner.
- For information about how to add GPS coordinates to various entities, see Geocoding.
- For information about adding a map tab to your form, see Add map to form. Unlike global maps accessible from home, form maps can display records from a single entity only.
Configuring map views
You can define multiple different map views. Each of the maps must be added separately to the Home screen if you want them displayed.
To create or edit maps:
- Edit an app project in Woodford.
- Select Global Map from the Project menu.
- Click New and enter a name to create a new map.
- Double-click an existing map to edit it.
- Edit the details of the map view in the Edit Map window.
- On the Views tab, add or delete entities that should be available. Click Initial View for entities that you want to be displayed by default. App users can modify the selection in the app.
- On the Setup tab, configure the start map location and zoom level. You can also configure whether to aggregate and expand map pins.
- Click Save & Close.
To add maps to the home screen:
- Select Home from the Project menu.
- Select the map from the Available Items pane and click Add.
- Click Save.
The map settings defined for global map also apply to other parts of the application, for example Mobile Audit Analysis.
Custom map pins
You can set the map pin for different records, according to the field difference. In this case it is an option set. Let’s demonstrate it on the field Preferred Method of Contact on an Account entity.
Creating a new style
You need to create a new style. Styles allow you to define where the map pin images are taken from. First, create a new style to make it easier in the future. Or you can use a predefined one.
- Select Account entity from the Project menu.
- Click Show UI and double-click the view used on the global map to open it for editing.
- Click Edit Styles.
- Select ImageCellStyle and click Add.
- Select the new style and name it, for example Map Pins.
- Use the FormatString parameter to tell the application how the picture or map pin is named and where it is taken from, i.e. where it is stored; for example
Map_Pins.{0}.png
. You just need to select the folder (in Images section of the project), where you custom pins shall be stored (each picture added to the project needs to be in png format). - Click Save & Close to close the styles editor.
Note | Styles are global, you can use this style also for other pins on different views. |
Adding the style to view
Now update the view to add custom map pins.
- Click Add Map Pin to add a static map pin.
- Select the pin in the Designer pane to display its properties.
- In the Properties pane:
- Change Binding to Value.
- Click Select... and choose Preferred Method of Contact.
- As Style, select the name of your new style, for example Map Pins.
- Click Save & Close to close the view designer.
Adding the images
You need to add the custom map pin images to your project.
- Select Images entity from the Project menu.
- Click Add Directory and name it. Use the exact name as used when creating the style, for example
Map_Pins
. - Click Add to add images. As name, use the values (options) available in the Preferred Method of Contact drop down list, for example Any, Mail, Phone, etc. Click the placeholder icon to upload images. Then click Add.
Using the view in global maps
As the last step, make sure that the view is used by global maps.
Not all entities have GPS coordinates as fields. However, they might have a related entity or parent entity that does include the fields. For example, Opportunity entity does not have address fields, but Lead does. Opportunity is linked to Lead by the field Originating Lead, and we can use that to find the lead and use its location.
- Select Opportunity entity from the Project menu.
- Click Show UI and double-click the view used on the global map to open it for editing.
- Click Select Fields and expand Lead and select the latitude and longitude fields, then click OK.
- Click Save & Close to close the view designer. The Opportunity view now includes GPS coordinates and can be displayed on maps.
- Select Global Map from the Project menu.
- Edit the map and add the Opportunity entity and the appropriate view to the map.
- Click Save & Close to close the Edit Map window.