久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      • <bdo id='OIRv2'></bdo><ul id='OIRv2'></ul>
    1. <tfoot id='OIRv2'></tfoot>
        <legend id='OIRv2'><style id='OIRv2'><dir id='OIRv2'><q id='OIRv2'></q></dir></style></legend>

        <i id='OIRv2'><tr id='OIRv2'><dt id='OIRv2'><q id='OIRv2'><span id='OIRv2'><b id='OIRv2'><form id='OIRv2'><ins id='OIRv2'></ins><ul id='OIRv2'></ul><sub id='OIRv2'></sub></form><legend id='OIRv2'></legend><bdo id='OIRv2'><pre id='OIRv2'><center id='OIRv2'></center></pre></bdo></b><th id='OIRv2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OIRv2'><tfoot id='OIRv2'></tfoot><dl id='OIRv2'><fieldset id='OIRv2'></fieldset></dl></div>

        <small id='OIRv2'></small><noframes id='OIRv2'>

        mapbox/傳單上的聚類標(biāo)記

        Clustering markers on mapbox / leaflet(mapbox/傳單上的聚類標(biāo)記)
        <i id='4DT4t'><tr id='4DT4t'><dt id='4DT4t'><q id='4DT4t'><span id='4DT4t'><b id='4DT4t'><form id='4DT4t'><ins id='4DT4t'></ins><ul id='4DT4t'></ul><sub id='4DT4t'></sub></form><legend id='4DT4t'></legend><bdo id='4DT4t'><pre id='4DT4t'><center id='4DT4t'></center></pre></bdo></b><th id='4DT4t'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4DT4t'><tfoot id='4DT4t'></tfoot><dl id='4DT4t'><fieldset id='4DT4t'></fieldset></dl></div>

            <tbody id='4DT4t'></tbody>

                <bdo id='4DT4t'></bdo><ul id='4DT4t'></ul>
                <tfoot id='4DT4t'></tfoot>

              • <legend id='4DT4t'><style id='4DT4t'><dir id='4DT4t'><q id='4DT4t'></q></dir></style></legend>

                <small id='4DT4t'></small><noframes id='4DT4t'>

                • 本文介紹了mapbox/傳單上的聚類標(biāo)記的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在嘗試在 mapbox 上設(shè)置集群地圖,例如 http://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html

                  I'm trying to set up a clustered map on mapbox, like http://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html

                  但他們的示例使用純 .js 文件作為數(shù)據(jù)http://www.mapbox.com/mapbox.js/assets/realworld.388.js

                  But their example uses a plain .js file as data http://www.mapbox.com/mapbox.js/assets/realworld.388.js

                  而我唯一能從 mapbox 得到的是 .geojsonhttp://api.tiles.mapbox.com/v3/thebteam.map-w9jzcznw/markers.geojson

                  And the only thing I can get from mapbox is .geojson http://api.tiles.mapbox.com/v3/thebteam.map-w9jzcznw/markers.geojson

                  有沒有辦法可以將 geojson 轉(zhuǎn)換為 js(定期)?還是從 mapbox 導(dǎo)出一個 javascript 數(shù)組?

                  Is there a way I can convert the geojson to js (on a regular basis)? Or export a javascript array from mapbox?

                  最終將我的數(shù)據(jù)切換為 CSV 并找到了解析器.如果有人需要,這是有效的代碼:

                  ended up switching my data to CSV and finding a parser. Here's the code that worked, if anyone needs it:

                  var url = 'https://docs.google.com/spreadsheet/pub?key=abc123';
                  
                  $.get(url, function(data) {
                    var addressPoints = $.csv.toArrays(data);
                    var map = L.mapbox.map('map', 'map-abc123').setView([20.30, 18.98], 2);
                    var markers = new L.MarkerClusterGroup({ showCoverageOnHover: false });
                  
                    for (var i = 0; i < addressPoints.length; i++) {
                      var a = addressPoints[i];
                      var title = a[2];
                      var marker = L.marker(new L.LatLng(a[0], a[1]), {
                        icon: L.mapbox.marker.icon({'marker-size': 'small', 'marker-color': 'e8168c'}),
                        title: title
                      });
                      marker.bindPopup(title);
                      markers.addLayer(marker);
                    }
                  
                    map.addLayer(markers);
                  
                  });
                  

                  推薦答案

                  var geojson = dataFromMapbox;
                  var lat;
                  var lng;
                  for(var i= 0;i<geojson.features.length;i++)
                    {
                      lat = geojson.features[i].geometry.coordinates[0];
                      lng = geojson.features[i].geometry.coordinates[1];
                  
                      //create a marker with those values, pass it to a MarkerCluster object
                  
                    }
                  

                  這篇關(guān)于mapbox/傳單上的聚類標(biāo)記的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Check if a polygon point is inside another in leaflet(檢查一個多邊形點(diǎn)是否在傳單中的另一個內(nèi)部)
                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標(biāo)記群集圖標(biāo)顏色,繼承其余默認(rèn) CSS 屬性)
                  Trigger click on leaflet marker(觸發(fā)點(diǎn)擊傳單標(biāo)記)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認(rèn)加載磁貼顏色?)
                  Add external geojson to leaflet layer(將外部geojson添加到傳單層)
                  Adding Leaflet layer control to sidebar(將 Leaflet 圖層控件添加到側(cè)邊欄)

                      <i id='Ny5sy'><tr id='Ny5sy'><dt id='Ny5sy'><q id='Ny5sy'><span id='Ny5sy'><b id='Ny5sy'><form id='Ny5sy'><ins id='Ny5sy'></ins><ul id='Ny5sy'></ul><sub id='Ny5sy'></sub></form><legend id='Ny5sy'></legend><bdo id='Ny5sy'><pre id='Ny5sy'><center id='Ny5sy'></center></pre></bdo></b><th id='Ny5sy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Ny5sy'><tfoot id='Ny5sy'></tfoot><dl id='Ny5sy'><fieldset id='Ny5sy'></fieldset></dl></div>
                      <tfoot id='Ny5sy'></tfoot>

                      <small id='Ny5sy'></small><noframes id='Ny5sy'>

                            <tbody id='Ny5sy'></tbody>

                            <bdo id='Ny5sy'></bdo><ul id='Ny5sy'></ul>
                          • <legend id='Ny5sy'><style id='Ny5sy'><dir id='Ny5sy'><q id='Ny5sy'></q></dir></style></legend>
                            主站蜘蛛池模板: 日本精品一区二区三区在线观看视频 | 九九在线精品视频 | 爱爱小视频 | 免费国产黄网站在线观看视频 | 黄色毛片免费看 | 亚洲成人精品 | 欧洲一区二区在线 | 国产剧情一区二区三区 | 欧美成人hd | 成人精品一区二区 | 亚洲a人 | 久久综合久久综合久久 | 日韩成人在线观看 | 亚洲91 | www国产亚洲精品 | 日本人爽p大片免费看 | 欧美一级片在线播放 | 欧美一级片久久 | 91在线免费观看网站 | av影音在线 | 国产福利在线 | 视频一区二区中文字幕日韩 | 一区日韩 | 99精品国产一区二区三区 | 中文字幕在线一区二区三区 | 欧洲一区二区三区 | 精品粉嫩超白一线天av | 国产成人精品久久 | 欧美夜夜 | h视频免费在线观看 | 日韩视频三区 | 一区二区三区四区在线免费观看 | 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 成人午夜黄色 | 亚洲成人免费在线 | 91 久久| 欧美日韩高清一区 | 久久99网站| 亚洲欧美一区二区三区情侣bbw | 国产午夜精品一区二区三区四区 | 免费国产一区二区视频 |