There are two main types of web maps: static and dynamic. Static web maps have pre-loaded data stored in a public directory, while dynamic web maps retrieve spatial data from a geodatabase through a map server like GeoServer or MapServer. Web maps require spatial data and software to serve that data and create interactive maps. Common data types used are vectors, rasters, and basemaps to provide context, with the optimal data depending on the application's purpose.