Subversion Repositories Projects

Rev

Rev 674 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 674 Rev 801
1
/*
1
/*
2
*
2
*
3
* This file is part of QMapControl,
3
* This file is part of QMapControl,
4
* an open-source cross-platform map widget
4
* an open-source cross-platform map widget
5
*
5
*
6
* Copyright (C) 2007 - 2008 Kai Winter
6
* Copyright (C) 2007 - 2008 Kai Winter
7
*
7
*
8
* This program is free software: you can redistribute it and/or modify
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published by
9
* it under the terms of the GNU Lesser General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
11
* (at your option) any later version.
12
*
12
*
13
* This program is distributed in the hope that it will be useful,
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
* GNU Lesser General Public License for more details.
16
* GNU Lesser General Public License for more details.
17
*
17
*
18
* You should have received a copy of the GNU Lesser General Public License
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with QMapControl. If not, see <http://www.gnu.org/licenses/>.
19
* along with QMapControl. If not, see <http://www.gnu.org/licenses/>.
20
*
20
*
21
* Contact e-mail: kaiwinter@gmx.de
21
* Contact e-mail: kaiwinter@gmx.de
22
* Program URL   : http://qmapcontrol.sourceforge.net/
22
* Program URL   : http://qmapcontrol.sourceforge.net/
23
*
23
*
24
*/
24
*/
25
 
25
 
26
#include "googlemapadapter.h"
26
#include "googlemapadapter.h"
27
namespace qmapcontrol
27
namespace qmapcontrol
28
{
28
{
29
    GoogleMapAdapter::GoogleMapAdapter()
29
    GoogleMapAdapter::GoogleMapAdapter()
-
 
30
        : TileMapAdapter("mt1.google.com", "/vt/lyrs=m@120&hl=de&x=%2&y=%3&z=%1&s=", 256, 0, 17)
30
        : TileMapAdapter("mt2.google.com", "/mt?n=404&x=%2&y=%3&zoom=%1", 256, 17, 0)
31
//        : TileMapAdapter("mt1.google.com", "/mt?n=404&x=%2&y=%3&zoom=%1", 256, 17, 0)
31
        //: TileMapAdapter("tile.openstreetmap.org", "/%1/%2/%3.png", 256, 0, 17)
32
//        : TileMapAdapter("server.arcgisonline.com", "/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/tile/%1/%3/%2", 512, 0, 17)
32
    {
33
    {
33
    }
34
    }
34
 
35
 
35
    GoogleMapAdapter::~GoogleMapAdapter()
36
    GoogleMapAdapter::~GoogleMapAdapter()
36
    {
37
    {
37
    }
38
    }
38
}
39
}
39
 
40