22 #include "repo_node.h"
29 #define REPO_NODE_MAP_LABEL_APIKEY "apiKey" //FIXME: Temporary measure until we change the way x3dom reads google map tiles
30 #define REPO_NODE_MAP_LABEL_WIDTH "width"
31 #define REPO_NODE_MAP_LABEL_YROT "yrot"
32 #define REPO_NODE_MAP_LABEL_TILESIZE "worldTileSize"
33 #define REPO_NODE_MAP_LABEL_LONG "long"
34 #define REPO_NODE_MAP_LABEL_LAT "lat"
35 #define REPO_NODE_MAP_LABEL_MAP_TYPE "maptype"
36 #define REPO_NODE_MAP_LABEL_ZOOM "zoom"
37 #define REPO_NODE_MAP_LABEL_TRANS "trans"
38 #define REPO_NODE_MAP_LABEL_TWO_SIDED "twosided"
39 #define REPO_NODE_MAP_DEFAULTNAME "<map>"
65 return getStringField(REPO_NODE_MAP_LABEL_APIKEY);
77 return hasField(REPO_NODE_MAP_LABEL_TWO_SIDED);
88 float twoSided =
false;
89 if (hasField(REPO_NODE_MAP_LABEL_TWO_SIDED))
91 twoSided = getField(REPO_NODE_MAP_LABEL_TWO_SIDED).Double();
102 return getStringField(REPO_NODE_MAP_LABEL_MAP_TYPE);
109 float getLat()
const;
115 float getLong()
const;
121 float getTileSize()
const;
127 uint32_t getWidth()
const;
133 float getYRot()
const;
139 uint32_t getZoom()
const;
148 virtual bool sEqual(
const RepoNode &other)
const;
Definition: repo_node_map.h:27
Definition: repo_connection_pool_mongo.h:32
float getTwoSidedValue() const
Definition: repo_node_map.h:86
std::string getMapType() const
Definition: repo_node_map.h:100
Definition: repo_node_utils.h:67
std::string getAPIKey() const
Definition: repo_node_map.h:63
Definition: repo_node.h:33
Definition: repo_bson.h:53
bool isTwoSided() const
Definition: repo_node_map.h:75