JavaScriptのpopuptemplate変数にHTMLを格納する代わりに(下記参照)、ポップアップテンプレートをHTMLファイルとして保存し、JavaScriptオブジェクトをそのHTMLに渡す方法はありますか?
現在、以下のコードは動作しています。よりクリーンな方法を探しています。
var popupTemplate = (o) =>`
他のアイデアも歓迎します。
ご協力ありがとうございます!
I think that's a good way to do it. This sample uses L.Util.template which is a slightly different way to do it, so that's an alternative for you too.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.