回答編集履歴

1

補足

2017/01/02 00:10

投稿

popobot
popobot

スコア6586

test CHANGED
@@ -1,5 +1,21 @@
1
1
  以下のように、choropleth01にstatesDataのデータを追加してあげれば、overlayaddイベントとかを使わなくてもいいのではないかと思いました。
2
2
 
3
+ ```javascript
4
+
5
+ geojson = L.geoJson(statesData, {
6
+
7
+ style: style,
8
+
9
+ onEachFeature: onEachFeature
10
+
11
+ }).addTo(choropleth01);
12
+
13
+ ```
14
+
15
+
16
+
17
+ 以下はコード全体です。
18
+
3
19
  ```html
4
20
 
5
21
  <!DOCTYPE html>