Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/286373

Change subject: Fix / swap order of latitude and longitude in map
......................................................................

Fix / swap order of latitude and longitude in map

The order of latitude and longitude has changed in the
query service and needs to be changed here.

Change-Id: I38dabdbae7fb87fd7b47cca9d156b1fd163eb0f5
---
M wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui 
refs/changes/73/286373/1

diff --git a/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js 
b/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
index afcfb07..a14308a 100644
--- a/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
+++ b/wikibase/queryService/ui/resultBrowser/CoordinateResultBrowser.js
@@ -95,9 +95,12 @@
                                        return true;
                                }
 
-                               var popup = L.popup(), marker = L.circle( [
-                                               longLat[0], longLat[1]
-                               ], 10 ).bindPopup( popup );
+                               var popup = L.popup(),
+                                       lon = longLat[0],
+                                       lat = longLat[1];
+
+                               var marker = L.circle( [ lat, lon ], 10 )
+                                       .bindPopup( popup );
 
                                marker.on( 'click', function() {
                                        var info = self._getItemDescription( 
row );

-- 
To view, visit https://gerrit.wikimedia.org/r/286373
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38dabdbae7fb87fd7b47cca9d156b1fd163eb0f5
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to