Daryll Doyle WordPress Development and Consultancy in Cornwall

CategoryJavaScript

Headless WordPress and the REST API

H

Recently I’ve spent a fair amount of time building up React websites using WordPress as the data source. This has been a very interesting period of learning for me, coming from a PHP background and as such, I’m going to write down my thoughts on the process in the hope that it can help others approaching this task!  Why go headless? In my case, the reason for going headless was...

Google Maps Smooth Zoom

G

I was working on a project this week that required me to zoom in to a marker on a Google map. That’s easy, I thought, there must be a method for doing that within the V3 API. I was wrong. Apparently Google are fine with adding a panTo() method for smoothly panning to a marker, but the setZoom() method re-draws the map canvas and jumps straight to the zoom level you set.“ There are a...

Daryll Doyle WordPress Development and Consultancy in Cornwall