Archive for the globe tag
Tutorial #5: The IP-mapping globe
Humans love maps. They love the mapping of any type of information, not strictly geographical. Maps are bursting with information. They transcend the boundaries of language. Maps are good.
I’m going to make a map today. Well, a globe. It’s going to be a very basic extension of our icosahedron-based sphere. We’ll translate a bunch of latitude/longitude pairs into three-dimensional coordinates to visually define the countries, then we’ll add a single marker on the globe that represents the user’s location, based on his or her IP address.
What it looks like
Here’s our completed Earth class: The final result
And here are the classes you’ll need: Earth classes
What you’ll learn
- Translating latitude/longitude pairs to Points
- Mapping an IP address to a physical location via Geobytes and PHP
Sounds like fun, right?

The article has
2 responses