In this example, we'll be using the cluster strategy, selectFeature control, and showing photo information on selection. As we go along, feel free to tweak the examples yourself, change the functionality, or anything else—that's the best way to learn!
extractStyles. Even though we specify
extractStyles, we're going to be using a custom
styleMapobject. We're doing this so that we can still access the thumbnail image location (which is set as
externalGraphicin the feature's
styleobject when using
extractStyles). Make sure the
formatobject looks like the following:
... format: new ...