Comments (8)
It's not implemented yet.
from nativescript-mapbox.
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.
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.
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.
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.
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.
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.
Hello!
I'm just wondering if there are any developments on this?
from nativescript-mapbox.
Related Issues (20)
- Is there a way to have buildings render in 3D?
- tap on map cause an app crash on android HOT 6
- MGLCoordinateInCoordinateBounds and other Geometry methods not available in iOS typings
- Event when map has stopped moving HOT 1
- docs need an update. trackUser not working as expected
- args.android is undefined in onMapReady
- [iOS] removePolylines does not work without passing parameter
- Map not displaying on Android HOT 2
- MapBox center map not working
- Black map and 'mapReady' not fired
- Doesn't work with NS7 HOT 10
- Unable to draw lines based on the coordinates that were returned by the directions API
- showUserLocation is not working on ios14 HOT 1
- addPolygon show pop up
- How to add image for internal map. https://docs.mapbox.com/ios/maps/examples/image-source/ HOT 1
- setMapStyle and removeOnDidFailLoadingMapListener
- Doesn't work with nativescript 7 HOT 4
- how to set language?
- mapbox.addImage() doesn't work from locale storage 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-mapbox.