Marker cluster in leaflet | GeoJSON points to cluster | GeoDev

  Рет қаралды 23,200

GeoDev

GeoDev

Күн бұрын

marker cluster Github: github.com/Leaflet/Leaflet.ma...
tutorial code: github.com/iamtekson/Leaflet-...
timestamp:
00:00 Intro
01:12 Leaflet basic setup
02:45 Loading geojson data
05:50 Adding marker cluster
12:25 Outro
----------------------------------------------------------------------------------------
Here are some playlists that you might interest with:
----------------------------------------------------------------------------------------
1. Leaflet from basic to advance: • Leaflet from basic to ...
2. GeoServer with leaflet web-GIS: • GeoServer and Leaflet ...
3. GeoDjango project: • Bookmark note on map |...
4. geoserver-rest: • geoserver-rest
5. GIS training in Nepali: • Beginner GIS training ...
6. LULC map production: • LandUse Land Cover Map...
7. Geospatial analysis with python: • GeoSpatial analysis wi...
8. GeoNode from basic to advance: • GeoNode from basic to ...
--------------------------------------------------------------------------------------------------------------
Check out my courses at the discounted price from the below link:
--------------------------------------------------------------------------------------------------------------
1. "Geospatial data analysis with python": www.udemy.com/course/geospati...
2. "Web GIS Development 2021": www.udemy.com/course/web-gis-...
3. "Web mapping and Web-GIS from Dev to Deploy 2021: GeoDjango": www.udemy.com/course/web-mapp...
4. "Introduction to Web Mapping and Web GIS 2020: GeoDjango": www.udemy.com/course/introduc...
---------------------------------------------------------------------------------------------------
Follow me on GitHub: github.com/iamtekson
Follow me on Twitter: / iamtekson
Follow me on Instagram: / iamtekson
-----------------------------------------------------------------------------------------------------

