dylanfprice / angular-gm

AngularJS Google Maps Directives
MIT License
198 stars 47 forks source link

AngularGM + Ionic on iOS - not zoomable, and infoWindow not working #69

Closed arunr closed 9 years ago

arunr commented 9 years ago

Hi, I am using AngularGM along with Ionic to build an iOS app. Things work great in the brower and in the Ripple brower emulator, but on an actual iOS device, I've noticed two issues:

  1. The map is not zoomable.
  2. The infoWindows dont work.

The relevant code fragment is

<div class="card">
  <div gm-info-window="infoWindow">
    <h4>{{selectedOutlet.name}}</h4>
  </div>
  <gm-map gm-map-id="'mapNearby'" gm-center="center" 
      gm-zoom="zoom" gm-map-options="options.map" class="map">

    <gm-markers gm-objects="near"
        gm-id="object.id"
        gm-position="{lat: object.location.lat, lng: object.location.lng}"
        gm-marker-options="{ title: object.name, clickable: true }"
        gm-events="markerEvents"
        gm-on-openinfowindow="selectedOutlet = object; infoWindow.open(marker.getMap(), marker);"
        gm-on-click="triggerOpenInfoWindow(object)">
    </gm-markers>

  </gm-map>
  </div>  

Any ideas will help! Thanks, arun

dylanfprice commented 9 years ago

Hey arunr I'm sorry it's not working! Unfortunately iOS is out of scope for me and this library. If you are willing to contribute any improvements you make I would be really grateful.