How to set display settings for your floor plan drawings over the Measure Square Cloud API

How to set display settings for your floor plan drawings over the Measure Square Cloud API

In this article, you will learn how to customize the appearance of your diagrams when generating them through the MeasureSquare Cloud API.

The Get Layer Image endpoint allows you to retrieve visual representations of your project diagrams as PNG images. This endpoint is particularly useful when you need to embed diagrams in web pages, documents, or reports, and want control over the image size and how much details is shown.

Endpoint

Info
GET /api/projects/{projectId}/layers/{layerIndex}/image

Use Cases

Below are examples of situations where you may want to use the Get Layer Image endpoint:
  1. Embedding floor plan diagrams in web applications or customer portals
  2. Generating printable reports with appropriately sized diagrams
  3. Creating thumbnail previews of project layers
  4. Displaying simplified floor plans without technical details
  5. Showing or hiding underlayment products based on audience needs

Customization Options

Image Size (width and height)

Control the dimensions of the returned image to fit your presentation needs:
  1. Large images (e.g., 1920×1080): Ideal for detailed reports or full-screen displays
  2. Medium images (e.g., 800×600): Suitable for web page embedding or standard documents
  3. Thumbnails (e.g., 300×200): Perfect for preview galleries or compact displays

Idea
Adjusting image size is useful when you want to reduce file size for faster loading or when display space is limited.

Dimension Labels (showDimensions)
Optional parameter. Set to False to hide dimension labels. If this is not provided in your API request, this is set to True by default.

Underlayment Products (showUnderlays)
Optional parameter. Set to false to hide underlayment layer. If this is not provided in your API request, this is set to True by default.
Show underlayment (true): Displays all underlayment products in the diagram
Hide underlayment (false): Simplifies the view to show only the main floor plan products.