-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: on Ionic 7, capacitor 6.0.1 IOS googlemaps.create() fails, but doesn't return an error, worked on prior releases #7820
Labels
Comments
spent some more time, created a onViewDidEnter
GMapView <---- this is null these methods all crash await this.newMap.enableTrafficLayer(true);
await this.newMap.enableAccessibilityElements(true);
await this.newMap.enableCurrentLocation(true);
await this.newMap.setMapType(MapType.Hybrid) supposedly the GMapView is set
setCamera also failed
if I comment them out, i can add markers, but the map doesn't appear.. oh, this is Vue. |
I went back to the old template. and it works <GMapMap ref="myMapRef" :center="currentMapCenter" :zoom="zoomLevel" map-type-id="terrain" :options="mapOptions"
style="width: 100vw; height: 90vh">
<GMapMarker v-for="(marker, index) in markerList" :key="`map-marker-${index}`" :position="marker.position"
:title="marker.title" :clickable="true" @click="openInfoWindow(marker.id)">
<GMapInfoWindow :closeclick="true" @closeclick="closeMarker(marker.id)"
:opened="openedMarkerID === marker.id" :options="{
pixelOffset: {
width: 10, height: 0
},
maxWidth: '50%',
maxHeight: 320,
}">
<div><span>address</span><br>
<span>name : {{ marker.address.name}}</span><br>
<span>street:{{ marker.address.subThoroughfare}} {{marker.address.thoroughfare}}</span><br>
<span>city: {{ marker.address.locality }} state: {{ marker.address.administrativeArea }} zip: {{ marker.address.postalCode }}</span><br>
<span>distance from current location {{ marker.distance }} {{ distance_type }}</span>
</div>
</GMapInfoWindow>
</GMapMarker> />
</GMapMap> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0
Installed Dependencies:
@capacitor/cli: 6.2.0
@capacitor/ios: 6.0.0
@capacitor/android: 6.0.0
@capacitor/core: 6.0.0
[success] iOS looking great! 👌
[success] Android looking great!
Other API Details
Platforms Affected
Current Behavior
[log] - in create map
⚡️ [log] - have ref
To Native Cordova -> Geolocation getLocation Geolocation1810295179 ["options": [0, 0]]
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the
-locationManagerDidChangeAuthorization:
callback and checkingauthorizationStatus
first.⚡️ [log] - have current position for map={
"coords": {
"latitude": 30.46355392733366,
"longitude": -97.62859466229018,
"accuracy": 26.689875241230123,
"altitude": 237.3172779083252,
"heading": null,
"speed": null,
"altitudeAccuracy": 11.927132606506348
},
"timestamp": 1735414885968.9688
}
with try/catch
⚡️ [log] - ready to open map=
⚡️ [log] - map create error= {}
"timestamp": 1735415657940.414
}
without try/catch
⚡️ [log] - ready to open map=
code called from created()
zoomLevel = 15
Expected Behavior
used to work .
Project Reproduction
no idea yet
Additional Information
i looked in wiki, closed issues, open issues for maps.
The text was updated successfully, but these errors were encountered: