{"id":13701477,"url":"https://github.com/mapsplugin/cordova-plugin-googlemaps","last_synced_at":"2025-12-17T14:25:15.024Z","repository":{"id":11476261,"uuid":"13945352","full_name":"mapsplugin/cordova-plugin-googlemaps","owner":"mapsplugin","description":"Google Maps plugin for Cordova","archived":false,"fork":false,"pushed_at":"2024-06-10T10:25:25.000Z","size":132295,"stargazers_count":1666,"open_issues_count":105,"forks_count":916,"subscribers_count":97,"default_branch":"master","last_synced_at":"2025-11-20T20:08:48.586Z","etag":null,"topics":["cordova","cordova-googlemaps-plugin","crosswalk","google","google-maps","java","objective-c","phonegap","sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mapsplugin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-10-29T03:11:07.000Z","updated_at":"2025-11-15T23:26:19.000Z","dependencies_parsed_at":"2022-07-14T02:20:31.906Z","dependency_job_id":"93d576df-e7ae-4d8a-8a1e-17d17d8bddd4","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps","commit_stats":{"total_commits":4072,"total_committers":95,"mean_commits":"42.863157894736844","dds":"0.20137524557956776","last_synced_commit":"bdb7af4730857a6b51662a8cfd180f6c5a3dce35"},"previous_names":["phonegap-googlemaps-plugin/cordova-plugin-googlemaps"],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/mapsplugin/cordova-plugin-googlemaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapsplugin%2Fcordova-plugin-googlemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapsplugin%2Fcordova-plugin-googlemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapsplugin%2Fcordova-plugin-googlemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapsplugin%2Fcordova-plugin-googlemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapsplugin","download_url":"https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapsplugin%2Fcordova-plugin-googlemaps/sbom","scorecard":{"id":616993,"data":{"date":"2025-08-11","repo":{"name":"github.com/mapsplugin/cordova-plugin-googlemaps","commit":"bdb7af4730857a6b51662a8cfd180f6c5a3dce35"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":4,"reason":"Found 8/19 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: tests/travis.sh:11","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T04:15:23.620Z","repository_id":11476261,"created_at":"2025-08-21T04:15:23.620Z","updated_at":"2025-08-21T04:15:23.620Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27757558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-15T02:00:09.782Z","response_time":96,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova","cordova-googlemaps-plugin","crosswalk","google","google-maps","java","objective-c","phonegap","sdk"],"created_at":"2024-08-02T20:01:41.131Z","updated_at":"2025-12-17T14:25:15.003Z","avatar_url":"https://github.com/mapsplugin.png","language":"JavaScript","readme":"# Cordova GoogleMaps plugin for Android, iOS and Browser v2.7.1\n\n| Download | Build test (multiple_maps branch)|\n|----------|---------------------------|\n| [![](https://img.shields.io/npm/dm/cordova-plugin-googlemaps.svg)](https://npm-stat.com/charts.html?package=cordova-plugin-googlemaps) |[![](https://travis-ci.org/mapsplugin/cordova-plugin-googlemaps.svg?branch=multiple_maps)](https://travis-ci.org/mapsplugin/cordova-plugin-googlemaps/branches) |\n\n  This plugin displays Google Maps in your application.\n  This plugin uses these libraries for each platforms:\n\n  - Android : [Google Maps Android API](https://developers.google.com/maps/documentation/android/)\n  - iOS : [Google Maps SDK for iOS](https://developers.google.com/maps/documentation/ios/)\n  - Browser : [Google Maps JavaScript API v3](https://developers.google.com/maps/documentation/javascript/)\n\n  Both [PhoneGap](http://phonegap.com/) and [Apache Cordova](http://cordova.apache.org/) are supported.\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003ch3\u003eAndroid, iOS\u003c/h3\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps-doc/master/v2.6.0/hello-world/image1.gif\"  height=\"300\"\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\u003ch3\u003eBrowser\u003c/h3\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps/master/images/browser_demo.gif\" height=\"300\"\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n-----\n\n## Guides\n\n  - [How to generate API keys?](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/api_key/README.md)\n  - [Hello, World](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/hello-world/README.md)\n  - [Hello, World (with PhoneGap Build)](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/hello-world-phonegap-build/README.md)\n  - [Trouble shootings](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/troubleshootings/README.md)\n\n## Quick install\n\n  ```\n  $\u003e cordova plugin add cordova-plugin-googlemaps\n  ```\n\nThen set your Google Maps API keys into your `config.xml` (Android / iOS).\n\n  ```xml\n  \u003cwidget ...\u003e\n    \u003cpreference name=\"GOOGLE_MAPS_ANDROID_API_KEY\" value=\"(api key)\" /\u003e\n    \u003cpreference name=\"GOOGLE_MAPS_IOS_API_KEY\" value=\"(api key)\" /\u003e\n  \u003c/widget\u003e\n  ```\n\nFor browser platform,\n\n  ```js\n  // If your app runs this program on browser,\n  // you need to set `API_KEY_FOR_BROWSER_RELEASE` and `API_KEY_FOR_BROWSER_DEBUG`\n  // before `plugin.google.maps.Map.getMap()`\n  //\n  //   API_KEY_FOR_BROWSER_RELEASE for `https:` protocol\n  //   API_KEY_FOR_BROWSER_DEBUG for `http:` protocol\n  //\n  plugin.google.maps.environment.setEnv({\n    'API_KEY_FOR_BROWSER_RELEASE': '(YOUR_API_KEY_IS_HERE)',\n    'API_KEY_FOR_BROWSER_DEBUG': ''  // optional\n  });\n\n  // Create a Google Maps native view under the map_canvas div.\n  var map = plugin.google.maps.Map.getMap(div);\n\n  ```\n\n## PhoneGap Build settings\n\n  ```xml\n  \u003cwidget ...\u003e\n\n    \u003c!--\n      You need to specify cli-7.1.0 or greater version.\n      https://build.phonegap.com/current-support\n    --\u003e\n    \u003cpreference name=\"phonegap-version\" value=\"cli-8.1.1\" /\u003e\n  \u003c/widget\u003e\n  ```\n\n## Install optional variables (config.xml)\n\n  - ![](https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps/master/images/icon-android.png) **GOOGLE_MAPS_PLAY_SERVICES_VERSION = (16.0.1)**\u003cbr\u003e\n    The Google Play Services SDK version.\n    _You need to specify the same version number with all other plugins._\n    Check out the latest version [here](https://developers.google.com/android/guides/releases).\n\n  - ![](https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps/master/images/icon-android.png) **ANDROID_SUPPORT_V4_VERSION = (27.1.1)**\u003cbr\u003e\n    This plugin requires the Android support library v4.\n    _The minimum version is 24.1.0._\n    Check out the latest version [here](https://developer.android.com/topic/libraries/support-library/revisions.html).\n\n  - ![](https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps/master/images/icon-ios.png) **LOCATION_WHEN_IN_USE_DESCRIPTION**\u003cbr\u003e\n    This message is displayed when your application requests **LOCATION PERMISSION for only necessary times**.\n\n  - ![](https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps/master/images/icon-ios.png) **LOCATION_ALWAYS_USAGE_DESCRIPTION**\u003cbr\u003e\n    This message is displayed when your application requests **LOCATION PERMISSION for always**.\n\n---------------------------------------------------------------------------------------------------------\n\n## Please support this plugin activity.\n\n  In order to keep this plugin as free, please consider to donate little amount for this project.\n\n  [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=SQPLZJ672HJ9N\u0026lc=US\u0026item_name=cordova%2dgooglemaps%2dplugin\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)\n\n---------------------------------------------------------------------------------------------------------\n\n## Release Notes\n\n  - **v2.7.1**\n    - Fix: (iOS) UiWebView references present in v2.7.0\n\n  - **v2.7.0**\n    - Re-adoption: \u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk\" target=\"_blank\"\u003ecordova-plugin-googlemaps-sdk dependency\u003c/a\u003e\n    - Important update: No longer support `UIWebView` on iOS. `WKWebView` only.\n    - Fix: (iOS) Can't load image files from local host on ionic 4 / 5\n    - Update: (Android) prevent null pointer error in AsyncLoadImage.java\n    - Fix: Css animation interference when call setDiv and there is a push/pop page\n    - Fix: (Android/iOS/Browser) KML parser crash\n    - Fix: flickering and wrong rendering of some DOM elements\n    - Add: `map.stopAnimation()`\n    - Fix: can't remove map while map.animateCamera() is running\n    - Update: (Android) Increase cache memory size\n    - Update: (Android/iOS) Danish localization\n    - Fix: (Android) Prevent resize event after `map.setDiv(null)`\n    - Fix: (Android/iOS) Can not interactive with the map inside \u003cform\u003e\n    - Fix: jslint errors\n    - Fix: marker.setIcon crashes\n    - Update: Set default value range to heading and tilt\n    - Fix: (Android/iOS) touch detection is wrong after clicking on back button very soon.\n    - Fix: An error occurs when you click a marker of marker cluster #2660\n    - Remove promise-7.0.4-min.js.map\n    - Fix: (iOS) bug fix: App crashes if \"bearing\" property is \"\u003cnull\u003e\"\n    - Fix: HTMLColor2RGBA() converts to incorrect value\n    - Fix: (Android) Can't load marker image from the Internet\n    - many bug fixes...\n\n\n---------------------------------------------------------------------------------------------------------\n\n## Demos\n\n\n[Demo (Browser)](https://mapsplugin.github.io/HelloGoogleMap/)\n\n![](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/raw/master/v1.4.0/top/demo.gif)\n\n\n---------------------------------------------------------------------------------------------------------\n\n## Documentation\n\n![](https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/documentations.png?raw=true)\n\n[All documentations are here!!](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/README.md)\n\nhttps://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/README.md\n\n**Quick examples**\n\u003ctable\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/Map/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/raw/master/images/map.png?raw=true\"\u003e\u003cbr\u003eMap\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar options = {\n  camera: {\n    target: {lat: ..., lng: ...},\n    zoom: 19\n  }\n};\nvar map = plugin.google.maps.Map.getMap(mapDiv, options)\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/Marker/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/marker.png?raw=true\"\u003e\u003cbr\u003eMarker\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar marker = map.addMarker({\n  position: {lat: ..., lng: ...},\n  title: \"Hello Cordova Google Maps for iOS and Android\",\n  snippet: \"This plugin is awesome!\"\n})\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/MarkerCluster/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/markercluster.png?raw=true\"\u003e\u003cbr\u003eMarkerCluster\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar markerCluster = map.addMarkerCluster({\n  //maxZoomLevel: 5,\n  boundsDraw: true,\n  markers: dummyData(),\n  icons: [\n      {min: 2, max: 100, url: \"./img/blue.png\", anchor: {x: 16, y: 16}},\n      {min: 100, max: 1000, url: \"./img/yellow.png\", anchor: {x: 16, y: 16}},\n      {min: 1000, max: 2000, url: \"./img/purple.png\", anchor: {x: 24, y: 24}},\n      {min: 2000, url: \"./img/red.png\",anchor: {x: 32,y: 32}}\n  ]\n});\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/HtmlInfoWindow/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/htmlInfoWindow.png?raw=true\"\u003e\u003cbr\u003eHtmlInfoWindow\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar html = \"\u0026lt;img src='./House-icon.png' width='64' height='64' \u0026gt;\" +\n           \"\u0026lt;br\u0026gt;\" +\n           \"This is an example\";\nhtmlInfoWindow.setContent(html);\nhtmlInfoWindow.open(marker);\n\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/Circle/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/circle.png?raw=true\"\u003e\u003cbr\u003eCircle\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar circle = map.addCircle({\n  'center': {lat: ..., lng: ...},\n  'radius': 300,\n  'strokeColor' : '#AA00FF',\n  'strokeWidth': 5,\n  'fillColor' : '#880000'\n});\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/Polyline/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/polyline.png?raw=true\"\u003e\u003cbr\u003ePolyline\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar polyline = map.addPolyline({\n  points: AIR_PORTS,\n  'color' : '#AA00FF',\n  'width': 10,\n  'geodesic': true\n});\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/Polygon/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/polygon.png?raw=true\"\u003e\u003cbr\u003ePolygon\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar polygon = map.addPolygon({\n  'points': GORYOKAKU_POINTS,\n  'strokeColor' : '#AA00FF',\n  'strokeWidth': 5,\n  'fillColor' : '#880000'\n});\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/GroundOverlay/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/groundoverlay.png?raw=true\"\u003e\u003cbr\u003eGroundOverlay\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar groundOverlay = map.addGroundOverlay({\n  'url': \"./newark_nj_1922.jpg\",\n  'bounds': [\n    {\"lat\": 40.712216, \"lng\": -74.22655},\n    {\"lat\": 40.773941, \"lng\": -74.12544}\n  ],\n  'opacity': 0.5\n});\n\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/TileOverlay/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/tileoverlay.png?raw=true\"\u003e\u003cbr\u003eTileOverlay\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar tileOverlay = map.addTileOverlay({\n  debug: true,\n  opacity: 0.75,\n  getTile: function(x, y, zoom) {\n    return \"../images/map-for-free/\" + zoom + \"_\" + x + \"-\" + y + \".gif\"\n  }\n});\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/KmlOverlay/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/multiple_maps/images/kmloverlay.png?raw=true\"\u003e\u003cbr\u003eKmlOverlay\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nmap.addKmlOverlay({\n  'url': 'polygon.kml'\n}, function(kmlOverlay) { ... });\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/Geocoder/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/geocoder.png?raw=true\"\u003e\u003cbr\u003eGeocoder\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nplugin.google.maps.Geocoder.geocode({\n  // US Capital cities\n  \"address\": [\n    \"Montgomery, AL, USA\", ... \"Cheyenne, Wyoming, USA\"\n  ]\n}, function(mvcArray) { ... });\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/utilities/geometry/poly/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/poly.png?raw=true\"\u003e\u003cbr\u003epoly utility\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar GORYOKAKU_POINTS = [\n  {lat: 41.79883, lng: 140.75675},\n  ...\n  {lat: 41.79883, lng: 140.75673}\n]\nvar contain = plugin.google.maps.geometry.poly.containsLocation(\n                    position, GORYOKAKU_POINTS);\nmarker.setIcon(contain ? \"blue\" : \"red\");\n\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.6.0/class/utilities/geometry/encoding/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/encode.png?raw=true\"\u003e\u003cbr\u003eencode utility\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar GORYOKAKU_POINTS = [\n  {lat: 41.79883, lng: 140.75675},\n  ...\n  {lat: 41.79883, lng: 140.75673}\n]\nvar encodedPath = plugin.google.maps.geometry.\n                       encoding.encodePath(GORYOKAKU_POINTS);\n\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/utilities/geometry/spherical/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/spherical.png?raw=true\"\u003e\u003cbr\u003espherical utility\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar heading = plugin.google.maps.geometry.spherical.computeHeading(\n                        markerA.getPosition(), markerB.getPosition());\nlabel.innerText = \"heading : \" + heading.toFixed(0) + \"\u0026deg;\";\n\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/locationservice/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/images/locationService.png?raw=true\"\u003e\u003cbr\u003eLocation service\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nplugin.google.maps.LocationService.getMyLocation(function(result) {\n  alert([\"Your current location:\\n\",\n      \"latitude:\" + location.latLng.lat.toFixed(3),\n      \"longitude:\" + location.latLng.lng.toFixed(3),\n      \"speed:\" + location.speed,\n      \"time:\" + location.time,\n      \"bearing:\" + location.bearing].join(\"\\n\"));\n});\n\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003ctr\u003e\n  \u003ctd\u003e\u003ca href=\"https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/class/StreetView/README.md\"\u003e\u003cimg src=\"https://github.com/mapsplugin/cordova-plugin-googlemaps/raw/master/images/streetview.png?raw=true\"\u003e\u003cbr\u003eStreetView\u003c/a\u003e\u003c/td\u003e\n  \u003ctd\u003e\u003cpre\u003e\nvar div = document.getElementById(\"pano_canvas1\");\nvar panorama = plugin.google.maps.StreetView.getPanorama(div, {\n  camera: {\n    target: {lat: 42.345573, lng: -71.098326}\n  }\n});\u003c/pre\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n---------------------------------------------------------------------------------------------------------\n\n### What is the difference between this plugin and Google Maps JavaScript API v3?\n\nGoogle Maps JavaScript API v3 works on any platforms,\nbut it does not work if device is **offline**.\n\nThis plugin uses three different APIs:\n- Android : [Google Maps Android API](https://developers.google.com/maps/documentation/android/)\n- iOS : [Google Maps SDK for iOS](https://developers.google.com/maps/documentation/ios/)\n- Browser : [Google Maps JavaScript API v3](https://developers.google.com/maps/documentation/javascript/)\n\nIn Android and iOS applications, this plugin displays native Google Maps views, which is **faster** than Google Maps JavaScript API v3.\nAnd it even works if the device is **offline**.\n\nIn Browser platform, this plugin displays JS map views (Google Maps JavaScript API v3).\nIt should work as PWA (progressive web application), but the device has to be **online**.\n\nIn order to work for all platforms, this plugin provides **own API** instead of each original APIs.\nYou can write your code `similar to` the Google Maps JavaScript API v3.\n\n**Feature comparison table**\n\n|                | Google Maps JavaScript API v3     | Cordova-Plugin-GoogleMaps(Android,iOS)| Cordova-Plugin-GoogleMaps(Browser)    |\n|----------------|-----------------------------------|---------------------------------------|---------------------------------------|\n|Rendering system| JavaScript + HTML                 | JavaScript + Native API's             | JavaScript                            |\n|Offline map     | Not possible                      | Possible (only your displayed area)   | Not possible                          |\n|3D View         | Not possible                      | Possible                              | Not possible                          |\n|Platform        | All browsers                      | Android and iOS applications only     | All browsers                          |\n|Tile image      | Bitmap                            | Vector                                | Bitmap                                |\n\n**Class comparison table**\n\n| Google Maps JavaScript API v3     | Cordova-Plugin-GoogleMaps             |\n|-----------------------------------|---------------------------------------|\n| google.maps.Map                   | Map                                   |\n| google.maps.Marker                | Marker                                |\n| google.maps.InfoWindow            | Default InfoWindow, and HtmlInfoWindow|\n| google.maps.Circle                | Circle                                |\n| google.maps.Rectangle             | Polygon                               |\n| google.maps.Polyline              | Polyline                              |\n| google.maps.Polygon               | Polygon                               |\n| google.maps.GroundOverlay         | GroundOverlay                         |\n| google.maps.ImageMapType          | TileOverlay                           |\n| google.maps.MVCObject             | BaseClass                             |\n| google.maps.MVCArray              | BaseArrayClass                        |\n| google.maps.Geocoder              | plugin.google.maps.geocoder           |\n| google.maps.geometry.spherical    | plugin.google.maps.geometry.spherical |\n| google.maps.geometry.encoding     | plugin.google.maps.geometry.encoding  |\n| google.maps.geometry.poly         | plugin.google.maps.geometry.poly      |\n| (not available)                   | MarkerCluster                         |\n| google.maps.KmlLayer              | KmlOverlay                            |\n| (not available)                   | LocationService                       |\n| google.maps.StreetView            | StreetView :sparkles:                 |\n| google.maps.Data                  | (not available)                       |\n| google.maps.DirectionsService     | (not available)                       |\n| google.maps.DistanceMatrixService | (not available)                       |\n| google.maps.TransitLayer          | (not available)                       |\n| google.maps.places.*              | (not available)                       |\n| google.maps.visualization.*       | (not available)                       |\n\n### How does this plugin work (Android, iOS)?\n\nThis plugin generates native map views, and puts them **under the browser**.\n\nThe map views are not HTML elements. This means that they are not a `\u003cdiv\u003e` or anything HTML related.\nBut you can specify the size and position of the map view using its containing `\u003cdiv\u003e`.\n\nThis plugin changes the background to `transparent` in your application.\nThen the plugin detects your touch position, which is either meant for the `native map` or an `html element`\n(which can be on top of your map, or anywhere else on the screen).\n\n![](https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/raw/master/v1.4.0/class/Map/mechanism.png)\n\nThe benefit of this plugin is the ability to automatically detect which HTML elements are over the map or not.\n\nFor instance, in the image below, say you tap on the header div (which is over the map view).\nThe plugin will detect whether your tap is for the header div or for the map view and then pass the touch event appropriately.\n\nThis means **you can use the native Google Maps views similar to HTML elements**.\n\n![](https://raw.githubusercontent.com/mapsplugin/cordova-plugin-googlemaps/master/images/touch.png)\n\n\n---------------------------------------------------------------------------------------------------------\n## Official Communities\n\n- Gitter : (managed by @Hirbod)\n\n  https://gitter.im/nightstomp/cordova-plugin-googlemaps\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=SQPLZJ672HJ9N\u0026lc=US\u0026item_name=cordova%2dgooglemaps%2dplugin\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"],"categories":["JavaScript","Cordova plugins"],"sub_categories":["Incompatible"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapsplugin%2Fcordova-plugin-googlemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapsplugin%2Fcordova-plugin-googlemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapsplugin%2Fcordova-plugin-googlemaps/lists"}