Hello, my app has a map functionality, and it has been working fine for a long time, but we’re now over 30 location pins and the whole page is starting to work badly. More specifically, when you open the map and tap on a pin or on a list item under the map, it literally takes 10 seconds before it goes to the page. How can I fix this?
I’m going through research trying to find our points of lag also. What I would try to isolate the cause is create a page and use a list rather than a map for all the pins, then link to the same pages. Then you can do some tests to see if the map version is much slower. Then you will know if it’s the map component or other lists and details pages in the flow.
I’m doing similar tests now. Love to hear what you find. I have a map with 63 pins.
I’m curious about this as well. I’ve been looking into creating an app that would require a lot of map pins, and this is very interesting!
I figures out that the issue was in the list, and not the google map. In the list under the map, for each item i was showing 4 images, and since removing those images the map and clicking on items has been very fast again.
Ugh, slow iPhone? That’s a total bummer! Let’s see if we can speed things up. First, try closing all those apps you’re not using – they might be hogging power in the background. Next, check if there’s a software update waiting for you. Updating your iPhone can often give it a performance boost. If you’re running low on storage, deleting some old photos or apps can help too. And hey, if nothing else works, a good old restart might do the trick.
To improve map performance with many location pins, consider using techniques like marker clustering, lazy loading, and optimizing data fetching. Choose an efficient map library and minimize API calls. Profile your app to identify HPInstantInk bottlenecks and optimize accordingly. By implementing these strategies, you can significantly enhance the user experience and performance of your map-based application.