Update mapview.js

pull/6471/head
Martin Schoeler 9 years ago committed by GitHub
parent 597b60e13f
commit 09f3283a1c
  1. 3
      packages/rocketchat-mapview/client/mapview.js

@ -11,8 +11,7 @@ function MapView(message) {
if (message.location) {
// GeoJSON is reversed - ie. [lng, lat]
const longitude = message.location.coordinates[0];
const latitude = message.location.coordinates[1];
const [longitude, latitude] = message.location.coordinates;
// confirm we have an api key set, and generate the html required for the mapview
if (mv_googlekey && mv_googlekey.length) {

Loading…
Cancel
Save