Index: trunk/extensions/Maps/Services/GoogleMaps3/Maps_GoogleMaps3DispPoint.php |
— | — | @@ -30,24 +30,13 @@ |
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | | - * @see MapsBaseMap::doMapServiceLoad() |
35 | | - * |
36 | | - */ |
37 | | - public function doMapServiceLoad() { |
38 | | - global $egGMaps3OnThisPage; |
39 | | - |
40 | | - $egGMaps3OnThisPage++; |
41 | | - |
42 | | - $this->elementNr = $egGMaps3OnThisPage; |
43 | | - } |
44 | | - |
45 | | - /** |
46 | 34 | * @see MapsBaseMap::addSpecificMapHTML() |
47 | 35 | * |
48 | 36 | */ |
49 | 37 | public function addSpecificMapHTML() { |
50 | 38 | global $egMapsGMaps3Prefix, $egGMaps3OnThisPage; |
51 | 39 | |
| 40 | + $egGMaps3OnThisPage++; |
52 | 41 | $mapName = $egMapsGMaps3Prefix . '_' . $egGMaps3OnThisPage; |
53 | 42 | |
54 | 43 | $this->output .= Html::element( |
Index: trunk/extensions/Maps/Services/GoogleMaps3/Maps_GoogleMaps3DispMap.php |
— | — | @@ -28,24 +28,13 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | | - * @see MapsBaseMap::doMapServiceLoad() |
33 | | - * |
34 | | - */ |
35 | | - public function doMapServiceLoad() { |
36 | | - global $egGMaps3OnThisPage; |
37 | | - |
38 | | - $egGMaps3OnThisPage++; |
39 | | - |
40 | | - $this->elementNr = $egGMaps3OnThisPage; |
41 | | - } |
42 | | - |
43 | | - /** |
44 | 32 | * @see MapsBaseMap::addSpecificMapHTML() |
45 | 33 | * |
46 | 34 | */ |
47 | 35 | public function addSpecificMapHTML() { |
48 | 36 | global $egMapsGMaps3Prefix, $egGMaps3OnThisPage; |
49 | 37 | |
| 38 | + $egGMaps3OnThisPage++; |
50 | 39 | $mapName = $egMapsGMaps3Prefix . '_' . $egGMaps3OnThisPage; |
51 | 40 | |
52 | 41 | $this->output .= Html::element( |
Index: trunk/extensions/Maps/Services/YahooMaps/Maps_YahooMapsDispPoint.php |
— | — | @@ -28,24 +28,13 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | | - * @see MapsBaseMap::doMapServiceLoad() |
33 | | - * |
34 | | - */ |
35 | | - public function doMapServiceLoad() { |
36 | | - global $egYahooMapsOnThisPage; |
37 | | - |
38 | | - $egYahooMapsOnThisPage++; |
39 | | - |
40 | | - $this->elementNr = $egYahooMapsOnThisPage; |
41 | | - } |
42 | | - |
43 | | - /** |
44 | 32 | * @see MapsBaseMap::addSpecificMapHTML() |
45 | 33 | * |
46 | 34 | */ |
47 | 35 | public function addSpecificMapHTML() { |
48 | 36 | global $egMapsYahooMapsPrefix, $egYahooMapsOnThisPage; |
49 | 37 | |
| 38 | + $egYahooMapsOnThisPage++; |
50 | 39 | $mapName = $egMapsYahooMapsPrefix . '_' . $egYahooMapsOnThisPage; |
51 | 40 | |
52 | 41 | $this->output .= Html::element( |
Index: trunk/extensions/Maps/Services/YahooMaps/Maps_YahooMapsDispMap.php |
— | — | @@ -21,22 +21,12 @@ |
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
25 | | - * @see MapsBaseMap::doMapServiceLoad() |
26 | | - */ |
27 | | - public function doMapServiceLoad() { |
28 | | - global $egYahooMapsOnThisPage; |
29 | | - |
30 | | - $egYahooMapsOnThisPage++; |
31 | | - |
32 | | - $this->elementNr = $egYahooMapsOnThisPage; |
33 | | - } |
34 | | - |
35 | | - /** |
36 | 25 | * @see MapsBaseMap::addSpecificMapHTML() |
37 | 26 | */ |
38 | 27 | public function addSpecificMapHTML() { |
39 | 28 | global $egMapsYahooMapsPrefix, $egYahooMapsOnThisPage; |
40 | 29 | |
| 30 | + $egYahooMapsOnThisPage++; |
41 | 31 | $mapName = $egMapsYahooMapsPrefix . '_' . $egYahooMapsOnThisPage; |
42 | 32 | |
43 | 33 | $this->output .= Html::element( |
— | — | @@ -69,4 +59,4 @@ |
70 | 60 | ) ); |
71 | 61 | } |
72 | 62 | |
73 | | -} |
| 63 | +} |
\ No newline at end of file |
Index: trunk/extensions/Maps/Services/OpenLayers/Maps_OpenLayersDispPoint.php |
— | — | @@ -28,17 +28,6 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | | - * @see MapsBaseMap::doMapServiceLoad() |
33 | | - */ |
34 | | - public function doMapServiceLoad() { |
35 | | - global $egOpenLayersOnThisPage; |
36 | | - |
37 | | - $egOpenLayersOnThisPage++; |
38 | | - |
39 | | - $this->elementNr = $egOpenLayersOnThisPage; |
40 | | - } |
41 | | - |
42 | | - /** |
43 | 32 | * @see MapsBaseMap::addSpecificMapHTML() |
44 | 33 | */ |
45 | 34 | public function addSpecificMapHTML() { |
— | — | @@ -46,6 +35,7 @@ |
47 | 36 | |
48 | 37 | $layerItems = $this->mService->createLayersStringAndLoadDependencies( $this->layers ); |
49 | 38 | |
| 39 | + $egOpenLayersOnThisPage++; |
50 | 40 | $mapName = $egMapsOpenLayersPrefix . '_' . $egOpenLayersOnThisPage; |
51 | 41 | |
52 | 42 | $this->output .= Html::element( |
Index: trunk/extensions/Maps/Services/OpenLayers/Maps_OpenLayersDispMap.php |
— | — | @@ -21,17 +21,6 @@ |
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
25 | | - * @see MapsBaseMap::doMapServiceLoad() |
26 | | - */ |
27 | | - public function doMapServiceLoad() { |
28 | | - global $egOpenLayersOnThisPage; |
29 | | - |
30 | | - $egOpenLayersOnThisPage++; |
31 | | - |
32 | | - $this->elementNr = $egOpenLayersOnThisPage; |
33 | | - } |
34 | | - |
35 | | - /** |
36 | 25 | * @see MapsBaseMap::addSpecificMapHTML() |
37 | 26 | */ |
38 | 27 | public function addSpecificMapHTML() { |
— | — | @@ -39,6 +28,7 @@ |
40 | 29 | |
41 | 30 | $layerItems = $this->mService->createLayersStringAndLoadDependencies( $this->layers ); |
42 | 31 | |
| 32 | + $egOpenLayersOnThisPage++; |
43 | 33 | $mapName = $egMapsOpenLayersPrefix . '_' . $egOpenLayersOnThisPage; |
44 | 34 | |
45 | 35 | $this->output .= Html::element( |
Index: trunk/extensions/Maps/Services/GoogleMaps/Maps_GoogleMapsDispMap.php |
— | — | @@ -42,22 +42,12 @@ |
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | | - * @see MapsBaseMap::doMapServiceLoad() |
47 | | - */ |
48 | | - public function doMapServiceLoad() { |
49 | | - global $egGoogleMapsOnThisPage; |
50 | | - |
51 | | - $egGoogleMapsOnThisPage++; |
52 | | - |
53 | | - $this->elementNr = $egGoogleMapsOnThisPage; |
54 | | - } |
55 | | - |
56 | | - /** |
57 | 46 | * @see MapsBaseMap::addSpecificMapHTML() |
58 | 47 | */ |
59 | 48 | public function addSpecificMapHTML() { |
60 | 49 | global $egMapsGoogleMapsPrefix, $egGoogleMapsOnThisPage; |
61 | 50 | |
| 51 | + $egGoogleMapsOnThisPage++; |
62 | 52 | $mapName = $egMapsGoogleMapsPrefix . '_' . $egGoogleMapsOnThisPage; |
63 | 53 | |
64 | 54 | $this->mService->addOverlayOutput( $this->output, $mapName, $this->overlays, $this->controls ); |
Index: trunk/extensions/Maps/Services/GoogleMaps/Maps_GoogleMapsDispPoint.php |
— | — | @@ -42,17 +42,6 @@ |
43 | 43 | ), |
44 | 44 | ); |
45 | 45 | } |
46 | | - |
47 | | - /** |
48 | | - * @see MapsBaseMap::doMapServiceLoad() |
49 | | - */ |
50 | | - public function doMapServiceLoad() { |
51 | | - global $egGoogleMapsOnThisPage; |
52 | | - |
53 | | - $egGoogleMapsOnThisPage++; |
54 | | - |
55 | | - $this->elementNr = $egGoogleMapsOnThisPage; |
56 | | - } |
57 | 46 | |
58 | 47 | /** |
59 | 48 | * @see MapsBaseMap::addSpecificMapHTML() |
— | — | @@ -60,6 +49,7 @@ |
61 | 50 | public function addSpecificMapHTML() { |
62 | 51 | global $egMapsGoogleMapsPrefix, $egGoogleMapsOnThisPage; |
63 | 52 | |
| 53 | + $egGoogleMapsOnThisPage++; |
64 | 54 | $mapName = $egMapsGoogleMapsPrefix . '_' . $egGoogleMapsOnThisPage; |
65 | 55 | |
66 | 56 | $this->mService->addOverlayOutput( $this->output, $mapName, $this->overlays, $this->controls ); |
Index: trunk/extensions/Maps/Features/DisplayPoint/Maps_BasePointMap.php |
— | — | @@ -39,6 +39,8 @@ |
40 | 40 | private $specificParameters = false; |
41 | 41 | private $markerData = array(); |
42 | 42 | |
| 43 | + protected abstract function getDefaultZoom(); |
| 44 | + |
43 | 45 | public function __construct( MapsMappingService $service ) { |
44 | 46 | $this->mService = $service; |
45 | 47 | } |
— | — | @@ -139,8 +141,6 @@ |
140 | 142 | $this->parser = $parser; |
141 | 143 | |
142 | 144 | $this->featureParameters = MapsDisplayPoint::$parameters; |
143 | | - |
144 | | - $this->doMapServiceLoad(); |
145 | 145 | |
146 | 146 | $this->setMapProperties( $params ); |
147 | 147 | |
Index: trunk/extensions/Maps/Features/Maps_iMapParserFunction.php |
— | — | @@ -26,11 +26,6 @@ |
27 | 27 | function getMapHtml( Parser &$parser, array $params ); |
28 | 28 | |
29 | 29 | /** |
30 | | - * Map service specific map count and loading of dependencies. |
31 | | - */ |
32 | | - function doMapServiceLoad(); |
33 | | - |
34 | | - /** |
35 | 30 | * Adds the HTML specific to the mapping service to the output. |
36 | 31 | */ |
37 | 32 | function addSpecificMapHTML(); |
Index: trunk/extensions/Maps/Features/DisplayMap/Maps_BaseMap.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | private $specificParameters = false; |
37 | 37 | protected $featureParameters = false; |
38 | 38 | |
39 | | - protected abstract function getDefaultZoom(); |
| 39 | + protected abstract function getDefaultZoom(); |
40 | 40 | |
41 | 41 | public function __construct( MapsMappingService $service ) { |
42 | 42 | $this->mService = $service; |
— | — | @@ -122,8 +122,6 @@ |
123 | 123 | $this->parser = $parser; |
124 | 124 | |
125 | 125 | $this->featureParameters = MapsDisplayMap::$parameters; |
126 | | - |
127 | | - $this->doMapServiceLoad(); |
128 | 126 | |
129 | 127 | $this->setMapProperties( $params ); |
130 | 128 | |
— | — | @@ -141,12 +139,6 @@ |
142 | 140 | } |
143 | 141 | |
144 | 142 | /** |
145 | | - * Optionally override. |
146 | | - */ |
147 | | - public function doMapServiceLoad() { |
148 | | - } |
149 | | - |
150 | | - /** |
151 | 143 | * Sets the $centreLat and $centreLon fields. |
152 | 144 | */ |
153 | 145 | private function setCentre() { |