[libchamplain] Use memhis_map_get_bounding_box
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain] Use memhis_map_get_bounding_box
- Date: Sun, 24 Jan 2010 20:12:31 +0000 (UTC)
commit 96e0f3c8650e8500908d62b8088586f847f7a094
Author: Simon Wenner <simon wenner ch>
Date: Thu Jul 30 23:36:38 2009 +0200
Use memhis_map_get_bounding_box
champlain/champlain-local-map-data-source.c | 7 ++-----
champlain/champlain-network-map-data-source.c | 7 ++-----
2 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/champlain/champlain-local-map-data-source.c b/champlain/champlain-local-map-data-source.c
index 016dfec..e6cf210 100644
--- a/champlain/champlain-local-map-data-source.c
+++ b/champlain/champlain-local-map-data-source.c
@@ -136,12 +136,9 @@ champlain_local_map_data_source_load_map_data (ChamplainLocalMapDataSource *self
priv->map = map;
- // TODO: memphis needs a function to get the bbox
bbox = champlain_bounding_box_new ();
- bbox->left = priv->map->map->minlat;
- bbox->top = priv->map->map->minlon;
- bbox->right = priv->map->map->maxlat;
- bbox->bottom = priv->map->map->maxlon;
+ memhis_map_get_bounding_box (priv->map, &bbox->left, &bbox->top,
+ &bbox->right, &bbox->bottom);
g_object_set (G_OBJECT (self), "bounding-box", bbox, NULL);
champlain_bounding_box_free (bbox);
diff --git a/champlain/champlain-network-map-data-source.c b/champlain/champlain-network-map-data-source.c
index 28aaab0..bf195f6 100644
--- a/champlain/champlain-network-map-data-source.c
+++ b/champlain/champlain-network-map-data-source.c
@@ -258,12 +258,9 @@ load_map_data_cb (SoupSession *session, SoupMessage *msg,
priv->map = map;
- // TODO: memphis needs a function to get the bbox
bbox = champlain_bounding_box_new ();
- bbox->left = priv->map->map->minlat;
- bbox->top = priv->map->map->minlon;
- bbox->right = priv->map->map->maxlat;
- bbox->bottom = priv->map->map->maxlon;
+ memhis_map_get_bounding_box (priv->map, &bbox->left, &bbox->top,
+ &bbox->right, &bbox->bottom);
g_object_set (G_OBJECT (self), "bounding-box", bbox, NULL);
champlain_bounding_box_free (bbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]