-
Notifications
You must be signed in to change notification settings - Fork 1
/
json.php
29 lines (24 loc) · 1.48 KB
/
json.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
$markers = array();
$markers[0]['lat'] = 3.152864;
$markers[0]['lng'] = 101.712624;
$markers[0]['title'] = 'gSpot - AJAX Example';
$markers[0]['content'] = '<a href="https://github.com/msmalley/gSpot">gSpot</a> also features the ability to collect AJAX markers from a defined location.<br />As simple as:<br /><code><div id="gspot-bottom-right" data-ajax="json.php"></div></code>';
$markers[0]['this_id'] = 'a1';
$markers[0]['slug'] = 'https://github.com/msmalley/gSpot';
$markers[0]['open'] = true;
$markers[1]['lat'] = 3.1;
$markers[1]['lng'] = 101;
$markers[1]['title'] = 'Another AJAX Example';
$markers[1]['content'] = '<a href="https://github.com/msmalley/gSpot">gSpot</a> also features the ability to collect AJAX markers from a defined location.<br />As simple as:<br /><code><div id="gspot-bottom-right" data-ajax="json.php"></div></code>';
$markers[1]['this_id'] = 'a2';
$markers[1]['slug'] = 'https://github.com/msmalley/gSpot';
$markers[1]['open'] = false;
$markers[2]['lat'] = 3;
$markers[2]['lng'] = 100;
$markers[2]['title'] = 'gSpot - AJAX Example Explained';
$markers[2]['content'] = '<a href="https://github.com/msmalley/gSpot">gSpot</a> also features the ability to collect AJAX markers from a defined location.<br />As simple as:<br /><code><div id="gspot-bottom-right" data-ajax="json.php"></div></code>';
$markers[2]['this_id'] = 'a1';
$markers[2]['slug'] = 'https://github.com/msmalley/gSpot';
$markers[2]['open'] = false;
echo json_encode($markers);