{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural \f0\fs24 \cf0 The sample code provided here shows how to add actions to POIs in a geolocation layer which returns POIs at different geo locations.\ \ There are 9 files in total: \ \b \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \b0 \cf0 1. \b secondTutorial_APIv6_sqlQuery.sql \b0 - The sql query to set up the database. You can see how the database is constructed. \b NOTE \b0 if you already created the database using the query from first Tutorial, please make sure you do not add duplicated information to the database. \ \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural \cf0 2. \b config.inc.php \b0 - contains all the database configuration settings. \b Please specify them based on your database settings. \b0 \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 \ Two versions of sample code: \ \ \b 1) Simplified version \b0 \ 3. \b secondTutorial_Action_simplified.php \b0 - A limited version for adding actions to POIs in a geolocation layer. It contains the code provided in the Tutorial itself. You can upload this file and put the link in the API endPoint URL on the publishing site. \ \ \b 2) Generic and complete version \b0 \ The following files can be used to provide a more generic and complete version for creating a simple geo-location layer: \ 4. \b abstract_class.php \b0 \ 5. \b commonFuncs.php \b0 \ 6. \b POI.php \b0 \ 7. \b Layer.php\ \b0 8. \b Action.php \b0 \ 9. \b secondTutorial_Action_complete.php \b0 - The link to this file should be put in the API endpoint URL field on the publishing site. In this version, layer level actions are also supported. \b \ \b0 \ You can simply upload all files from 2-9 to the same directory on your server. \ \ }