Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First you need a function to build and return a map. These examples assume you have a module called "mymodule" and that function mymodule_getmap is a page callback in a menu item.