Пікірлер: 57
@pasyawiratama8804
@pasyawiratama8804 2 жыл бұрын
thank you so much, its really help me a lot for my work !
@geodev
@geodev 2 жыл бұрын
Glad to hear that!
@lindseybelliveau8495
@lindseybelliveau8495 Жыл бұрын
Thank you! You saved my life with this!!!
@geodev
@geodev Жыл бұрын
Glad I can help you 😃
@chucknorris7995
@chucknorris7995 Жыл бұрын
This is sooo cool! Thank you for making these videos
@geodev
@geodev Жыл бұрын
You are welcome 😁
@MrTizinator
@MrTizinator Жыл бұрын
And btw great work what you are doing! Keep it up!!
@geodev
@geodev Жыл бұрын
Thanks, will do!
@katherinepogodina6276
@katherinepogodina6276 2 жыл бұрын
Thanks for this video. It's help me do a project.
@geodev
@geodev 2 жыл бұрын
You are welcome. Glad it helped!
@heike6872
@heike6872 Жыл бұрын
great video - I appreciate it very much 🙂
@geodev
@geodev Жыл бұрын
Glad you liked it!
@masterchief9148
@masterchief9148 Жыл бұрын
Incredibly usefull ! Thanks !
@geodev
@geodev Жыл бұрын
Glad it was helpful for you❤️
@masterchief9148
@masterchief9148 Жыл бұрын
@@geodev Yes ! But do you think it's possible to add an input on the page, search a property name of the GeoJSON and on a submet automaticly zoom on this point on the map ?
@Peterincan
@Peterincan 2 жыл бұрын
This is fantastic! Thanks very much. One problem I ran into. For creating the popups I followed the steps in your video but the popup always shows the information for the last feature in the geoJSON file. Any ideas?
@geodev
@geodev 2 жыл бұрын
Did you check the `onEachFeature` function as shown in the video? or you can check the Final version of github file given in the video description.
@pudicaoutdoors5352
@pudicaoutdoors5352 2 жыл бұрын
I'm having the same issue, I thought the onEachFeature would take care of it, but it does not or I'm missing something. Are we missing a syntax that will grab the attribute for it's relative point?
@geodev
@geodev 2 жыл бұрын
@@pudicaoutdoors5352 I think it should work with the onEachFeature function if you setup it correctly. For the clear understanding about onEachFeature, visit this leafletjs official documentationleafletjs.com/examples/geojson/
@pudicaoutdoors5352
@pudicaoutdoors5352 2 жыл бұрын
@@geodev I'm new to javascript, but my code is almost exactly the same as yours. I thought the onEachFeature would remove the need for a for loop or an update option that doesn't seem to be the case. Each marker has a popup but they only display content for the last feature. Ahh nvm I just had parentheses misplaced
@hamsdecor1246
@hamsdecor1246 2 жыл бұрын
Thank you
@geodev
@geodev 2 жыл бұрын
You are welcome.
@haybeedenzebee
@haybeedenzebee 6 ай бұрын
Hi, I have a slight issue with the pointToLayer, more specifically, it doesn't take in account the style of the markers defined in the constant geojsonMarkerOptions, is there any way to fix the problem, please?
@haybeedenzebee
@haybeedenzebee 6 ай бұрын
Replying to myself : I found a way to avoid the issue :D
@MrTizinator
@MrTizinator Жыл бұрын
Is it possible that all the clusters are expanded (spiderfied) from a certain zoom level on? Like everything past zoomLevel 15 or higher every cluster is expanded and every marker on the map is shown
@geodev
@geodev Жыл бұрын
I am not sure. Since I am using the plugin, there is not much flexibility.
@SergioHernandez-lb1hs
@SergioHernandez-lb1hs 11 ай бұрын
Hello, I really like your videos, could you help me with this? how can I assign, to two layers of clusters that feed from the css markercluster.css and markercluster.default.css, so that each cluster has a different type of coloring and if possible you can change the circle of the cluster by some kind of icon?
@geodev
@geodev 11 ай бұрын
Hi, I haven't explored all the possibilities of the marker cluster function, but you can have a look to their official documentation here: github.com/Leaflet/Leaflet.markercluster
@snowblind9290
@snowblind9290 2 жыл бұрын
Thank you, this was a big help but I'm afraid there's a bug in your code. When a marker is clicked it displays the same information no matter which marker it is. I forked your project (the one you're showcasing on this video) and it suffers from the exact same problem. I noticed that you only clicked on one marker which showed SL47 but every marker is showing this exact data as well. It's possible that there is an uncaught bug in the github for MarkerCluster. I'm still trying to solve this myself but any assistance is greatly appreciated.
@geodev
@geodev 2 жыл бұрын
Thank you for addressing this bug. I have update the code in github: github.com/iamtekson/Leaflet-Basic/blob/master/marker-cluster/index.html, please find the correct bug free version.
@snowblind9290
@snowblind9290 2 жыл бұрын
@@geodev Thank you!
@ryukazusaviestyan4060
@ryukazusaviestyan4060 2 жыл бұрын
Can we set the parent and the child of marker cluster manually? If it's possible, what should we do? Thank you.
@geodev
@geodev 2 жыл бұрын
I think it is possible. You might need to give the different style for parent and the child markers. Here is the small demo: jsfiddle.net/cxZRM/92/
@Life_With_Nature_
@Life_With_Nature_ Жыл бұрын
do you have a video to search marker location by id or name or something?
@geodev
@geodev Жыл бұрын
I think it is possible with this plugin: github.com/stefanocudini/leaflet-search
@Superdooperhero
@Superdooperhero 2 жыл бұрын
Can you also show how to move the markers every second with a streaming GeoJSON and 10000 points as well as the marker groupings.
@geodev
@geodev 2 жыл бұрын
Sorry, I don't understand what do you want?
@weslleymorais
@weslleymorais Ай бұрын
Congratulations on the videos, I followed most of them. How do I make clusters using marked points with the following command lines: var Point1 = L.marker([0.833005, -60.436509], var Point2 = L.marker([0.833032, -60.434503], Would it be possible to make a video teaching the procedures? I didn't find any video explaining this. Thank you.
@acpunetha
@acpunetha 5 ай бұрын
Can we take the data from api and display the marker make a video
@hieunangcongnghe
@hieunangcongnghe 2 жыл бұрын
what control left column menu of video 0:10
@geodev
@geodev 2 жыл бұрын
The left sidebar is from this web-portal developed by Geoinformatics Center: lrimsfaoaf.ait.ac.th/basedata/eng
@varunmurugan2349
@varunmurugan2349 2 жыл бұрын
if marker cluster work for linestrings what we have to do for large linestring geojson data
@geodev
@geodev 2 жыл бұрын
I think it is possible. Here is some reference about this functionality: gis.stackexchange.com/a/197982/138203
@varunmurugan2349
@varunmurugan2349 2 жыл бұрын
@@geodev yes i tried that still hangs for me...i even tried geojson-vt package in react-leaflet but it wrks nly for leaflet not for react-leaflet
@PetersonFerreira117
@PetersonFerreira117 2 жыл бұрын
Very nice! Can you show how to costumize the GeoJson marker icon with a png. file?
@geodev
@geodev 2 жыл бұрын
I customize the marker in this video, please have a look for your reference: kzbin.info/www/bejne/bJ6klYWarL-cnsU
@danialkhan4291
@danialkhan4291 2 жыл бұрын
your leaflet conent is very helpful for us. keep going good work.i have one question, i have geofence area how could i find if person outside his geofence area using their mobile location. could you guide me i am new in this.
@geodev
@geodev 2 жыл бұрын
Hi Danial, The feature that you require can quickly build with the help of turfjs. I think, in your case, you need to use the "pointWithinPolygon" function. If you are new to turfjs, here is the basic exploration of this library: kzbin.info/www/bejne/jpCVfmZnpZqqaK8
@baixoorcamento6887
@baixoorcamento6887 2 жыл бұрын
I want make a interactive list of marker
@spotshot8867
@spotshot8867 Жыл бұрын
sir can please do a turorial on how to call markers frrom data base for project purpose plase
@geodev
@geodev Жыл бұрын
I have created the playlist for it. Have a look here: kzbin.info/aero/PLyWyQBSWLw1OUfqcPzO6AceuGpC5gr-_n
@mohamadaidilndt4147
@mohamadaidilndt4147 Жыл бұрын
Nice and usefull tutorial..and I wonder can this mapping implement using image also...hehehe.I also need to marker for image.
@geodev
@geodev Жыл бұрын
Yes, definitely you can. Here is the example: stackoverflow.com/a/24265265/9354344
@mohamadaidilndt4147
@mohamadaidilndt4147 Жыл бұрын
Thanks..
Marker Popup video with Leaflet | WebGIS | GeoDev
8:02
GeoDev
Рет қаралды 4,2 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 18 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 11 МЛН
Large geojson in leaflet | GeoDev
8:49
GeoDev
Рет қаралды 16 М.
An example on how to use leaflet marker cluster group
5:30
GIS Solutions
Рет қаралды 9 М.
Leaflet Heat Map
7:09
GIS Solutions
Рет қаралды 2,5 М.
What is GeoJSON and why should you care about it?
14:54
Mike Miller
Рет қаралды 50 М.
Maps vs. Objects in JavaScript - What's the Difference?
11:48
How to use Leaflet Search Control with GeoJSON data
10:48
GIS Solutions
Рет қаралды 10 М.
Leaflet Add Image To Marker Popup
8:32
GIS Solutions
Рет қаралды 2,5 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 18 МЛН