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.

Customising the CMS

Easy Google Maps 'Plugin' for Silverstripe


Reply

24 Posts   9798 Views

Avatar
Fuzz10

19 November 2009 at 3:15am Community Member, 787 Posts

Bump .. works like a charm !

If we end up using it in the site we are currently working on ... I'll definitely let you know...

Avatar
MikeOne

19 November 2009 at 3:22am Community Member, 40 Posts

Ah - great to hear. After the latest version I haven't really looked at it anymore (I moved on to other things). However, if you find issues or have feature requests, please feel free to post them here and I'll develop it further.

Avatar
Tomase

3 December 2009 at 9:54am Community Member, 13 Posts

Very nice and easy :-)

I have one question: Is it possible to add more than one mark in the same map?
if yes, how?
if now, it would be nice if someone could give me a tips or solution how to make it possible.

Ã¥t

Avatar
MikeOne

3 December 2009 at 10:07pm Community Member, 40 Posts

Hi Tomase,

I have been thinking about the ability to add more than one point. It is however, due to the way it has been coded, not very easy to do. I will have to change the format in which the map markers are being stored in the map DIV so it excepts an array of points instead of just one point. The back-end (TinyMCE) side of things will also need quite some adapting.

It does seem worthwhile though to implement so I'll see If I have some time coming week to put that in. If someone else wants to to have a go, please do so and share the upgrade.

Best regards,
Mike.

Avatar
Tomase

3 December 2009 at 10:58pm Community Member, 13 Posts

Thats great! If you find at solution so fast it would superb :-)

Ã¥t

Avatar
roterl

6 December 2009 at 11:41am (Last edited: 6 December 2009 11:42am), Community Member, 44 Posts

Hi MikeOne,

I created a module that allow you to call php function from the content, and as a example I put Google Map. It allow you to add as many maps as you like in a page and add as many markers for each map.
To add map on the admin's page content it need to write $Embed(GoogleMap,-28.643387,153.612224,8) with the relevant details of course.
It don't work with the TinyMCE and you dont see the div at the editor (and also I'm not UI guy so make it wotk will take me a lot of time).
(http://ssorg.bigbird.silverstripe.com/all-other-modules/show/274910?showPost=274910#post274910&flush=1)

Maybe we can join forces and make it work better. multiple maps with multiple markers, polygons, etc.. (with visual editing of course).

Rotem.

Avatar
cumquat

12 December 2009 at 4:06am (Last edited: 12 December 2009 4:17am), Community Member, 198 Posts

Just wanted to say thanks for this, works like a dream.

Mick

Avatar
EricW

24 December 2009 at 5:44am Community Member, 6 Posts

Hey Mike,
I am trying to make this work. I downloaded your original zip before I noticed your second version. The first seemed to install correctly but when I inserted a map it would only display a gray square. So I came back to the forum and realized that you had another version. I downloaded it and tried to place the folders in the correct place on my local machine. when i did this i received an error saying that the system cannot find the path specified. Have any idea what I am doing wrong?