vue-leaflet/Vue2Leaflet

Idea: use LControlLayers, lControlZoom other place than direct child

Aberta

#471 aberto em 11 de nov. de 2019

 (2 comentários) (1 reação) (0 responsável)JavaScript (380 forks)batch import
confirmedenhancementhelp wanted

Métricas do repositório

Stars
 (1.942 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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!

Guia do colaborador