Categories
Javascript Wordpress

Javascript manually coded Google Maps

google-maps

 

Many times, WordPress plugins give a lot of problems; so, if you have time and skills, i think is better to implement the funcionality with your own code.

The plugin I was using for the google maps on a client´s site

https://intepsicologiabilbao.es/contacto-inte-psicologos/

So I decided to code it, then I could learn a bit and also improve it.

Now each time you click the icon, the info appears/ disappears, and you can make a call to the client pressing the link, with the help of the href=tel attribute.

I have uploaded code to Github, just take in mind you must set your own API KEY with a billing account in order to use it properly on production. You have more info on the project`s README.md

https://github.com/Franweb79/google-maps-test