Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
layarmmo-layer [2012/06/01 16:29]
matthewleach Main bulk of instructions added
layarmmo-layer [2012/11/20 15:27]
matthewleach Minor correction
Line 20: Line 20:
 The Layar mobile app uses the following sequence: The Layar mobile app uses the following sequence:
   - The user chooses which layer they want to use.   - The user chooses which layer they want to use.
-  - The app contacts Layar, who provide details about the layer (author, description,​ etc.) and the URL of your server. +  - The app contacts ​to Layar, who provide details about the layer (author, description,​ etc.) and the URL of your server. 
-  - When the layer actually loads the app sends some parameters to your server (phone'​s GPS location, ​direction facing, etc.). +  - When the layer actually loadsthe app sends some parameters to your server (phone'​s GPS location, ​radius of their search, etc.). 
-  - Your server returns a list of things to be displayed (hotspots), and confirmation that everything went OK.+  - Your server returns a list of things to be displayed (hotspots), and hopefully ​confirmation that everything went OK.
  
-The code at the top of the page does that last step; but with an empty list of hotspots.+The code at the top of the page does that last step; but with an empty list of hotspots ​(the locations where there'​ll be some AR).
  
  
Line 31: Line 31:
 The first thing that you need to do is decide on a unique name for your layer. ​ Once you've got one, you can setup the server side. The first thing that you need to do is decide on a unique name for your layer. ​ Once you've got one, you can setup the server side.
  
-  - Copy and paste the code above into a text editor, change the text: //​layer-name//​ to the name you've chosen, and the file with a php extension.+  - Copy and paste the code above into a text editor, change the text: //​layer-name//​ to the name you've chosen, and save the file with a php extension.
   - Upload the file to your server.   - Upload the file to your server.
   - Check the URL to your file by visiting it in a web browser. ​ You should only see the text that is inside the single quote marks.   - Check the URL to your file by visiting it in a web browser. ​ You should only see the text that is inside the single quote marks.
Line 40: Line 40:
   - Once you've logged in, click on the //My Layers// button in the top-right.   - Once you've logged in, click on the //My Layers// button in the top-right.
   - Click on the //Create a new layer!// button.   - Click on the //Create a new layer!// button.
-  - In the panel that pops-up enter the name that you chose, title, and description. ​ The API endpoint is the URL to your file, and you want the //3D and 2D objects in 3D space// option.+  - In the panel that pops-up enter the name that you chose, title, and description. ​ The API endpoint is the URL to your file, and you want the //3D and 2D objects in 3D space// option.  If the name that you want is already taken, then you'll need to come up with another one.  Just remember that the name in the PHP file has to match the one in Layar'​s listing.
   - Click the button to //Create layer//.   - Click the button to //Create layer//.