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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1743 Views

Avatar
satpal

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 .

Avatar
Hamish

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.

Avatar
satpal

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.
but
didn't get anything like gmap on viewing the output .

Avatar
Hamish

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.