私はESRIマップを使い始めたばかりで、javascriptを使ってユーザーがポイント、ポリゴン、または線分をクリックして選択できるマップを作成したいと考えています。最適な方法や共有できるサンプルコードについてご指導いただけると幸いです。 <\/P>
ありがとうございます<\/P>
Using Map Viewer point, polygon, and line layers can be added individually. Depending on what you want to do, those layers can remain individual layers or you can add them to a group layer. The choice is yours, and the decision will really be based upon what works best for you. Often the streets are just part of the basemap you choose to use, unless you are doing something specifically with the streets or streets that are different than what appears in basemaps.
Thank you for the reply.
How to get polygon, points and streets together on the map? Do you need to create a group layers using adding feature layer service?
thanks
Shen
Just something to keep in mind - you can always author the web map using Map Viewer and reference it in your JavaScript code. Saves you a lot of code and time, IMHO.
https://developers.arcgis.com/javascript/latest/sample-code/webmap-basic/
https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.