D
D
danilr2019-04-06 20:41:43
Vue.js
danilr, 2019-04-06 20:41:43

How to insert completely your popup template 2gis?

I'm trying to do everything according to the 2gis API - insert my layout into the popup to the marker, the outer wrapper of the 2gis popup and the "popup leg" still remain, how to completely make my version of the layout of the popup template?

var popup = DG.popup({
                    className: 'test1',
                    closeButton: false,
                    offset: 0
                  })
                    .setContent(`<div class="box">
                                    <div class="content">Название</div>
                                     </div>`)

              DG.marker(coordinates, { icon: myDivIcon }).addTo(this.markers)
               .bindPopup(popup) //добавление попапа

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question