Register a Layer
After signing up to be a developer successfully, you should be given the right to access the publishing site. Once this is done, we can follow the 5 steps shown below to create a layer on the publishing site:
- Log in with layar account (https://www.layar.com/accounts/login). This layar account should be verified and with developer role enabled.
- Click on "My layers" button shown next to the user name on top right part of the page.
- Get access to the publishing site environment and "layers" tab is shown by default.
- Click on "Create a layer" button to open the layer creation form (see screenshot below)
This form is used to define and create a layer on the publishing site. All these fields are mandatory. Except that layer name could not be renamed, other fields can be modified in layer editing afterwords.
The following table provides detailed explanation for these fields:
|Layer name||Mandatory (could not be renamed)||
|Title||Mandatory||The text to be displayed in the banner on the right and the title of the layer to be displayed in the layer list on the phone.||maximum 18 characters.|
|Publisher name||Mandatory||Name of the publisher of the layer, is shown in the lists in the Layer Gallery.||By default, layer developer is also the publisher of this layer. Developer first name under account profile is pre-filled here.|
|Layer type||Mandatory / 1||The type of layer, determining how the client should display the POIs: 1 = generic; 2= 2d and 3d objects in 3d space.
This will be used in the future to distinguish different types of layers.
|API endpoint URL||Mandatory||The URL for your web service that provides Spots.
NOTE that only ports 80 (http) and 443 (https) are supported, so URLs with additional port info won't work.
|The URL should be of the form http://example.com/path/to/service Please make sure that you are not using reserved parameters for Layar in API endpoint URL. (please see GetPOIs Request).|
|Short description||Mandatory||The short description of a layer, shown in the lists in the Layer Gallery on the phone.||A very short summary of your layer content with max. 60 characters including spaces.|
|Layar Vison||Mandatory / disabled||Enabling this option will allow you to create a layer with Layar Vision. please check out Layar Vision index page for more information.||Please NOTE that Layar Vision is only available in Layar v6.0 (Android and iOS platforms)|
To get an idea on how they look like on the phone, please check the following screenshot:
- After filling in all the information, click on "create layer" button. Layer is created and the layer editing page is shown.
Click on "back to all layers", the new layer is shown in the layer list.
This is the end of this section. In next section - Edit a layer, we will further discuss how to customize your layer.