Giter Site home page Giter Site logo

Comments (3)

fawadmukhtar avatar fawadmukhtar commented on June 10, 2024

@sedrak1987 remove this mapView._markers.push(marker); statement form this method setupMarkerCluster() in index.android.ts

from nativescript-google-maps-utils.

sedrak1987 avatar sedrak1987 commented on June 10, 2024

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.

kandangit avatar kandangit commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.