Comments (3)
@sedrak1987 remove this mapView._markers.push(marker);
statement form this method setupMarkerCluster()
in index.android.ts
from nativescript-google-maps-utils.
dear where is index.android.ts file?(maybe in node_modules, if yes, then why I must change core files)
from nativescript-google-maps-utils.
I have the same issue , the app is crashing in setupMarkerCluster method call.
The crash seems to happen in this line of index.android.js:
clusterManager.addItem(markerItem);
If I comment that line, the app won´t crash but obviously no marks are displayed.
Note: occasionally I have seen the app working fine in the emulator (no crash, cluster displayed) by removing the comment to the line that was crashing (hot reload). However, stopping and deploying again the app in the emulator or building the apk and testing in a real device will make it crash again.
Testing on NativeScript 5, Angular project that just has a home component with the map and a function to add markers on map ready event (similar to the demo project). More info from package.json:
"nativescript": {
"id": "org.nativescript.testmaps",
"tns-android": {
"version": "5.4.0"
},
"tns-ios": {
"version": "5.4.2"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@angular/animations": "~8.0.0",
"@angular/common": "~8.0.0",
"@angular/compiler": "~8.0.0",
"@angular/core": "~8.0.0",
"@angular/forms": "~8.0.0",
"@angular/http": "~8.0.0-beta.10",
"@angular/platform-browser": "~8.0.0",
"@angular/platform-browser-dynamic": "~8.0.0",
"@angular/router": "~8.0.0",
"nativescript-angular": "~8.0.0",
"nativescript-geolocation": "^5.1.0",
"nativescript-google-maps-sdk": "2.6.1",
"nativescript-google-maps-utils": "^0.1.3",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.5.0",
"tns-core-modules": "~5.4.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular/compiler-cli": "~8.0.0",
"@ngtools/webpack": "~8.0.0",
"nativescript-dev-typescript": "~0.10.0",
"nativescript-dev-webpack": "~0.24.0"
},
It would be very good to have this working since this is a useful feature and no other NativeScript plugin seems to exist that provides clustering and heatmaps functionality.
from nativescript-google-maps-utils.
Related Issues (17)
- Getting a TypeError: Cannot read property 'android' of undefined HOT 2
- Change cluster image HOT 2
- Demo
- Error GoogleMaps.GMSGeometryContainsLocation HOT 1
- app crashed when setupMarkerCluster HOT 11
- Remove heatmap layer HOT 1
- change heatmap colors gradient
- JNI error - not able to run demo app
- Cluster IOS / Android
- Implementing the clustering using Google-Maps-ios-utils HOT 18
- How to set minimunClusterSize? HOT 3
- Overriding DefaultClusterRenderer function doesn't get called HOT 2
- Info Windows & Map Events HOT 6
- ETA on iOS Implementation HOT 1
- Error running the demo HOT 2
- IOS implementation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-google-maps-utils.