Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (29 sloc) 1.055 kb
#ifndef __NODE_MAPNIK_GRID_VIEW_H__
#define __NODE_MAPNIK_GRID_VIEW_H__
#include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
#include <mapnik/grid/grid_view.hpp>
#include <mapnik/grid/grid.hpp>
#include <boost/shared_ptr.hpp>
using namespace v8;
using namespace node;
typedef boost::shared_ptr<mapnik::grid_view> grid_view_ptr;
class GridView: public node::ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor;
static void Initialize(Handle<Object> target);
static Handle<Value> New(const Arguments &args);
static Handle<Value> New(boost::shared_ptr<mapnik::grid> grid_ptr,
unsigned x,unsigned y, unsigned w, unsigned h);
static Handle<Value> encodeSync(const Arguments &args);
static Handle<Value> encode(const Arguments &args);
static Handle<Value> width(const Arguments &args);
static Handle<Value> height(const Arguments &args);
GridView(grid_view_ptr gp);
inline grid_view_ptr get() { return this_; }
private:
~GridView();
grid_view_ptr this_;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.