Using place types is a great way to keep consistency within your places across your entire organization. Make sure that the same style is used everywhere and change the style of a type in seconds.
Also, place types offers the possibility to add specific structured data to places that can be easily edited in Mapwize Studio and used in your mobile or web app.
Editing place types
Within Mapwize Studio or using the API, you can create and modify place types within your organization.
In Mapwize Studio, the place type editor is located that the organization level, when you are not editing a specific venue.
To use the API, you can refer to the API documentation: https://documenter.getpostman.com/view/3032676/RW1aKg3f?version=latest#976a1ec1-d0d3-4153-8bbc-cfb98aca24de
Place type catalog
A complete set of place types has been created by Mapwize's designers and is available for you to use. You can easily clone a type from the catalog to your organization to make it your own. Then you can edit it according to your needs.
Using place types in the places editor
When creating or editing a place in the places editors, you'll have to select a type. You can select an existing type from your organization or a type from the catalog. If you select a type from the catalog, we'll automatically clone the type to your organization.
Using place types in the places batch edit
When using the batch edit feature, the "placeType" column shows the name of the type of each place. You can modify the place type by changing the name of the type in the column.
You need to use type names that are defined in your organization. The names are case sensitive.
Defining place type-specific data
In the place type editor in Mapwize Studio, you can specify a data model for a place type, that way you can easily integrate Mapwize with data from your own system.
When a place is edited, the place type-specific data will be stored in the place.data json, together with the other custom data of the place. There can be more custom data than those specified in the place type but they will not be validated and will not have a specific editor in Mapwize Studio.
For each piece of data, you can set:
- The name of the key that will be used in place.data
- The type of the data (string, number, boolean or date)
- The default value (optional)
- A regex that the string need to match (optional, for strings only)
- If the property is required
When editing a place, the specified fields will be available in the "place type-specific data" section in the Studio.
The fields will also be editable through the batch edit with dedicated columns. In the batch edit, if you set a value in the column of a specific field that is not defined in the place type of the place, the value will still be added to the place but without validation.
Comments
3 comments
I registered an account in MapWize Studio. However, it says that the account is not linked to an organization and thus cannot be used. How can I create an organization and use the MapWize Studio? Thanks!
I have the same problem as @Alec Yan!
Article is closed for comments.