View Single Post
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#156
Originally Posted by teamer View Post
i will try to implement this by my self , but i will need some help finding stuff in the code , first of all , where is the functions that gets the POIs ? 2nd , how can i add a new button and read gps coordinates when clicking on it ?

i still didn't see the code , just give me the index.html file with the line numbers of those functions
I've actually put little comments in the code to help me find stuff

Line 27111 (commented //IMPORTANT) is the code to make a new POI button.
Line 17835 (commented //HERE HERE!) is the showAllCategories function.
As for getting the GPS coordinates, it depends on where you are in the code etc, but in my last upload, I made a global variable called "currentPosGlobal" which holds the GPS coordinates (at least I hope so). You can use that for a quick method.

Otherwise search for the commented code in the index.html file. It'll be before the important changes that have been made/added
 

The Following 2 Users Say Thank You to Blaizzen For This Useful Post: