mit-app-inventor

MapLongPress

About this app

The MapLongPress app demonstrates using Map1.LongPressAtPoint to add latitude and longitude values to TinyDB1 each time the map is long-pressed.

Further functionality can be added after the locations are collected — for example, as shown in this tutorial video.

Code

MapLongPress blocks

Designer

All components retain their default properties, — except Width and Height set to Fill parent... where necessary to center UX components and Button text(s) changed from their defaults(s). The initial Map1 center is 41.96°, -71.20°.


🔗 permalink 📦 repository codi .AIA