# Perspective map lags with large amount of features

**URL:** <https://forum.inductiveautomation.com/t/perspective-map-lags-with-large-amount-of-features/62658>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 4, 2022, 5:58am UTC](https://forum.inductiveautomation.com/t/perspective-map-lags-with-large-amount-of-features/62658 "2022-08-04T05:58:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alister\_Chan](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Alister\_Chan](https://forum.inductiveautomation.com/u/Alister_Chan)\
**Post date:** [August 4, 2022, 5:58am UTC](https://forum.inductiveautomation.com/t/perspective-map-lags-with-large-amount-of-features/62658/1 "2022-08-04T05:58:29Z")

</div>

Hi all,

I’m trying to build a project to monitor marine traffic so i tried using the free open-source marine traffic data from [Marine traffic | Digitraffic - Fintraffic](https://www.digitraffic.fi/en/marine-traffic/). I faced serious lag issue in the perspective map when using the browser and even in the designer mode. I believe it might be due to large number of features loaded in the perspective map.

 ![Untitled](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af65fb2e2fbd6d8d60db613e0fed292ede89648c.png)

I need help to optimise the Perspective map. Would there be a better way to load the marine traffic in the perspective map like what we can see in the [marinetraffic.com](http://marinetraffic.com)?

---

<div class="post-metadata">

**Author:** ![Alister\_Chan](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Alister\_Chan](https://forum.inductiveautomation.com/u/Alister_Chan)\
**Post date:** [August 16, 2022, 3:29am UTC](https://forum.inductiveautomation.com/t/perspective-map-lags-with-large-amount-of-features/62658/2 "2022-08-16T03:29:10Z")

</div>

Does anyone have any advise?

---

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [August 16, 2022, 2:48pm UTC](https://forum.inductiveautomation.com/t/perspective-map-lags-with-large-amount-of-features/62658/3 "2022-08-16T14:48:52Z")

</div>

Are you trying to recreate the [marinetraffic.com](http://marinetraffic.com) map? I think your assumption that it’s the features that are slowing the map down is correct - it looks like it loads all of them, regardless of where they are (whether they will even be displayed or not).

I would look into Marine Traffic’s API and see if there is a way to pass in bounds (the lat and lng of two opposite corners) - I think that would make the map a lot more responsive ([here](https://www.marinetraffic.com/en/ais-api-services/detail/ps06/vessel-positions-in-a-dynamic-bounding-box) is a start). You can use the [Perspective Map’s](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Map) `getBounds()` method to retrieve the bounds a user is displaying at that moment and then query only the features that would immediately be displayed.
