Comunidad
cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 
Highlighted
Principiante
3 Vistas

google maps on ionic framework

Captura de pantalla 2016-03-04 a las 17.20.10.png

I have the next code that i use to try to show a google map, but i have the problem that the maps looks full gray, but this just happen when is secondary page. any suggest or what to fix that i will apriciate a lot thanks a lot

<div id="tipo_campa" class="upage-content vertical-col left hidden">
                    <ion-list class="widget uib_w_57 d-margins" data-uib="ionic/list" data-ver="0">
                        <ion-item class="item widget uib_w_59 d-margins item-avatar" data-uib="ionic/list_item_avatar" data-ver="0">
                            <img src="images/Strabburg.jpg">
                            <h2>Campaña banco de sangre</h2>
                            <p>Avenida Simpson</p>
                            <p>Desde las 09:00 hasta las 12:00</p>
                        </ion-item>
                    </ion-list>
                       <div id="map" style="height: 50vh"></div> 
                </div>
            </div>
        </div>
          <script>
            var map;
            function initMap() {
              var myLatLng = {lat: -39.83250715421206, lng: -73.23938548564911};
            
              // Create a map object and specify the DOM element for display.
              var map = new google.maps.Map(document.getElementById('map'), {
                center: myLatLng,
                scrollwheel: false,
                zoom: 15
              });
            
              // Create a marker and set its position.
              var marker = new google.maps.Marker({
                map: map,
                position: myLatLng,
                title: 'Banco de Sangre'
              });
            }
        </script>
        <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDl1lpx2C8RmatmhG__vBcmtjEsEPjUVbo&amp;&amp;callback=initMap" async="" defer=""></script>

 

 

Etiquetas (2)
0 kudos
3 Respuestas
Highlighted
Principiante
3 Vistas

Could not get your question .

Could not get your question . It is incomplete .

Best Regards 

 

 

0 kudos
Highlighted
Principiante
3 Vistas

thanks amir now i fixed that.

thanks amir now i fixed that. 

0 kudos
Highlighted
Principiante
3 Vistas

help pls =c

help pls =c

0 kudos