This widget allows you easily and simply insert a Google Map into the sidebar of your page.
Simply drag the widget into your list of widgets-in-use for your widget page, then enter:
A map name
Latitude and Longitude Coordinates for the center of your map
Some HTML text for your marker (placed at Lat and Lng entered above)
A Zoom level
Yes to allow users to get directions from the widget, No to disallow this functionality
Then you're good to go!
The widget renders the map in a 300px x 300px square. If "Enable directions" is set to "Yes" then it also renders a mini form with a single text field into which users can enter their source address, and a button that will fire off the directions request.
Directions will be inserted below the map and may require styling.
Each time new directions are requested, the directions panel is cleared and the previous route is removed from the map.
Thanks Google, for being so awesome!
Rapid Prototyping with SilverStripe & Foundation
Guest blogger Ryan Wachtl is an independent US-based web developer and information architect with a passion for the art of programming and the science of design. He has been building sites with SilverStripe since the early 2.2 release and organizes the Read on