Index: trunk/extensions/SemanticMaps/RELEASE-NOTES |
— | — | @@ -10,8 +10,14 @@ |
11 | 11 | === Semantic Maps 0.7.1 === |
12 | 12 | (2010-1x-xx) |
13 | 13 | |
14 | | -* |
| 14 | +==== New features ==== |
15 | 15 | |
| 16 | +* Image layers for OpenLayers maps, defined via pages in the Layer namespace. |
| 17 | + |
| 18 | +==== Bug fixes ==== |
| 19 | + |
| 20 | +* Support for images without namespace prefix in the statispoints parameter in map ask queries. |
| 21 | + |
16 | 22 | === Semantic Maps 0.7 === |
17 | 23 | (2010-10-15) |
18 | 24 | |
Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | $validator->validateParameters(); |
197 | 197 | |
198 | 198 | $fatalError = $validator->hasFatalError(); |
199 | | - |
| 199 | + |
200 | 200 | if ( $fatalError === false ) { |
201 | 201 | $this->zoomDefaulted = $validator->getParameter( 'zoom' )->wasSetToDefault(); |
202 | 202 | $this->setMapProperties( $validator->getParameterValues() ); |
— | — | @@ -291,16 +291,7 @@ |
292 | 292 | } |
293 | 293 | |
294 | 294 | if ( $markerData['icon'] != '' ) { |
295 | | - if ( strpos( $markerData['icon'], ':' ) === false ) { |
296 | | - $markerData['icon'] = 'File:' . $markerData['icon']; |
297 | | - } |
298 | | - |
299 | | - $title = Title::newFromText( $markerData['icon'] ); |
300 | | - |
301 | | - if ( !is_null( $title ) && $title->exists() ) { |
302 | | - $iconImagePage = new ImagePage( $title ); |
303 | | - $markerData['icon'] = $iconImagePage->getDisplayedFile()->getURL(); |
304 | | - } |
| 295 | + $markerData['icon'] = MapsMapper::getImageUrl( $markerData['icon'] ); |
305 | 296 | } |
306 | 297 | |
307 | 298 | // Temporary fix, will refactor away later |