Hi all,
I have been doing some codes for a site, to have google maps on its pages, this is a basic thing I know, yet I would share the code, then it saves your time :)
find the code here
https://github.com/fonsekaean/Google-maps-page-for-SilverStripe/
with this I bundled all the data, and logics to a dataobject decorator. and what matters is that you can extend any page type by decorating with the module.