-
Project purpose and goal
Applying OOP in a Real World Application.
Basic Concepts used:
Class. It means categorizing objects. A class defines all the common traits of the numerous objects that fall under it.
Inheritance. The goal is to not repeat yourself—multiple uses of the same code is hard to maintain. The ability of one class to derive its characteristics from another class.
Encapsulation. OOP encapsulates data by default; wrapping the data under a single, consolidated unit.
-
Project Planning
Before writing our first line of code, we need to plan this project.
Lessons learned
LocalStorage is an API that the browser provides for us; is a simple key value store, recommended just for small amounts of data.
In Leaflet, the setView() method to get you to the coordinates. It takes 02 arguments: the coordinates, and the zoom level. Then we pass an object of options.
In Leaflet all the methods return $this, which makes all of them chainable.
Let's build something together
Feel free to reach out if you're looking for a developer, have questions, or just want to connect via LinkedIn.