There are several plugins that can embed Google Maps into WordPress pages. However, most, if not all, of them require the user to specify the markup in a separate KML file. I found that troublesome, and hence created a plugin that allows the administrator to create a marker simply by clicking on a spot on the map, AJAX-style. The markup data is then stored in a database and is retrieved when the page is accessed.
The administrator can also specify the text (or HTML) to be displayed in the info window when the user clicks on the marker. Furthermore, the plugin allows him/her to categorize the markers and set a custom icon for each marker category.
The map is displayed on its own page together with its legend and a marker list. The legend is a list of the marker categories that the administrator has created, with each element being an icon-name pair. The marker list is a list of all the markers that are currently displayed on the map. It is contained in a floating window that extends on mouse over and rolls up on mouse out. Clicking on an element in the marker list centralizes the corresponding marker and opens its info window.
Additional features include marker filtering and getting driving directions.
How do I modify the interface?
- Modify the HTML markup in the page entitled ‘Map’.
How do I modify the window theme?
Not at the moment…