shithub: map

ref: 7b6082bf29c9239d93f33c55103668f7046189ca
dir: /fns.h/

View raw version
GBundle getbundle(GPos pos, int zoom, Point *offset);
GPos getlocation(void);
void tile2gps(double *x, double *y, int z);

int parsepos(char *data, int ndata, GPos *pos, int *zoom);

int handlegeojson(char *data, int ndata);
void rendergeojson(GBundle pos);
void cleargeojson(void);

void lockmapimage(void);
void unlockmapimage(void);

typedef void (*ImageUpdated)(void);
void requestimage(GBundle from, ImageUpdated);

void debugprint(char *fmt, ...);