How to generate map ties from dwg without overlap

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
Post one question per topic.
Post Reply
milotimbol
Registered Member
Posts: 1
Joined: Thu Jun 27, 2019 10:01 am

How to generate map ties from dwg without overlap

Post by milotimbol » Thu Jun 27, 2019 11:00 am

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
Attachments
Screen Shot 2019-06-27 at 5.58.07 PM.png
Screen Shot 2019-06-27 at 5.58.07 PM.png (34.16 KiB) Viewed 2185 times
Screen Shot 2019-06-27 at 5.58.18 PM.png
Screen Shot 2019-06-27 at 5.58.18 PM.png (34.04 KiB) Viewed 2185 times
elmer3.dwg
(380.25 KiB) Downloaded 136 times

User avatar
andrew
Site Admin
Posts: 6660
Joined: Fri Mar 30, 2007 6:07 am

Re: How to generate map ties from dwg without overlap

Post by andrew » Thu Jun 27, 2019 11:59 am

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).

Post Reply

Return to “QCAD 'How Do I' Questions”