Page 1 of 1

How to generate map ties from dwg without overlap

Posted: Thu Jun 27, 2019 11:00 am
by milotimbol
Hi I'm trying to generate maptiles for use for leaflet.js. When I try to add the transparent option the generated images seem to overlap with another version. Given the attached DWG file what is the proper command to generate the map tiles?

./dwg2maptiles -b transparent /Users/milo/Desktop/booky/maps/elmer3.dwg

what is TMS? do I need to add it?

./dwg2maptiles -b transparent -tms /Users/milo/Desktop/booky/maps/elmer3.dwg

Also I'm just using the example on this page
http://qcad.org/res/map/

I don't know anything about CAD, I'm a web developer. Our plan is to hire someone to create the floor plans but I need to understand how to generate the map tiles so I can give him guidelines.

I attached screenshots of what the transparent and non-transparent tiles look like within leaflet.js

Re: How to generate map ties from dwg without overlap

Posted: Thu Jun 27, 2019 11:59 am
by andrew
I've added a bug report at:
https://github.com/qcad/qcad/commit/09f ... e944128a97

The TMS parameter has to match with the tms parameter used in leaflet (tms: true or tms: false).