instead of using a style then just make a layer - has morefunctionality (document) and can get edges and localise events too.