Google Maps Widgets

An simple solution to use Google Maps on the Back-end and Front-end.

Back to Google Maps Widgets Support

maxacarvalho
maxacarvalho

Hi,

I bought your plugin a few weeks ago but I simply cannot make it work, I'm probably missing something, I cannot find where to add configurations like latlng and address, and options. And I cannot find a reference on the documentation telling me how to render the map on the frontend. Could you please help me sending an example about how to add locations and how to add the map to the frontend?

Thanks!

Fencus
Fencus

Hi Max, Google Maps Widgets its a tool for developers. As an example I made another plugin for free called Fencus Maps: https://octobercms.com/plugin/fencus-maps You can use Maps and Maps Widgets to show locations and Maps on the frontend, or you can see its code as an example in github to develop other plugins: https://github.com/FlingeR/maps-plugin

If you already knew that:

  • Most people have a problem with the jQuery API, you should load the jQuery API BEFORE the "API Loader" Component from Maps Widgets, and after that the maps to render.

Let me know if the problem persists after cheking the jQuery related issues. Best regards.

Last updated

maxacarvalho
maxacarvalho

Hi, @fencus thanks for your reply.

Yes, I understand that the plugin is made for developers, that's not a problem, I'm a developer, but I'm not that experienced about October Cms.

The things that I'm asking for is, for example: 1) where are the YML files that need to be edited? 2) where should I include code in order to have the map rendered in the frontend page (pages, layouts, partials)?

What I need is to setup a map with multiple points that will represent store locations.

Thanks again

Fencus
Fencus

Hi Max, If thats the case the best you can do is to use and read the code from the Maps Plugin:

The two models (Map and Location) shows you most of the backend YML options that you need to develop your plugin:

And the Map Component shows you how the map is rendered in the frontend:

Best Regards.

Last updated

maxacarvalho
maxacarvalho

Hi @fencus

I finally managed to make the map work. I didn't know that I needed to add also the Maps and AddressBook plugins, or at least the Maps one.

Anyway, there's one bad thing about the way we need to add the map to the page, it requires the API Loader to come first, that means that the jQuery plugin needs to go even earlier, so I need to load the jQuery at the top of the page, which is really bad, any solution?

Thanks.

1-5 of 5