Code snippets of user interface patterns for map applications