HTTP Basic Authentication middleware comes with simple PDO authenticator. It can be used to authenticate users from database.
There are two kinds of people. Those who like their accessors and mutators to start with
set. Then there are us who prefer the short version.
Static Maps API has URL length limit of around 2048 characters. You can hit this limit quickly when adding lot of markers. You can keep URL short by clustering markers together.
Previously I showed you how to work with markers and bounds. Now we go forward and add zoom and pan controls.
Lately I have been playing with Google Static Maps API a lot. Writing the same things again and again is tedious job. I decided to put the code together as one clean extendable package.
Previously I showed you how to make a Google Static Map with clickable markers. Now we add clickable infowindows.
Static map is one big image. Markers are embedded inside the image. You can not use traditional href tags around separate markers. Binding onclick event to separate marker images wont work either. There are no separate markers. We can however add an imagemap.