{"id":168,"date":"2024-01-29T10:05:34","date_gmt":"2024-01-29T10:05:34","guid":{"rendered":"https:\/\/measuresquare.com\/?post_type=api&#038;p=168"},"modified":"2025-08-07T22:45:43","modified_gmt":"2025-08-07T22:45:43","slug":"web-floorplan-sdk-api","status":"publish","type":"api","link":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/","title":{"rendered":"Web FloorPlan SDK\/API"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-visualize-and-interact-with-iots-on-a-floor-plan\">Visualize and Interact with IoTs on a Floor Plan<\/h2>\n\n\n\n<p>MeasureSquare Floor Plan SDK\/API provides a simple way to embed a digital floor plan into your mobile and web applications, to configure IoTs devices on the plan, and to visualize and interact with the devices on a graphical UI.<\/p>\n\n\n\n<p><strong>Applications<\/strong>: Smart home\/building apps, facility security system, trade show floors and school\/campus site maps, hospital device and occupancy tracking, property management, and more\u2026<br><strong>Development Platform<\/strong>: Low-code HTML5, JS<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/download-2-1024x614.png\" alt=\"\" class=\"wp-image-2386\" srcset=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/download-2-1024x614.png 1024w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/download-2-300x180.png 300w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/download-2-564x338.png 564w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/download-2.png 1311w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"h-product-features\">       <strong>Product features<\/strong><\/h1>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"719\" height=\"576\" src=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/1-3.png\" alt=\"\" class=\"wp-image-2406\" srcset=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/1-3.png 719w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/1-3-300x240.png 300w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/1-3-449x360.png 449w\" sizes=\"(max-width: 719px) 100vw, 719px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-embed-detailed-interactive-floor-plans-to-your-iot-application\">Embed detailed, interactive floor plans to your IoT application<\/h2>\n\n\n\n<p>\u2013 use minimal code to access and place your home or office floor plan in your IoT solution<br>\u2013 customize the view of your floor plan by enabling zoom in\/out controls and displaying small details<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-customize-how-your-floor-plan-will-appear-on-a-room-by-room-basis\">Customize how your floor plan will appear on a room-by-room basis<\/h2>\n\n\n\n<p>\u2013 Set the default room colors of your floor plan<br>\u2013 Change room colors to reflect a variety of states<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"890\" height=\"613\" src=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/2-2.png\" alt=\"\" class=\"wp-image-2396\" srcset=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/2-2.png 890w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/2-2-300x207.png 300w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/2-2-523x360.png 523w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"h-use-cases\">Use Cases<\/h1>\n\n\n\n<p>Interactive floor plans are highly useful in many contexts, ranging from home security to property management. Below are a few cases.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/3-2-1024x768.png\" alt=\"\" class=\"wp-image-2398\" srcset=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/3-2-1024x768.png 1024w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/3-2-300x225.png 300w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/3-2-480x360.png 480w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/3-2.png 1054w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-property-management\">Property Management<\/h2>\n\n\n\n<p>When it comes to managing an apartment complex, there are many moving parts to keep track of. A floor plan not only lets property managers oversee the individual units, but the whole complex. Once managers install their smart devices, they can mark the device locations by swiping to any area and connect it with a few clicks on a screen.<br><strong>Track Utilities:<\/strong>\u00a0With the rise of preventive analytics, our floor plan is the perfect tool. The SDK allows you to color-code each room to model how much use an area receives. For example, red colored areas may indicate high usage areas, and green-colored areas otherwise.<br><strong>Damage Mitigation:\u00a0<\/strong>From time to time, there are urgent maintenance issues that need to be resolved quickly. A common one is flooding. If not addressed quickly, the resulting water damage could cost thousands of dollars. On the floor plan, you may want to notify the manager with bright colors to immediately show where it occurred.<br><strong>Manage Property Access:\u00a0<\/strong>Scroll across the complex map and view different access points such as walk-up gates and vehicle access. Manage entry by tapping on the gates to unlock them.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"739\" src=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/4-1-1024x739.png\" alt=\"\" class=\"wp-image-2399\" srcset=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/4-1-1024x739.png 1024w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/4-1-300x216.png 300w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/4-1-499x360.png 499w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/4-1.png 1063w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h2 class=\"wp-block-heading\" id=\"h-home-amp-office-security\">Home &amp; Office Security<\/h2>\n\n\n\n<p>When you have multiple security devices in a building, you want to be able to manage them easily. The interactive floor plan achieves this by providing a bird\u2019s eye view of the floor plan, allowing you to easily place and manage sensors. In more urgent situations, having a floor plan will help you read the situation quickly as you will be able to identify which sensors were activated in a single glance.<br><strong>Easy sensor placement and management:\u00a0<\/strong>Click to drag and drop devices to the desired rooms in a building. See which devices need servicing (such as a battery change).<br><strong>Recognize alerted locations fast:<\/strong>\u00a0With the ability to customize sensor appearance and change room colors, you can easily create a map that clearly identifies where incidents happen. When an emergency notification comes in, instantly see which area the sensor belongs to.<br><strong>Provide location to authorities efficiently<\/strong>: In times of emergency, it\u2019s vital to share accurate information with authorities. With the building\u2019s floor plan, you\u2019ll be able to know the correct location of the incident as if you\u2019re there. Where possible, you may even share a link to the floor plan\u2013allowing the authorities to know exactly where to respond.<\/p>\n<\/div>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading has-text-align-center\" id=\"h-for-developers\"><strong>For Developers<\/strong><\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"757\" src=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/6-1-1024x757.png\" alt=\"\" class=\"wp-image-2402\" srcset=\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/6-1-1024x757.png 1024w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/6-1-300x222.png 300w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/6-1-487x360.png 487w, https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/6-1.png 1154w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Here are a few tips for developers interested in using the SDK:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The\u00a0<strong>Engine<\/strong>\u00a0class is used to render the floor plan in the DOM element.<\/li>\n\n\n\n<li>The<strong>\u00a0startupOptions<\/strong>\u00a0parameter will determine how much detail you want to display in your floor plan.<\/li>\n\n\n\n<li>Use the\u00a0<strong>EventState<\/strong>\u00a0object to trigger events based on a variety of actions, such as mouse clicks or mouse hovers.<\/li>\n\n\n\n<li>The\u00a0<strong>shape<\/strong>\u00a0parameter in the event methods will tell you what object was involved.<\/li>\n\n\n\n<li>The\u00a0<strong>Marker<\/strong>\u00a0class is meant for representing smart devices on the floor plan.<\/li>\n\n\n\n<li>Markers can be an be static or moveable.<\/li>\n<\/ul>\n\n\n\n<p>Explore&nbsp;<strong>sample code<\/strong>&nbsp;for the demo at top:&nbsp;<a href=\"https:\/\/measuresquare.com\/code-sample-for-diagramweb-iot\/\">https:\/\/measuresquare.com\/code-sample-for-diagramweb-iot\/<\/a><br>The&nbsp;<strong>documentation<\/strong>&nbsp;for DiagramWeb SDK can be found here:&nbsp;<a href=\"https:\/\/diagram.measuresquare.com\/document\">https:\/\/diagram.measuresquare.com\/document<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>MeasureSquare has a suite of web floor plan 2D\/3D display and interaction SDK and API tools, so MeasureSquare projects can be embedded 3rd party websites or applications.<\/p>\n","protected":false},"featured_media":161,"template":"","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":""},"class_list":["post-168","api","type-api","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.1 (Yoast SEO v24.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Web FloorPlan SDK\/API - measuresquare.com<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web FloorPlan SDK\/API\" \/>\n<meta property=\"og:description\" content=\"MeasureSquare has a suite of web floor plan 2D\/3D display and interaction SDK and API tools, so MeasureSquare projects can be embedded 3rd party websites or applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/\" \/>\n<meta property=\"og:site_name\" content=\"measuresquare.com\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-07T22:45:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/\",\"url\":\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/\",\"name\":\"Web FloorPlan SDK\/API - measuresquare.com\",\"isPartOf\":{\"@id\":\"https:\/\/measuresquare.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/api-main4.svg\",\"datePublished\":\"2024-01-29T10:05:34+00:00\",\"dateModified\":\"2025-08-07T22:45:43+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/#primaryimage\",\"url\":\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/api-main4.svg\",\"contentUrl\":\"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/api-main4.svg\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/measuresquare.com\/#website\",\"url\":\"https:\/\/measuresquare.com\/\",\"name\":\"measuresquare.com\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/measuresquare.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Web FloorPlan SDK\/API - measuresquare.com","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"Web FloorPlan SDK\/API","og_description":"MeasureSquare has a suite of web floor plan 2D\/3D display and interaction SDK and API tools, so MeasureSquare projects can be embedded 3rd party websites or applications.","og_url":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/","og_site_name":"measuresquare.com","article_modified_time":"2025-08-07T22:45:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/","url":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/","name":"Web FloorPlan SDK\/API - measuresquare.com","isPartOf":{"@id":"https:\/\/measuresquare.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/#primaryimage"},"image":{"@id":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/#primaryimage"},"thumbnailUrl":"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/api-main4.svg","datePublished":"2024-01-29T10:05:34+00:00","dateModified":"2025-08-07T22:45:43+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/measuresquare.com\/api\/web-floorplan-sdk-api\/#primaryimage","url":"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/api-main4.svg","contentUrl":"https:\/\/measuresquare.com\/wp-content\/uploads\/2024\/01\/api-main4.svg"},{"@type":"WebSite","@id":"https:\/\/measuresquare.com\/#website","url":"https:\/\/measuresquare.com\/","name":"measuresquare.com","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/measuresquare.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/measuresquare.com\/wp-json\/wp\/v2\/api\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/measuresquare.com\/wp-json\/wp\/v2\/api"}],"about":[{"href":"https:\/\/measuresquare.com\/wp-json\/wp\/v2\/types\/api"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/measuresquare.com\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/measuresquare.com\/wp-json\/wp\/v2\/media?parent=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}