vue-leaflet/Vue2Leaflet

Idea: use LControlLayers, lControlZoom other place than direct child

オープン

#471 opened on 2019/11/11

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (380 件のフォーク)batch import
confirmedenhancementhelp wanted

Repository metrics

Stars
 (1,942 個のスター)
PR merge metrics
 (30d に merged 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!

コントリビューターガイド