admin管理员组文章数量:1389768
I would like to create a interactive geo map. I have already created world map as
region: 'world',
displayMode: 'regions'
And also created a map for india as markers
region: 'IN',
domain: 'IN',
displayMode: 'markers',
Now I need to create a map for india as regions instead of markers.
Now here is the problem with markers:-
I have successfully created it but there are some states which missing in that like uttarakhand, chhatisgarh and telangana. Can anyone help with that, here is the link to jsfiddle which is showing the map for indian states fiddle for map
I would like to create a interactive geo map. I have already created world map as
region: 'world',
displayMode: 'regions'
And also created a map for india as markers
region: 'IN',
domain: 'IN',
displayMode: 'markers',
Now I need to create a map for india as regions instead of markers.
Now here is the problem with markers:-
I have successfully created it but there are some states which missing in that like uttarakhand, chhatisgarh and telangana. Can anyone help with that, here is the link to jsfiddle which is showing the map for indian states fiddle for map
Share Improve this question edited Oct 15, 2016 at 6:32 Rahul K P 16.1k4 gold badges38 silver badges54 bronze badges asked Jun 28, 2016 at 10:21 Rakesh ChandRakesh Chand 3,1131 gold badge24 silver badges43 bronze badges 1- 1 @Mikel Is it possible to view districts in a state using this, specifically for Indian states? – S_S Commented Aug 16, 2017 at 9:06
1 Answer
Reset to default 6The map works, but some names can be wrong. I remend you to use the ISO codes to avoid those problems: https://en.wikipedia/wiki/ISO_3166-2:IN
You can create the data in this way:
var data = google.visualization.arrayToDataTable([
['State Code', 'State', 'Population'],
['IN-UT', 'Uttarakhand', 10116752],
//rest of states
]);
Fiddle
Tell me if it helps you.
本文标签: javascriptIndia states map in Google geomapsStack Overflow
版权声明:本文标题:javascript - India states map in Google geomaps - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744611060a2615656.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论