Jump to:

794 Posts in 408 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » MapWidget errors

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 833 Views
  • ICM
    Avatar
    Community Member
    3 Posts

    MapWidget errors Link to this post

    I have installed the widget as instructed and received a new API code from google to enter in the config file but I still get the "this web site needs a different Google Maps API key..." and then "Browser is not map compatible! Maps will not be shown" in chrome, IE and FireFox.

    any ideas what might be wrong?

    Thx

  • Yambo
    Avatar
    Community Member
    4 Posts

    Re: MapWidget errors Link to this post

    I also had a similar problem with the Map Widget. The API key in the config file wasn't working for me and so I manually added it to the controller.

    I changed line 32 on the MapWidget.php from;

       Requirements::javascript("http://maps.google.com/maps?file=api&v=2&key=".$MapsWidgetAPIKey);

    to this (add your Google API key);

       Requirements::javascript("http://maps.google.com/maps?file=api&v=2&key=ADD-YOUR-API-KEY-HERE");

    This worked for me.

    833 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.