Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49085

Google maps integration, V2

$
0
0

@pwrreques wrote:

I'm using mapsplugin/cordova-plugin-googlemaps and my problem is that de map when the app start the map appear like transparent or white but the map is loaded cuz when i scroll the "lat" and "lng" on camera_change function they show me different cords, and also the map how up when i switch tabs, i m using tab template.

CAN SOME ONE tell me about it?

CONTROLLER HERE:

.controller('DashCtrl', function($scope, Parking) {

document.addEventListener("deviceready", function() {

var mapDiv = document.getElementById("map_canvas");

var DR = new plugin.google.maps.LatLng( 18.468860,-69.904866 );

$scope.map = plugin.google.maps.Map.getMap( mapDiv, {
  'controls': {
    'compass': true,
    'myLocationButton': true,
    'zoom': true,
  },
  'camera': {
    'zoom': 17
  }
});

var locatonList = Parking.all();

$scope.map.addEventListener(plugin.google.maps.event.MAP_READY, function() {
      $scope.map.setCenter( DR );
});

})

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>