このコードをテンプレートとして地図を作成し始めました:Simplifying complex features | Esri Leaflet<\/P>
レイヤーではうまく動作していましたが、その後このポップアップの例から3行追加しました、Custom popups | Esri Leaflet、すると問題が発生しました。<\/P>
<\/P>
こちらが私のコードです:http://cryptb.in/a7tnfM (これで動作するはずです)<\/A><\/P> <\/P>マウスオーバー表示ボックスとポップアップを同時に持つことはできないのでしょうか?しかし奇妙なことに、コード内のbindPopup関数をコメントアウトしても地図が動かなくなります。<\/P>
マウスオーバー表示ボックスとポップアップを同時に持つことはできないのでしょうか?しかし奇妙なことに、コード内のbindPopup関数をコメントアウトしても地図が動かなくなります。<\/P>
Thanks for the help. My issue was that I forgot to put in the layer field being used in bindPopup above when I defined the layer properties for 'LMI_lands'. Now I just gotta figure out how to embed this sucker into another web page.
I wasn't able to open your code (it just kept saying "Retrieving Paste")
I copied the code from the mouse hover to a jsbin and added in the bindPopup code and got it to work.
The only snag I bumped into was when I was making the popup I selected a field that was not being returned in the feature.properties. I put a console.log(feature.properties) and discovered that the STATE was not being returned. When the STATE field was included the features were not being displayed.
Be sure to check the console on your browser to see if there are any error messages displaying that might give you a clue as to what is going on. (Chrome, Firefox, IE hit F12 for developer tools)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.