Giter Club home page Giter Club logo

Comments (8)

Yermo avatar Yermo commented on June 10, 2024

It's not implemented yet.

from nativescript-mapbox.

Janskiproducer avatar Janskiproducer commented on June 10, 2024

Hello - I need this too, the single reason I switched from Google Maps. I see that @EddyVerbruggen has this feature in his demo:
mapbox.addGeoJsonClustered(
{
name: "earthquakes",
data: "https://www.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson",
clusterMaxZoom: 15,
clusterRadius: 20
// clusters: [
// {}
// ]
}
).then(
function() {
dialogs.alert({
title: "GeoJSON added",
message: "Moving to the USA as that's where the GeoJson data is drawn",
okButtonText: "OK"
}).then(function() {
mapbox.setViewport(
{
bounds: {
north: 52.9,
east: -62.2,
south: 22.1,
west: -128.2
},
zoomLevel: 3
}
)
});
},
function(error) {
console.log("mapbox doAddAndClusterGeoJSON error: " + error);
}
);
};

but it won't work when I try to implement it. Was it removed?

from nativescript-mapbox.

Yermo avatar Yermo commented on June 10, 2024

The API is still there. Is it not working in the demo? What error messages are you seeing? I'm going to be working on the plugin full time for a while starting in a few weeks.

from nativescript-mapbox.

Janskiproducer avatar Janskiproducer commented on June 10, 2024

Hmm no I get a "undefined is not a function (near '...map.addGeoJsonClustered...'" error. Very nice that you'll be working on the plugin! It's really the cornerstone of a new app for a startup company I'm working with, and these clusters would be extremely nice to get working :)

from nativescript-mapbox.

Yermo avatar Yermo commented on June 10, 2024

You're getting this error when running the demo?

I'm building my own startup and clusters are a central part of it as well, so I will get them working but it's going to be a few weeks yet. I've got to finish up my new map editor first which is getting very close to done.

from nativescript-mapbox.

Janskiproducer avatar Janskiproducer commented on June 10, 2024

The demo wouldn't run at all - so I tried to use that one function. Nice and good luck with your startup!

from nativescript-mapbox.

Yermo avatar Yermo commented on June 10, 2024

The fact that the demo doesnt' run points to other problems.

The demo works for me on both iOS and Android.

What platform are you running on?

from nativescript-mapbox.

Janskiproducer avatar Janskiproducer commented on June 10, 2024

Hello!
I'm just wondering if there are any developments on this?

from nativescript-mapbox.

Related Issues (20)

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.