# \[FEATURE-14929\] Perspective Map: Method to get pixel size & SVG overlays

**URL:** <https://forum.inductiveautomation.com/t/feature-14929-perspective-map-method-to-get-pixel-size-svg-overlays/28005>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [September 4, 2019, 3:10pm UTC](https://forum.inductiveautomation.com/t/feature-14929-perspective-map-method-to-get-pixel-size-svg-overlays/28005 "2019-09-04T15:10:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua.Dafforn](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Joshua.Dafforn](https://forum.inductiveautomation.com/u/Joshua.Dafforn)\
**Post date:** [September 4, 2019, 3:10pm UTC](https://forum.inductiveautomation.com/t/feature-14929-perspective-map-method-to-get-pixel-size-svg-overlays/28005/1 "2019-09-04T15:10:52Z")

</div>

Would it be possible to add the getSize() script callable method that is listed in the Leaflet documentation? Whenever the view resizes itself to fit the browser window, the map image layers I am pulling in from our ArcGIS API become distorted and no longer sit in the correct location on the map. Being able to get the size, in pixels, of the map component through scripting would fix this issue.

The second Leaflet feature I would like to see added would be the ability to use SVG layers and SVG overlays. Our goal is to be able to create our own custom SVG components that would sit on the map and change colors depending on the latest recorded value.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 24, 2020, 5:54pm UTC](https://forum.inductiveautomation.com/t/feature-14929-perspective-map-method-to-get-pixel-size-svg-overlays/28005/2 "2020-03-24T17:54:49Z")

</div>

The next nightly build (and 8.0.11) add a `getSize()` method, and an `onResize()` component event to the map component.

---

<div class="post-metadata">

**Author:** ![Joshua.Dafforn](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Joshua.Dafforn](https://forum.inductiveautomation.com/u/Joshua.Dafforn)\
**Post date:** [March 25, 2020, 3:36am UTC](https://forum.inductiveautomation.com/t/feature-14929-perspective-map-method-to-get-pixel-size-svg-overlays/28005/3 "2020-03-25T03:36:07Z")

</div>

Great thanks for the update! This will help me out alot. I can’t wait to test it out.
