rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when map is exported - the marker label text shrinks

hetallccy opened this issue · comments

Hi,

When I exported the map the marker label text shrinks. Can you please help me how can I fix it?
Thanks

exportedmap

I am Also experiencing same error, can anyone help.

Hi @hetallccy & @sandeepgadhwal

Are you able to provide any details

  • browser effected?
  • are 3rd party leaflet plugins being used for the labels?
  • can you point me to a url/jsfiddle demonstrating the issue?

Hi Rowanwins

Sorry for the late reply.

I am creating a label like as below. The issue is happening in both chrome and firefox. Chrome browser version is Version 67.0.3396.99 (Official Build) (64-bit).

var domIcon = L.divIcon({
className: 'div-icon',
html: '

' + _label + '
'
});
var labelPos = _that.map.unproject(point, 20);
L.marker(labelPos, { icon: domIcon }).addTo(_that.map);

one more thing I am also getting unexpected token : in bundle.js.map file. Can you please help with that. I have tried getting source and NPM package as well but both files give an error.

unexpected token