{"action":"created","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2131","repository_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2131/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2131/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2131/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2131","id":304441299,"number":2131,"title":"console.warn: Native: tried accessing the GoogleMaps plugin but Cordova is not available. Make sure to  include cordova.js or run in a device/simulator","user":{"login":"francoro","id":19310384,"avatar_url":"https://avatars2.githubusercontent.com/u/19310384?v=4","gravatar_id":"","url":"https://api.github.com/users/francoro","html_url":"https://github.com/francoro","followers_url":"https://api.github.com/users/francoro/followers","following_url":"https://api.github.com/users/francoro/following{/other_user}","gists_url":"https://api.github.com/users/francoro/gists{/gist_id}","starred_url":"https://api.github.com/users/francoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoro/subscriptions","organizations_url":"https://api.github.com/users/francoro/orgs","repos_url":"https://api.github.com/users/francoro/repos","events_url":"https://api.github.com/users/francoro/events{/privacy}","received_events_url":"https://api.github.com/users/francoro/received_events","type":"User","site_admin":false},"labels":[{"id":133074247,"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/labels/need%20more%20information","name":"need more information","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-12T16:19:15Z","updated_at":"2018-03-12T16:47:41Z","closed_at":null,"author_association":"NONE","body":"That is the error  appearing in the console, i run the project in my mobile phone so i dont understand why cordova is unavailable.\r\n\r\nThis is my code:\r\n\r\n```\r\nimport { Component } from '@angular/core';\r\nimport { NavController, NavParams, Platform } from 'ionic-angular';\r\nimport {\r\n    GoogleMaps,\r\n    GoogleMap,\r\n    GoogleMapsEvent,\r\n    LatLng,\r\n    CameraPosition,\r\n    MarkerOptions,\r\n    Marker\r\n} from '@ionic-native/google-maps';\r\n\r\n@Component({\r\n    selector: 'page-map',\r\n    templateUrl: 'map.html',\r\n})\r\n\r\n\r\n\r\nexport class MapPage {\r\n    latitud: any;\r\n    longitud: any;\r\n    map: GoogleMap;\r\n\r\n    constructor(public navCtrl: NavController, public navParams: NavParams, private googleMaps: GoogleMaps, public platform: Platform) {\r\n        this.latitud = \"-38.007681\";\r\n        this.longitud = \"-57.543674\";\r\n    }\r\n    ionViewDidLoad() {\r\n        this.loadMap();\r\n    }\r\n\r\n    loadMap() {\r\n        let mapOptions = {\r\n            camera: {\r\n                target: {\r\n                    lat: Number(this.latitud),\r\n                    lng: Number(this.longitud)\r\n                },\r\n                zoom: 18,\r\n                tilt: 30\r\n            }\r\n        };\r\n\r\n        this.map = GoogleMaps.create('map', mapOptions);\r\n\r\n\r\n\r\n        // listen to MAP_READY event\r\n        // You must wait for this event to fire before adding something to the map or modifying it in anyway\r\n        this.map.one(GoogleMapsEvent.MAP_READY).then(() => {\r\n            console.log('Map is ready!');\r\n   \r\n\r\n        });\r\n\r\n    }\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/comments/372379758","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2131#issuecomment-372379758","issue_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/2131","id":372379758,"user":{"login":"francoro","id":19310384,"avatar_url":"https://avatars2.githubusercontent.com/u/19310384?v=4","gravatar_id":"","url":"https://api.github.com/users/francoro","html_url":"https://github.com/francoro","followers_url":"https://api.github.com/users/francoro/followers","following_url":"https://api.github.com/users/francoro/following{/other_user}","gists_url":"https://api.github.com/users/francoro/gists{/gist_id}","starred_url":"https://api.github.com/users/francoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoro/subscriptions","organizations_url":"https://api.github.com/users/francoro/orgs","repos_url":"https://api.github.com/users/francoro/repos","events_url":"https://api.github.com/users/francoro/events{/privacy}","received_events_url":"https://api.github.com/users/francoro/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T16:47:41Z","updated_at":"2018-03-12T16:47:41Z","author_association":"NONE","body":"Also i make a console.log of this.map and i get an empty object: \r\nthis.map = GoogleMaps.create('map', mapOptions);\r\n\r\nAnd this is my html: \r\n <div #map id=\"map\" style=\"height:100%; width:100%;\"></div>"}}
{"actor":{"display_login":"francoro"}}