Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
How to customize the leaflet Lopup component with vue js

How an I customize the design on LPopup component of leafletjs. Following this guide from :
https://vue2-leaflet.netlify.app/components/LPopup.html#demo

enter image description here

Have inspected the Lpopup in the devtool, and then grab the selector call 'leaflet-popup-content-wrapper' abd then added some Css style to it ( please see the below image) but it doesnot give the border-radius: 0px. it shows inside that popup. which I don't want.

 <l-popup class="map-popup">
         <h1>{{ name.toLocaleUpperCase().substring(0, 2) }}</h1>
         <h3>{{ address }}</h3>
 </l-popup>

and my CSS:

.map-popup,
.leaflet-popup-content-wrapper {
  background: #2c3e50;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  border-radius: 0px;
}

// also tried this way, but nothing seems to work for me: 

.leaflet-popup-content-wrapper {
  background: #2c3e50;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  border-radius: 0px;
}

enter image description here

I want to have the below look without 'border-radius'. How can I achieve that. Any help from you is much Appreciated. Thanks in Advance!

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!