How to add a fixed position (in screen) static custom Text (html) like Legend
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- css, html, javascript, python
- Domínio
- data-visualization, frontend, web-dev
Direção de pesquisa
Comece lendo a implementação existente de LayerControl e o ponto de entrada map.get_root() mencionado na issue, juntamente com as issues anteriores vinculadas. Determine como uma sobreposição HTML estática fornecida por Python deve ser posicionada sobre o mapa sem exigir JavaScript ou CSS personalizados. A tarefa estará concluída quando o recurso funcionar na saída de mapa gerada e oferecer suporte ao conteúdo com posição fixa solicitado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Is your feature request related to a problem? Please describe.
Is there a way to just insert some overlay into the map with custom html code? Like legend but with descriptions or titles and such?
Describe the solution you'd like
There are clearly the elements like Layer control, Minimaps and such that are overlaid in the map, so I feel like there should be a way to put some boxes there with some custom contents. The contents can be static (generated from python string)
I'd prefer to do it with just a python string passed to some python function, without the need to write js or css ourselves if possible.
Describe alternatives you've considered
- I've tried to make a jinja template and put the html file contents in a template, but didn't work with the html made from the map being something that needs to be inside iframe.
- I tried to edit the html myself, but the map is generated from javacript.
- I tried to add the element in the
map.get_root()but it puts that on top, and if I use css to make it a overlay (I'm not good with it), then it somehow ends up below the map and invisible.
Additional context
I went through some issues thinking it should be there but didn't find anywhere.
https://github.com/python-visualization/folium/issues/86 says there used to be a custom map template you could make but it's gone now.
https://github.com/transport-nantes/tn_web/issues/135
https://github.com/python-visualization/folium/issues/781
Implementation
I'm not good with css or js, but I can do some python dev. If there is a easy way to just copy some parts from the LayerControl or such and add it, then I can help.
- Linguagem predominante
- Python
- Estrelas
- 7.4k
- Forks
- 2.3k
- Merge médio
- 10h 24min
- PRs com merge (30d)
- 8
Preparar o ambiente
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python-visualization/folium
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
python-visualization/folium#2092 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 67/100
python-visualization/folium#2278 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
python-visualization/folium#2259 ·
Mantenedores costumam responder em até 1 dia
-
Map output from OSM returns blocked tiles, due to defective request or not following referer-policyAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
python-visualization/folium#2236 · 5 comentários · 2 reações ·
Mantenedores costumam responder em até 1 dia
-
Touch Screen often failsAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 10/100
python-visualization/folium#2219 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de python-visualization/folium
Issues semelhantes
-
Claiming namespace `apoint`Abertanamespace operations
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
EclipseFdn/open-vsx.org#13573 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
collective/icalendar#1854 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
rancher/rancher-ai-agent#412 ·
Mantenedores costumam responder em até 6 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
TUDelftGeodesy/DePSI#134 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
HenriquesLab/rxiv-maker#335 ·