Module in action
Now that we have our module created, let's have a look at it in action.
Install the module
Within Administration | Modules we now have two new modules which we can install DFP Map and DFP Venue:
Let's enable the modules so that we can try them out.
If we try to create content, we now have two new options:
Dinosaur Friendly place
Map of Dinosaur Friendly places
The following screenshot shows these new options:
Creating a map
Let's create a new map of dinosaur friendly places. The form has provisions for us to add the name of the map, the coordinates of the center point, the zoom level, and the size of the map.
Creating a venue
Let's also create a venue. We have the option to specify the coordinates of the venue:
Viewing a map
Now if we view the newly created map, we can see it covers the location we defined; it also shows the newly created venue within there, and if we click the venue, it pops up with the name of the venue as a link to view more details:
Viewing a venue
If we click...