Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@capacitor/google-maps

Package Overview
Dependencies
Maintainers
17
Versions
443
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/google-maps - npm Package Compare versions

Comparing version
7.2.0-spm-dev.1
to
7.2.0
+19
-9
ios/Sources/CapacitorGoogleMapsPlugin/Map.swift

@@ -17,2 +17,3 @@ import Foundation

var mapId: String?
var onViewDidLoad: (() -> Void)?

@@ -38,2 +39,3 @@ private var clusterManager: GMUClusterManager?

self.view = GMapView
self.onViewDidLoad?()
}

@@ -99,6 +101,8 @@

self.mapViewController.mapId = config.mapId
self.mapViewController.onViewDidLoad = { [weak self] in
self?.finishMapConfiguration()
}
self.render()
}
func render() {

@@ -112,3 +116,3 @@ DispatchQueue.main.async {

]
self.mapViewController.cameraPosition = [

@@ -119,5 +123,5 @@ "latitude": self.config.center.lat,

]
self.targetViewController = self.getTargetContainer(refWidth: self.config.width, refHeight: self.config.height)
if let target = self.targetViewController {

@@ -128,5 +132,10 @@ target.tag = Map.MAP_TAG

target.addSubview(self.mapViewController.view)
self.mapViewController.GMapView.delegate = self.delegate
}
}
}
func finishMapConfiguration() {
DispatchQueue.main.async {
self.mapViewController.GMapView.delegate = self.delegate
if let styles = self.config.styles {

@@ -217,6 +226,7 @@ do {

let width = Double((item as? UIScrollView)?.contentSize.width ?? 0)
let actualHeight = round(height / 2)
let actualHeightFloor = floor(height / 2)
let actualHeightCeil = ceil(height / 2)
let isWidthEqual = width == self.config.width
let isHeightEqual = actualHeight == self.config.height
let isWidthEqual = width == refWidth
let isHeightEqual = actualHeightFloor == refHeight || actualHeightCeil == refHeight

@@ -223,0 +233,0 @@ if isWidthEqual && isHeightEqual && item.tag < self.targetViewController?.tag ?? Map.MAP_TAG {

{
"name": "@capacitor/google-maps",
"version": "7.2.0-spm-dev.1",
"version": "7.2.0",
"description": "Google maps on Capacitor",

@@ -97,3 +97,4 @@ "main": "dist/plugin.cjs.js",

"@types/google.maps": "~3.58.1"
}
},
"gitHead": "583b0e5d9c7b018558347750ac9834d78d2939bc"
}