Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

gmap api

Go to End

4 Posts   1509 Views


Community Member, 13 Posts

8 July 2008 at 12:39am

Hi ,

can anyone tell me how to integrate google maps api in a php project using silverstripe .


Community Member, 712 Posts

8 July 2008 at 4:54pm

Kinda vauge question, it really depends on how you want to use it.

The easiest way would be to create a simple page type and template called (eg) MapPage.

In the head of the MapPage template include the api loader (as per the Google Maps API documentation).

From that point on it depends on how tricky you want to get and how experienced you are with the Maps API and Silverstripe. For example, you could add an 'address' field to the page type, and in the page template have a javascript call that geocodes and maps that address according to the address output by Silverstripe.


Community Member, 13 Posts

9 July 2008 at 12:26am

please can anyone help me out ,

I have added maps and also forum modules but didn't get anything means ,
i saw that on run db/build ,
it recreates the database tables etc.
didn't get anything like gmap on viewing the output .


Community Member, 712 Posts

9 July 2008 at 8:12am

Edited: 09/07/2008 8:13am

Hey matey - I notice you've posted exactly the same response in three different threads.

It would really help if you:

told us what you're trying to do (use the maps module? Or google maps API in general?)
gave some indication that you'd read our previous replies,
told us about the errors you'd received,
told us about what you've already tried,
told us how far you got in the installation process,
kept it to one thread

Lots of people are willing to help if you make helping out easy.