@@ -42,6 +42,9 @@ |
||
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @return \ParamProcessor\ProcessingResult |
|
| 47 | + */ |
|
| 45 | 48 | private function processParameters( MappingService $service, array $displayParams ) { |
| 46 | 49 | $processor = Processor::newDefault(); |
| 47 | 50 | |
@@ -136,6 +136,10 @@ |
||
| 136 | 136 | return $locationJsonObjects; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $iconUrl |
|
| 141 | + * @param string $visitedIconUrl |
|
| 142 | + */ |
|
| 139 | 143 | private function getLocationJsonObject( Location $location, array $params, $iconUrl, $visitedIconUrl ) { |
| 140 | 144 | $jsonObj = $location->getJSONObject( $params['title'], $params['label'], $iconUrl, '', '', $visitedIconUrl ); |
| 141 | 145 | |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use Maps\Map\MapOutputBuilder; |
| 12 | 12 | use Maps\MappingService; |
| 13 | 13 | use Maps\Presentation\ElementJsonSerializer; |
| 14 | -use Maps\Map\MapHtmlBuilder; |
|
| 15 | 14 | use Maps\Presentation\WikitextParser; |
| 16 | 15 | use Maps\Presentation\WikitextParsers\LocationParser; |
| 17 | 16 | use Parser; |
@@ -205,6 +205,10 @@ |
||
| 205 | 205 | return $location->getJSONObject(); |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | + /** |
|
| 209 | + * @param string $iconUrl |
|
| 210 | + * @param string $visitedIconUrl |
|
| 211 | + */ |
|
| 208 | 212 | private function getJsonForStaticLocations( array $staticLocations, array $params, $iconUrl, $visitedIconUrl ) { |
| 209 | 213 | $locationsJson = []; |
| 210 | 214 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use Maps\Map\MapOutputBuilder; |
| 13 | 13 | use Maps\MappingService; |
| 14 | 14 | use Maps\Presentation\ElementJsonSerializer; |
| 15 | -use Maps\Map\MapHtmlBuilder; |
|
| 16 | 15 | use Maps\Presentation\WikitextParser; |
| 17 | 16 | use Maps\Presentation\WikitextParsers\LocationParser; |
| 18 | 17 | use Maps\SemanticMW\ResultPrinters\QueryHandler; |