Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
別の大きなサイズのマップでズーム レベルが変更された場合に、あるマップの理想的なズームを特定する方法はありますか。同じズームの小さなマップは同じように表示できないため、両方のマップを表示可能エリアの観点から同期させることが考えられます。
さらに検索して答えを見つけました。マップ上でfitBounds()関数を呼び出して、フィットさせたい境界を渡すことができます。それでmap1.fitBounds(map2.getBounds());
map1.fitBounds(map2.getBounds());