vue-leaflet/Vue2Leaflet

Idea: use LControlLayers, lControlZoom other place than direct child

開放

#471 建立於 2019年11月11日

 (2 則留言) (1 個反應) (0 位負責人)JavaScript (380 個分叉)batch import
confirmedenhancementhelp wanted

倉庫指標

星標
 (1,942 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hi!

This is more an idea. I use the map in multiple place in my application, and I have to setup the basic stuff over and over. Fortunately, the LTileLayer can be anywhere (since it uses the findReadParent). It's the most complicated to configure over and over..

But LControlZoom / LControlLayers for example need to be direct children of LMap.

I have a custom component that I would like to do something like:

<template>
  <div>
     <l-control-zoom position="topright" />
     <l-control-layers position="bottomright" />
     <l-tile-layer ..../>
  </div>
</template>

thanks!

貢獻者指南